1
.TH "QwtRichTextEngine" 3 "1 May 2008" "Version 5.1.0" "Qwt User's Guide" \" -*- nroff -*-
9
Inherits \fBQwtTextEngine\fP.
11
.SH "Detailed Description"
13
A text engine for Qt rich texts.
15
\fBQwtRichTextEngine\fP renders Qt rich texts using the classes of the Scribe framework of Qt.
17
Definition at line 150 of file qwt_text_engine.h.
18
.SS "Public Member Functions"
22
.RI "\fBQwtRichTextEngine\fP ()"
25
.RI "virtual int \fBheightForWidth\fP (const QFont &font, int flags, const QString &text, int width) const"
28
.RI "virtual QSize \fBtextSize\fP (const QFont &font, int flags, const QString &text) const"
31
.RI "virtual void \fBdraw\fP (QPainter *painter, const QRect &rect, int flags, const QString &text) const"
34
.RI "virtual bool \fBmightRender\fP (const QString &) const"
37
.RI "virtual void \fBtextMargins\fP (const QFont &, const QString &, int &left, int &right, int &top, int &bottom) const"
40
.SH "Constructor & Destructor Documentation"
42
.SS "QwtRichTextEngine::QwtRichTextEngine ()"
46
Definition at line 277 of file qwt_text_engine.cpp.
47
.SH "Member Function Documentation"
49
.SS "int QwtRichTextEngine::heightForWidth (const QFont & font, int flags, const QString & text, int width) const\fC [virtual]\fP"
51
Find the height for a given width
55
\fIfont\fP Font of the text
57
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
59
\fItext\fP Text to be rendered
71
Implements \fBQwtTextEngine\fP.
73
Definition at line 291 of file qwt_text_engine.cpp.
74
.SS "QSize QwtRichTextEngine::textSize (const QFont & font, int flags, const QString & text) const\fC [virtual]\fP"
76
Returns the size, that is needed to render text
80
\fIfont\fP Font of the text
82
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
84
\fItext\fP Text to be rendered
94
Implements \fBQwtTextEngine\fP.
96
Definition at line 316 of file qwt_text_engine.cpp.
97
.SS "void QwtRichTextEngine::draw (QPainter * painter, const QRect & rect, int flags, const QString & text) const\fC [virtual]\fP"
99
Draw the text in a clipping rectangle
103
\fIpainter\fP Painter
105
\fIrect\fP Clipping rectangle
107
\fIflags\fP Bitwise OR of the flags like in for QPainter::drawText
109
\fItext\fP Text to be rendered
114
Implements \fBQwtTextEngine\fP.
116
Definition at line 387 of file qwt_text_engine.cpp.
118
References QwtPainter::drawSimpleRichText().
119
.SS "bool QwtRichTextEngine::mightRender (const QString & text) const\fC [virtual]\fP"
121
Test if a string can be rendered by this text engine
125
\fItext\fP Text to be tested
130
QStyleSheet::mightBeRichText(text);
135
Implements \fBQwtTextEngine\fP.
137
Definition at line 413 of file qwt_text_engine.cpp.
138
.SS "void QwtRichTextEngine::textMargins (const QFont &, const QString &, int & left, int & right, int & top, int & bottom) const\fC [virtual]\fP"
140
Return margins around the texts
150
\fIbottom\fP Return 0
155
Implements \fBQwtTextEngine\fP.
157
Definition at line 430 of file qwt_text_engine.cpp.
161
Generated automatically by Doxygen for Qwt User's Guide from the source code.