~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.0/doc/man/man3/QwtRichTextEngine.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2008-05-26 10:26:31 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080526102631-bp95mfccnrb957nx
Tags: 5.1.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "QwtRichTextEngine" 3 "1 May 2008" "Version 5.1.0" "Qwt User's Guide" \" -*- nroff -*-
2
 
.ad l
3
 
.nh
4
 
.SH NAME
5
 
QwtRichTextEngine \- 
6
 
.SH SYNOPSIS
7
 
.br
8
 
.PP
9
 
Inherits \fBQwtTextEngine\fP.
10
 
.PP
11
 
.SH "Detailed Description"
12
 
.PP 
13
 
A text engine for Qt rich texts. 
14
 
 
15
 
\fBQwtRichTextEngine\fP renders Qt rich texts using the classes of the Scribe framework of Qt. 
16
 
.PP
17
 
Definition at line 150 of file qwt_text_engine.h.
18
 
.SS "Public Member Functions"
19
 
 
20
 
.in +1c
21
 
.ti -1c
22
 
.RI "\fBQwtRichTextEngine\fP ()"
23
 
.br
24
 
.ti -1c
25
 
.RI "virtual int \fBheightForWidth\fP (const QFont &font, int flags, const QString &text, int width) const"
26
 
.br
27
 
.ti -1c
28
 
.RI "virtual QSize \fBtextSize\fP (const QFont &font, int flags, const QString &text) const"
29
 
.br
30
 
.ti -1c
31
 
.RI "virtual void \fBdraw\fP (QPainter *painter, const QRect &rect, int flags, const QString &text) const"
32
 
.br
33
 
.ti -1c
34
 
.RI "virtual bool \fBmightRender\fP (const QString &) const"
35
 
.br
36
 
.ti -1c
37
 
.RI "virtual void \fBtextMargins\fP (const QFont &, const QString &, int &left, int &right, int &top, int &bottom) const"
38
 
.br
39
 
.in -1c
40
 
.SH "Constructor & Destructor Documentation"
41
 
.PP 
42
 
.SS "QwtRichTextEngine::QwtRichTextEngine ()"
43
 
.PP
44
 
Constructor. 
45
 
.PP
46
 
Definition at line 277 of file qwt_text_engine.cpp.
47
 
.SH "Member Function Documentation"
48
 
.PP 
49
 
.SS "int QwtRichTextEngine::heightForWidth (const QFont & font, int flags, const QString & text, int width) const\fC [virtual]\fP"
50
 
.PP
51
 
Find the height for a given width
52
 
.PP
53
 
\fBParameters:\fP
54
 
.RS 4
55
 
\fIfont\fP Font of the text 
56
 
.br
57
 
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText 
58
 
.br
59
 
\fItext\fP Text to be rendered 
60
 
.br
61
 
\fIwidth\fP Width
62
 
.RE
63
 
.PP
64
 
\fBReturns:\fP
65
 
.RS 4
66
 
Calculated height 
67
 
.RE
68
 
.PP
69
 
 
70
 
.PP
71
 
Implements \fBQwtTextEngine\fP.
72
 
.PP
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"
75
 
.PP
76
 
Returns the size, that is needed to render text
77
 
.PP
78
 
\fBParameters:\fP
79
 
.RS 4
80
 
\fIfont\fP Font of the text 
81
 
.br
82
 
\fIflags\fP Bitwise OR of the flags used like in QPainter::drawText 
83
 
.br
84
 
\fItext\fP Text to be rendered
85
 
.RE
86
 
.PP
87
 
\fBReturns:\fP
88
 
.RS 4
89
 
Caluclated size 
90
 
.RE
91
 
.PP
92
 
 
93
 
.PP
94
 
Implements \fBQwtTextEngine\fP.
95
 
.PP
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"
98
 
.PP
99
 
Draw the text in a clipping rectangle
100
 
.PP
101
 
\fBParameters:\fP
102
 
.RS 4
103
 
\fIpainter\fP Painter 
104
 
.br
105
 
\fIrect\fP Clipping rectangle 
106
 
.br
107
 
\fIflags\fP Bitwise OR of the flags like in for QPainter::drawText 
108
 
.br
109
 
\fItext\fP Text to be rendered 
110
 
.RE
111
 
.PP
112
 
 
113
 
.PP
114
 
Implements \fBQwtTextEngine\fP.
115
 
.PP
116
 
Definition at line 387 of file qwt_text_engine.cpp.
117
 
.PP
118
 
References QwtPainter::drawSimpleRichText().
119
 
.SS "bool QwtRichTextEngine::mightRender (const QString & text) const\fC [virtual]\fP"
120
 
.PP
121
 
Test if a string can be rendered by this text engine
122
 
.PP
123
 
\fBParameters:\fP
124
 
.RS 4
125
 
\fItext\fP Text to be tested 
126
 
.RE
127
 
.PP
128
 
\fBReturns:\fP
129
 
.RS 4
130
 
QStyleSheet::mightBeRichText(text); 
131
 
.RE
132
 
.PP
133
 
 
134
 
.PP
135
 
Implements \fBQwtTextEngine\fP.
136
 
.PP
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"
139
 
.PP
140
 
Return margins around the texts
141
 
.PP
142
 
\fBParameters:\fP
143
 
.RS 4
144
 
\fIleft\fP Return 0 
145
 
.br
146
 
\fIright\fP Return 0 
147
 
.br
148
 
\fItop\fP Return 0 
149
 
.br
150
 
\fIbottom\fP Return 0 
151
 
.RE
152
 
.PP
153
 
 
154
 
.PP
155
 
Implements \fBQwtTextEngine\fP.
156
 
.PP
157
 
Definition at line 430 of file qwt_text_engine.cpp.
158
 
 
159
 
.SH "Author"
160
 
.PP 
161
 
Generated automatically by Doxygen for Qwt User's Guide from the source code.