#include <canvas.h>
Inheritance diagram for Canvas::Text:


Public Types | |
| enum | HPos { HStart, HLeft, HRight, HCenter } |
| enum | VPos { VBaseline, VTop, VBottom, VCenter } |
Public Member Functions | |
| Text (const QString &text, const QColor &color, const QFont &font, HPos hp, VPos vp, Abstract *canvas=NULL) | |
| Text (Abstract *canvas=NULL) | |
| QString | text () const |
| void | setText (const QString &text) |
| QColor | color () const |
| void | setColor (const QColor &color) |
| QFont | font () const |
| void | setFont (const QFont &font) |
| HPos | hPositioning () const |
| VPos | vPositioning () const |
| void | setPositioning (HPos hp, VPos vp) |
| void | setSize (QSize size) |
| virtual void | paint (QPainter *p) |
| virtual QRect | rect () const |
A Text is a text that can be put in the canvas.
|
|
Specifies the meaning of the x coordinate of the item. It can refer to the start of the text, of the left, center, right of the bounding rectangle. |
|
|
Specifies the meaning of the y coordinate of the item. It can refer to the baseline of the text, of the top, center, bottom of the bounding rectangle. |
|
||||||||||||||||||||||||||||
|
Constructor, specifying the text and the parameters to use |
|
|
Constructor, creating with an empty text |
|
|
Returns the color |
|
|
Returns the font |
|
|
Returns the horizontal positioning style |
|
|
Override this function to draw the item with the painter Implements Canvas::Item. |
|
|
Override this function to return the rect the item will be drawn into Implements Canvas::Item. |
|
|
Sets the color |
|
|
Sets the font |
|
||||||||||||
|
Sets the positioning style |
|
|
Sets the size |
|
|
Sets the text |
|
|
Returns the text |
|
|
Returns the vertical positioning style |
1.4.3-20050530