QwtTextEngine(3) | Qwt User's Guide | QwtTextEngine(3) |
QwtTextEngine - Abstract base class for rendering text strings.
#include <qwt_text_engine.h>
Inherited by QwtMathMLTextEngine, QwtPlainTextEngine, and QwtRichTextEngine.
virtual ~QwtTextEngine ()
Destructor. virtual double heightForWidth (const QFont &font, int
flags, const QString &text, double width) const =0
virtual QSizeF textSize (const QFont &font, int flags, const
QString &text) const =0
virtual bool mightRender (const QString &text) const =0
virtual void textMargins (const QFont &font, const QString
&text, double &left, double &right, double &top, double
&bottom) const =0
virtual void draw (QPainter *painter, const QRectF &rect, int
flags, const QString &text) const =0
QwtTextEngine ()
Constructor.
Abstract base class for rendering text strings.
A text engine is responsible for rendering texts for a specific text format. They are used by QwtText to render a text.
QwtPlainTextEngine and QwtRichTextEngine are part of the Qwt library. The implementation of QwtMathMLTextEngine uses code from the Qt solution package. Because of license implications it is built into a separate library.
See also:
Draw the text in a clipping rectangle
Parameters:
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.
Find the height for a given width
Parameters:
Returns:
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.
Test if a string can be rendered by this text engine
Parameters:
Returns:
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.
Return margins around the texts
The textSize might include margins around the text, like QFontMetrics::descent(). In situations where texts need to be aligned in detail, knowing these margins might improve the layout calculations.
Parameters:
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.
Returns the size, that is needed to render text
Parameters:
Returns:
Implemented in QwtRichTextEngine, QwtPlainTextEngine, and QwtMathMLTextEngine.
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |