Definition at line 157 of file qwt_text.h.
Public Member Functions | |
QwtRichText (const QString &text, const QFont &font, int flags=Qt::AlignCenter|Qt::ExpandTabs|Qt::WordBreak, const QColor &color=QColor(), const QPen &pen=QPen(Qt::NoPen), const QBrush &brush=QBrush(Qt::NoBrush)) | |
QwtRichText (const QString &, const QFont &, const QColor &) | |
virtual | ~QwtRichText () |
virtual QwtText * | clone () const |
virtual void | setText (const QString &text) |
virtual void | setFont (const QFont &font) |
virtual void | setFlags (int flags) |
virtual int | heightForWidth (int width) const |
virtual QRect | boundingRect (QPainter *painter=0) const |
virtual void | draw (QPainter *painter, const QRect &rect) const |
|
Constructor.
Definition at line 364 of file qwt_text.cpp. References setText(). Referenced by clone(). |
|
Constructor.
Definition at line 380 of file qwt_text.cpp. References setText(). |
|
Destructor.
Definition at line 396 of file qwt_text.cpp. |
|
Returns the bounding rectangle. The bounding rectangle is calculated with respect to (0, 0). The left and top border depend on the flags:
Use for instance QRect::moveBy(x,y), before drawing the text into the rectangle. Implements QwtText. Definition at line 468 of file qwt_text.cpp. References QwtText::boundingRect(). |
|
Create a clone.
Implements QwtText. Definition at line 402 of file qwt_text.cpp. References QwtText::color(), QwtText::flags(), QwtText::font(), QwtRichText(), QwtText::rectBrush(), QwtText::rectPen(), and QwtText::text(). |
|
Draw the text in a clipping rectangle.
Implements QwtText. Definition at line 449 of file qwt_text.cpp. References QwtText::color(), QwtPainter::drawRect(), QwtPainter::drawSimpleRichText(), QwtText::flags(), QwtText::font(), QwtText::rectBrush(), QwtText::rectPen(), and QwtText::setFont(). |
|
Find the height for a given width.
Implements QwtText. Definition at line 438 of file qwt_text.cpp. References QwtText::heightForWidth(). |
|
Set the flags.
Reimplemented from QwtText. Definition at line 425 of file qwt_text.cpp. References QwtText::font(), QwtText::setFlags(), and QwtText::text(). |
|
Set the font.
Reimplemented from QwtText. Definition at line 418 of file qwt_text.cpp. References QwtText::setFont(). |
|
Set the text.
Reimplemented from QwtText. Definition at line 409 of file qwt_text.cpp. References QwtText::flags(), QwtText::font(), and QwtText::setText(). Referenced by QwtRichText(). |