karbon
VText Class ReferenceInheritance diagram for VText:
List of all members.
Detailed Description
Definition at line 44 of file vtext.h.
|
Public Types |
| Above |
| On |
| Under |
| Left |
| Center |
| Right |
enum | Position { Above,
On,
Under
} |
enum | Alignment { Left,
Center,
Right
} |
Public Member Functions |
| VText (VObject *parent, VState state=normal) |
| VText (const QFont &font, const VSubpath &basePath, Position position, Alignment alignment, const QString &text) |
| VText (const VText &text) |
virtual | ~VText () |
virtual DCOPObject * | dcopObject () |
virtual void | setText (const QString &text) |
virtual const QString & | text () |
virtual void | setFont (const QFont &font) |
virtual const QFont & | font () |
virtual void | setBasePath (const VSubpath &path) |
virtual VSubpath & | basePath () |
virtual void | setPosition (Position position) |
virtual Position | position () |
virtual void | setAlignment (Alignment alignment) |
virtual Alignment | alignment () |
virtual void | setUseShadow (bool state) |
virtual bool | useShadow () |
virtual void | setShadow (int angle, int distance, bool translucent) |
virtual bool | translucentShadow () |
virtual int | shadowAngle () |
virtual int | shadowDistance () |
virtual void | setOffset (double offset) |
virtual double | offset () |
const VPathList & | glyphs () const |
virtual void | draw (VPainter *painter, const KoRect *rect=0L) const |
virtual const KoRect & | boundingBox () const |
virtual void | save (QDomElement &element) const |
virtual void | load (const QDomElement &element) |
virtual VText * | clone () const |
virtual VGroup * | toVGroup () const |
virtual void | setState (const VState state) |
virtual void | accept (VVisitor &visitor) |
Member Function Documentation
void VText::accept |
( |
VVisitor & |
visitor |
) |
[virtual] |
const KoRect & VText::boundingBox |
( |
|
) |
const [virtual] |
Calculates the tightest bounding box around the object.
- Returns:
- the bounding box.
Reimplemented from VObject.
Definition at line 257 of file vtext.cc.
VText * VText::clone |
( |
|
) |
const [virtual] |
Create an exact copy of this object.
- Returns:
- the exact object copy
Implements VObject.
Definition at line 283 of file vtext.cc.
DCOPObject * VText::dcopObject |
( |
|
) |
[virtual] |
Returns pointer to internal DCOP object.
If no internal DCOP object exist yet, it is created.
Reimplemented from VObject.
Definition at line 173 of file vtext.cc.
void VText::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 183 of file vtext.cc.
const VPathList& VText::glyphs |
( |
|
) |
const [inline] |
Provides read only access to the glyphs.
Definition at line 88 of file vtext.h.
void VText::load |
( |
const QDomElement & |
element |
) |
[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 342 of file vtext.cc.
void VText::save |
( |
QDomElement & |
element |
) |
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 307 of file vtext.cc.
void VText::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:
-
Reimplemented from VObject.
Definition at line 417 of file vtext.cc.
The documentation for this class was generated from the following files:
|