1
.TH "QwtMathMLTextEngine" 3 "Fri Apr 15 2011" "Version 6.0.0" "Qwt User's Guide" \" -*- nroff -*-
7
Text Engine for the MathML renderer of the Qt solutions package.
13
\fC#include <qwt_mathml_text_engine.h>\fP
15
Inherits \fBQwtTextEngine\fP.
16
.SS "Public Member Functions"
20
.RI "\fBQwtMathMLTextEngine\fP ()"
23
.RI "virtual \fB~QwtMathMLTextEngine\fP ()"
26
.RI "virtual double \fBheightForWidth\fP (const QFont &font, int flags, const QString &text, double width) const "
29
.RI "virtual QSizeF \fBtextSize\fP (const QFont &font, int flags, const QString &text) const "
32
.RI "virtual void \fBdraw\fP (QPainter *painter, const QRectF &rect, int flags, const QString &text) const "
35
.RI "virtual bool \fBmightRender\fP (const QString &) const "
38
.RI "virtual void \fBtextMargins\fP (const QFont &, const QString &, double &left, double &right, double &top, double &bottom) const "
41
.SH "Detailed Description"
43
Text Engine for the MathML renderer of the Qt solutions package.
45
To enable MathML support the following code needs to be added to the application:
49
#include <qwt_mathml_text_engine.h>
51
QwtText::setTextEngine(QwtText::MathMLText, new QwtMathMLTextEngine());
58
\fBQwtTextEngine\fP, \fBQwtText::setTextEngine\fP
63
Unfortunately the MathML renderer doesn't support rotating of texts.
67
.SH "Constructor & Destructor Documentation"
69
.SS "QwtMathMLTextEngine::QwtMathMLTextEngine ()"
72
.SS "QwtMathMLTextEngine::~QwtMathMLTextEngine ()\fC [virtual]\fP"
75
.SH "Member Function Documentation"
77
.SS "void QwtMathMLTextEngine::draw (QPainter *painter, const QRectF &rect, intflags, const QString &text) const\fC [virtual]\fP"Draw the text in a clipping rectangle
83
\fIrect\fP Clipping rectangle
85
\fIflags\fP Bitwise OR of the flags like in for QPainter::drawText
87
\fItext\fP Text to be rendered
92
Implements \fBQwtTextEngine\fP.
93
.SS "double QwtMathMLTextEngine::heightForWidth (const QFont &font, intflags, const QString &text, doublewidth) const\fC [virtual]\fP"Find the height for a given width
97
\fIfont\fP Font of the text
99
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
101
\fItext\fP Text to be rendered
113
Implements \fBQwtTextEngine\fP.
114
.SS "bool QwtMathMLTextEngine::mightRender (const QString &text) const\fC [virtual]\fP"Test if a string can be rendered by \fBQwtMathMLTextEngine\fP
118
\fItext\fP Text to be tested
123
true, if text begins with '<math>'.
128
Implements \fBQwtTextEngine\fP.
129
.SS "void QwtMathMLTextEngine::textMargins (const QFont &, const QString &, double &left, double &right, double &top, double &bottom) const\fC [virtual]\fP"Return margins around the texts
139
\fIbottom\fP Return 0
144
Implements \fBQwtTextEngine\fP.
145
.SS "QSizeF QwtMathMLTextEngine::textSize (const QFont &font, intflags, const QString &text) const\fC [virtual]\fP"Returns the size, that is needed to render text
149
\fIfont\fP Font of the text
151
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
153
\fItext\fP Text to be rendered
163
Implements \fBQwtTextEngine\fP.
167
Generated automatically by Doxygen for Qwt User's Guide from the source code.