karbon

VShadowDecorator Class Reference

Inheritance diagram for VShadowDecorator:

VObject List of all members.

Detailed Description

Definition at line 29 of file vshadowdecorator.h.


Public Member Functions

 VShadowDecorator (VObject *object, VObject *parent, int distance=2, int angle=0, float opacity=1.0)
 VShadowDecorator (const VShadowDecorator &obj)
virtual ~VShadowDecorator ()
virtual void draw (VPainter *, const KoRect *=0L) const
virtual const KoRect & boundingBox () const
VStrokestroke () const
virtual void setStroke (const VStroke &stroke)
VFillfill () const
virtual void setFill (const VFill &fill)
virtual void accept (VVisitor &)
virtual void save (QDomElement &) const
virtual void load (const QDomElement &)
virtual VObjectclone () const
VState state () const
virtual void setState (const VState state)
void setShadow (int distance=2, int angle=0, float opacity=1.0)

Protected Attributes

VObjectm_object
int m_distance
int m_angle
float m_opacity

Member Function Documentation

void VShadowDecorator::accept VVisitor visitor  )  [virtual]
 

Accept a VVisitor.

Reimplemented from VObject.

Definition at line 89 of file vshadowdecorator.cc.

virtual const KoRect& VShadowDecorator::boundingBox  )  const [inline, virtual]
 

Calculates the tightest bounding box around the object.

Returns:
the bounding box.

Reimplemented from VObject.

Definition at line 39 of file vshadowdecorator.h.

VObject * VShadowDecorator::clone  )  const [virtual]
 

Create an exact copy of this object.

Returns:
the exact object copy

Implements VObject.

Definition at line 83 of file vshadowdecorator.cc.

void VShadowDecorator::draw VPainter painter,
const KoRect *  rect = 0L
const [virtual]
 

Draw the object to a painting device.

Parameters:
painter abstraction that is used to render to a painting device.
rect represents the visible rectangular area. If this object doesn't intersect with this area it is not drawn.

Reimplemented from VObject.

Definition at line 48 of file vshadowdecorator.cc.

VFill* VShadowDecorator::fill  )  const [inline, virtual]
 

Gets the object's actual fill.

Returns:
pointer to the object's fill

Reimplemented from VObject.

Definition at line 42 of file vshadowdecorator.h.

virtual void VShadowDecorator::load const QDomElement &   )  [inline, virtual]
 

Load this object's state from xml and initialize this object accordingly.

Parameters:
element the DOM element from which the attributes are read

Reimplemented from VObject.

Definition at line 48 of file vshadowdecorator.h.

void VShadowDecorator::save QDomElement &   )  const [virtual]
 

Save this object's state to xml.

Parameters:
element the DOM element to which the attributes are saved

Reimplemented from VObject.

Definition at line 125 of file vshadowdecorator.cc.

void VShadowDecorator::setFill const VFill fill  )  [virtual]
 

Sets the fill to a given new fill.

Parameters:
fill the new fill

Reimplemented from VObject.

Definition at line 112 of file vshadowdecorator.cc.

void VShadowDecorator::setState const VState  state  )  [virtual]
 

Sets the state to a specified new state.

Note that this will not have any visual effect until draw() is called on this object.

Parameters:
state the new state.

Reimplemented from VObject.

Definition at line 118 of file vshadowdecorator.cc.

void VShadowDecorator::setStroke const VStroke stroke  )  [virtual]
 

Sets the stroke to a given new stroke.

Parameters:
stroke the new stroke

Reimplemented from VObject.

Definition at line 106 of file vshadowdecorator.cc.

VState VShadowDecorator::state  )  const [inline]
 

Get the state the object is in.

Returns:
the object state at time of calling.

Reimplemented from VObject.

Definition at line 52 of file vshadowdecorator.h.

VStroke* VShadowDecorator::stroke  )  const [inline, virtual]
 

Gets the object's actual stroke.

Returns:
pointer to the object's stroke

Reimplemented from VObject.

Definition at line 40 of file vshadowdecorator.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys