A text engine for plain texts.
Definition qwt_text_engine.h:129
A text engine for Qt rich texts.
Definition qwt_text_engine.h:165
Abstract base class for rendering text strings.
Definition qwt_text_engine.h:48
virtual void textMargins(const QFont &font, const QString &text, double &left, double &right, double &top, double &bottom) const =0
Return margins around the texts.
virtual bool mightRender(const QString &text) const =0
Test if a string can be rendered by this text engine.
virtual void draw(QPainter *painter, const QRectF &rect, int flags, const QString &text) const =0
Draw the text in a clipping rectangle.
virtual QSizeF textSize(const QFont &font, int flags, const QString &text) const =0
Returns the size, that is needed to render text.
virtual double heightForWidth(const QFont &font, int flags, const QString &text, double width) const =0
Find the height for a given width.