Definition at line 69 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) |
|
Draw the text in a clipping rectangle.
Implements QwtTextEngine. Definition at line 175 of file qwt_text_engine.cpp. References QwtPainter::drawText(). |
|
Find the height for a given width Implements QwtTextEngine. Definition at line 145 of file qwt_text_engine.cpp. |
|
Return margins around the texts The textSize might include margins around the text, like QFontMetrics::descent. In situations where texts need to be aligend in detail, knowing these margins might improve the layout calculations. Reimplemented from QwtTextEngine. Definition at line 165 of file qwt_text_engine.cpp. |
|
Returns the size, that is needed to render text Implements QwtTextEngine. Definition at line 155 of file qwt_text_engine.cpp. |