Definition at line 23 of file qwt_text_engine.h.
Public Member Functions | |
virtual | ~QwtTextEngine () |
virtual int | heightForWidth (const QFont &font, int flags, const QString &text, int width) const =0 |
virtual QSize | textSize (const QFont &font, int flags, const QString &text) const =0 |
virtual void | draw (QPainter *painter, const QRect &rect, int flags, const QString &text) const =0 |
virtual bool | mightRender (const QString &) const =0 |
virtual void | textMargins (const QFont &, const QString &, int &left, int &right, int &top, int &bottom) |
Protected Member Functions | |
QwtTextEngine () |
|
Draw the text in a clipping rectangle.
Implemented in QwtPlainTextEngine, and QwtRichTextEngine. |
|
Find the height for a given width Implemented in QwtPlainTextEngine, and QwtRichTextEngine. |
|
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 in QwtPlainTextEngine. Definition at line 129 of file qwt_text_engine.cpp. |
|
Returns the size, that is needed to render text Implemented in QwtPlainTextEngine, and QwtRichTextEngine. |