QwtPlainTextEngine renders texts using the basic Qt classes QPainter and QFontMetrics.
Definition at line 116 of file qwt_text_engine.h.
Public Member Functions | |
QwtPlainTextEngine () | |
virtual | ~QwtPlainTextEngine () |
virtual int | heightForWidth (const QFont &font, int flags, const QString &text, int width) const |
virtual QSize | textSize (const QFont &font, int flags, const QString &text) const |
virtual void | draw (QPainter *painter, const QRect &rect, int flags, const QString &text) const |
virtual bool | mightRender (const QString &) const |
virtual void | textMargins (const QFont &, const QString &, int &left, int &right, int &top, int &bottom) const |
|
Constructor.
Definition at line 131 of file qwt_text_engine.cpp. |
|
Destructor.
Definition at line 137 of file qwt_text_engine.cpp. |
|
Draw the text in a clipping rectangle. A wrapper for QPainter::drawText.
Implements QwtTextEngine. Definition at line 210 of file qwt_text_engine.cpp. References QwtPainter::drawText(). |
|
Find the height for a given width
Implements QwtTextEngine. Definition at line 152 of file qwt_text_engine.cpp. |
|
Test if a string can be rendered by this text engine.
Implements QwtTextEngine. Definition at line 220 of file qwt_text_engine.cpp. |
|
Return margins around the texts
Implements QwtTextEngine. Definition at line 190 of file qwt_text_engine.cpp. |
|
Returns the size, that is needed to render text
Implements QwtTextEngine. Definition at line 171 of file qwt_text_engine.cpp. |