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

« back to all changes in this revision

Viewing changes to qwt-5.1.1/doc/man/man3/QwtText.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "QwtText" 3 "24 May 2008" "Version 5.1.1" "Qwt User's Guide" \" -*- nroff -*-
2
 
.ad l
3
 
.nh
4
 
.SH NAME
5
 
QwtText \- 
6
 
.SH SYNOPSIS
7
 
.br
8
 
.PP
9
 
.SH "Detailed Description"
10
 
.PP 
11
 
A class representing a text. 
12
 
 
13
 
A \fBQwtText\fP is a text including a set of attributes how to render it.
14
 
.PP
15
 
.IP "\(bu" 2
16
 
Format
17
 
.br
18
 
 A text might include control sequences (f.e tags) describing how to render it. Each format (f.e MathML, TeX, Qt Rich Text) has its own set of control sequences, that can be handles by a \fBQwtTextEngine\fP for this format.
19
 
.IP "\(bu" 2
20
 
Background
21
 
.br
22
 
 A text might have a background, defined by a QPen and QBrush to improve its visibility.
23
 
.IP "\(bu" 2
24
 
Font
25
 
.br
26
 
 A text might have an individual font.
27
 
.IP "\(bu" 2
28
 
Color
29
 
.br
30
 
 A text might have an individual color.
31
 
.IP "\(bu" 2
32
 
Render Flags
33
 
.br
34
 
 Flags from Qt::AlignmentFlag and Qt::TextFlag used like in QPainter::drawText.
35
 
.PP
36
 
.PP
37
 
\fBSee also:\fP
38
 
.RS 4
39
 
\fBQwtTextEngine\fP, \fBQwtTextLabel\fP 
40
 
.RE
41
 
.PP
42
 
 
43
 
.PP
44
 
Definition at line 51 of file qwt_text.h.
45
 
.SS "Public Types"
46
 
 
47
 
.in +1c
48
 
.ti -1c
49
 
.RI "enum \fBTextFormat\fP { \fBAutoText\fP =  0, \fBPlainText\fP, \fBRichText\fP, \fBMathMLText\fP, \fBTeXText\fP, \fBOtherFormat\fP =  100 }"
50
 
.br
51
 
.ti -1c
52
 
.RI "enum \fBPaintAttribute\fP { \fBPaintCached\fP =  1, \fBPaintPacked\fP =  2, \fBPaintFiltered\fP =  1, \fBClipPolygons\fP =  2, \fBPaintUsingTextFont\fP =  1, \fBPaintUsingTextColor\fP =  2, \fBPaintBackground\fP =  4 }"
53
 
.br
54
 
.ti -1c
55
 
.RI "enum \fBLayoutAttribute\fP { \fBMinimumLayout\fP =  1 }"
56
 
.br
57
 
.in -1c
58
 
.SS "Public Member Functions"
59
 
 
60
 
.in +1c
61
 
.ti -1c
62
 
.RI "\fBQwtText\fP (const QString &=QString::null, \fBTextFormat\fP textFormat=AutoText)"
63
 
.br
64
 
.ti -1c
65
 
.RI "\fBQwtText\fP (const \fBQwtText\fP &)"
66
 
.br
67
 
.ti -1c
68
 
.RI "\fB~QwtText\fP ()"
69
 
.br
70
 
.ti -1c
71
 
.RI "\fBQwtText\fP & \fBoperator=\fP (const \fBQwtText\fP &)"
72
 
.br
73
 
.ti -1c
74
 
.RI "int \fBoperator==\fP (const \fBQwtText\fP &) const"
75
 
.br
76
 
.ti -1c
77
 
.RI "int \fBoperator!=\fP (const \fBQwtText\fP &) const"
78
 
.br
79
 
.ti -1c
80
 
.RI "void \fBsetText\fP (const QString &, \fBQwtText::TextFormat\fP textFormat=AutoText)"
81
 
.br
82
 
.ti -1c
83
 
.RI "QString \fBtext\fP () const"
84
 
.br
85
 
.ti -1c
86
 
.RI "bool \fBisNull\fP () const"
87
 
.br
88
 
.ti -1c
89
 
.RI "bool \fBisEmpty\fP () const"
90
 
.br
91
 
.ti -1c
92
 
.RI "void \fBsetFont\fP (const QFont &)"
93
 
.br
94
 
.ti -1c
95
 
.RI "QFont \fBfont\fP () const"
96
 
.br
97
 
.ti -1c
98
 
.RI "QFont \fBusedFont\fP (const QFont &) const "
99
 
.br
100
 
.ti -1c
101
 
.RI "void \fBsetRenderFlags\fP (int flags)"
102
 
.br
103
 
.ti -1c
104
 
.RI "int \fBrenderFlags\fP () const"
105
 
.br
106
 
.ti -1c
107
 
.RI "void \fBsetColor\fP (const QColor &)"
108
 
.br
109
 
.ti -1c
110
 
.RI "QColor \fBcolor\fP () const"
111
 
.br
112
 
.ti -1c
113
 
.RI "QColor \fBusedColor\fP (const QColor &) const"
114
 
.br
115
 
.ti -1c
116
 
.RI "void \fBsetBackgroundPen\fP (const QPen &)"
117
 
.br
118
 
.ti -1c
119
 
.RI "QPen \fBbackgroundPen\fP () const"
120
 
.br
121
 
.ti -1c
122
 
.RI "void \fBsetBackgroundBrush\fP (const QBrush &)"
123
 
.br
124
 
.ti -1c
125
 
.RI "QBrush \fBbackgroundBrush\fP () const"
126
 
.br
127
 
.ti -1c
128
 
.RI "void \fBsetPaintAttribute\fP (\fBPaintAttribute\fP, bool on=true)"
129
 
.br
130
 
.ti -1c
131
 
.RI "bool \fBtestPaintAttribute\fP (\fBPaintAttribute\fP) const"
132
 
.br
133
 
.ti -1c
134
 
.RI "void \fBsetLayoutAttribute\fP (\fBLayoutAttribute\fP, bool on=true)"
135
 
.br
136
 
.ti -1c
137
 
.RI "bool \fBtestLayoutAttribute\fP (\fBLayoutAttribute\fP) const"
138
 
.br
139
 
.ti -1c
140
 
.RI "int \fBheightForWidth\fP (int width, const QFont &=QFont()) const"
141
 
.br
142
 
.ti -1c
143
 
.RI "QSize \fBtextSize\fP (const QFont &=QFont()) const"
144
 
.br
145
 
.ti -1c
146
 
.RI "void \fBdraw\fP (QPainter *painter, const QRect &rect) const"
147
 
.br
148
 
.in -1c
149
 
.SS "Static Public Member Functions"
150
 
 
151
 
.in +1c
152
 
.ti -1c
153
 
.RI "static const \fBQwtTextEngine\fP * \fBtextEngine\fP (const QString &text, \fBQwtText::TextFormat\fP=AutoText)"
154
 
.br
155
 
.ti -1c
156
 
.RI "static const \fBQwtTextEngine\fP * \fBtextEngine\fP (\fBQwtText::TextFormat\fP)"
157
 
.br
158
 
.ti -1c
159
 
.RI "static void \fBsetTextEngine\fP (\fBQwtText::TextFormat\fP, \fBQwtTextEngine\fP *)"
160
 
.br
161
 
.in -1c
162
 
.SH "Member Enumeration Documentation"
163
 
.PP 
164
 
.SS "enum \fBQwtText::TextFormat\fP"
165
 
.PP
166
 
Text format. 
167
 
.PP
168
 
The text format defines the \fBQwtTextEngine\fP, that is used to render the text.
169
 
.PP
170
 
.IP "\(bu" 2
171
 
AutoText
172
 
.br
173
 
 The text format is determined using \fBQwtTextEngine::mightRender\fP for all available text engines in increasing order > PlainText. If none of the text engines can render the text is rendered like PlainText.
174
 
.IP "\(bu" 2
175
 
PlainText
176
 
.br
177
 
 Draw the text as it is, using a \fBQwtPlainTextEngine\fP.
178
 
.IP "\(bu" 2
179
 
RichText
180
 
.br
181
 
 Use the Scribe framework (Qt Rich Text) to render the text.
182
 
.IP "\(bu" 2
183
 
MathMLText
184
 
.br
185
 
 Use a MathML (http://en.wikipedia.org/wiki/MathML) render engine to display the text. The Qwt MathML extension offers such an engine based on the MathML renderer of the Qt solutions package. Unfortunately it is only available for owners of a commercial Qt license.
186
 
.IP "\(bu" 2
187
 
TeXText
188
 
.br
189
 
 Use a TeX (http://en.wikipedia.org/wiki/TeX) render engine to display the text.
190
 
.IP "\(bu" 2
191
 
OtherFormat
192
 
.br
193
 
 The number of text formats can be extended using setTextEngine. Formats >= OtherFormat are not used by Qwt.
194
 
.PP
195
 
.PP
196
 
\fBSee also:\fP
197
 
.RS 4
198
 
\fBQwtTextEngine\fP, \fBsetTextEngine\fP 
199
 
.RE
200
 
.PP
201
 
 
202
 
.PP
203
 
Definition at line 85 of file qwt_text.h.
204
 
.SS "enum \fBQwtText::PaintAttribute\fP"
205
 
.PP
206
 
Paint Attributes. 
207
 
.PP
208
 
Font and color and background are optional attributes of a \fBQwtText\fP. The paint attributes hold the information, if they are set.
209
 
.PP
210
 
.IP "\(bu" 2
211
 
PaintUsingTextFont
212
 
.br
213
 
 The text has an individual font.
214
 
.IP "\(bu" 2
215
 
PaintUsingTextColor
216
 
.br
217
 
 The text has an individual color.
218
 
.IP "\(bu" 2
219
 
PaintBackground
220
 
.br
221
 
 The text has an individual background. 
222
 
.PP
223
 
 
224
 
.PP
225
 
Definition at line 111 of file qwt_text.h.
226
 
.SS "enum \fBQwtText::LayoutAttribute\fP"
227
 
.PP
228
 
Layout Attributes. 
229
 
.PP
230
 
The layout attributes affects some aspects of the layout of the text.
231
 
.PP
232
 
.IP "\(bu" 2
233
 
MinimumLayout
234
 
.br
235
 
 Layout the text without its margins. This mode is useful if a text needs to be aligned accurately, like the tick labels of a scale. If \fBQwtTextEngine::textMargins\fP is not implemented for the format of the text, MinimumLayout has no effect. 
236
 
.PP
237
 
 
238
 
.PP
239
 
Definition at line 129 of file qwt_text.h.
240
 
.SH "Constructor & Destructor Documentation"
241
 
.PP 
242
 
.SS "QwtText::QwtText (const QString & text = \fCQString::null\fP, \fBQwtText::TextFormat\fP textFormat = \fCAutoText\fP)"
243
 
.PP
244
 
Constructor
245
 
.PP
246
 
\fBParameters:\fP
247
 
.RS 4
248
 
\fItext\fP Text content 
249
 
.br
250
 
\fItextFormat\fP Text format 
251
 
.RE
252
 
.PP
253
 
 
254
 
.PP
255
 
Definition at line 180 of file qwt_text.cpp.
256
 
.PP
257
 
References textEngine().
258
 
.SS "QwtText::QwtText (const \fBQwtText\fP &)"
259
 
.PP
260
 
Copy constructor. 
261
 
.PP
262
 
Definition at line 190 of file qwt_text.cpp.
263
 
.PP
264
 
References d_data, and d_layoutCache.
265
 
.SS "QwtText::~QwtText ()"
266
 
.PP
267
 
Destructor. 
268
 
.PP
269
 
Definition at line 200 of file qwt_text.cpp.
270
 
.SH "Member Function Documentation"
271
 
.PP 
272
 
.SS "\fBQwtText\fP & QwtText::operator= (const \fBQwtText\fP &)"
273
 
.PP
274
 
Assignement operator. 
275
 
.PP
276
 
Definition at line 207 of file qwt_text.cpp.
277
 
.PP
278
 
References d_data, and d_layoutCache.
279
 
.SS "void QwtText::setText (const QString & text, \fBQwtText::TextFormat\fP textFormat = \fCAutoText\fP)"
280
 
.PP
281
 
Assign a new text content
282
 
.PP
283
 
\fBParameters:\fP
284
 
.RS 4
285
 
\fItext\fP Text content 
286
 
.br
287
 
\fItextFormat\fP Text format 
288
 
.RE
289
 
.PP
290
 
 
291
 
.PP
292
 
Definition at line 237 of file qwt_text.cpp.
293
 
.PP
294
 
References textEngine().
295
 
.SS "QString QwtText::text () const"
296
 
.PP
297
 
Return the text. 
298
 
.PP
299
 
\fBSee also:\fP
300
 
.RS 4
301
 
\fBsetText\fP 
302
 
.RE
303
 
.PP
304
 
 
305
 
.PP
306
 
Definition at line 249 of file qwt_text.cpp.
307
 
.PP
308
 
Referenced by QwtPlot::grabProperties().
309
 
.SS "bool QwtText::isNull () const\fC [inline]\fP"
310
 
.PP
311
 
\fBReturns:\fP
312
 
.RS 4
313
 
\fBtext()\fP.\fBisNull()\fP 
314
 
.RE
315
 
.PP
316
 
 
317
 
.PP
318
 
Definition at line 149 of file qwt_text.h.
319
 
.SS "bool QwtText::isEmpty () const\fC [inline]\fP"
320
 
.PP
321
 
\fBReturns:\fP
322
 
.RS 4
323
 
\fBtext()\fP.\fBisEmpty()\fP 
324
 
.RE
325
 
.PP
326
 
 
327
 
.PP
328
 
Definition at line 152 of file qwt_text.h.
329
 
.PP
330
 
Referenced by QwtScaleDraw::boundingLabelRect(), QwtScaleDraw::drawLabel(), QwtRoundScaleDraw::drawLabel(), QwtPicker::drawTracker(), QwtRoundScaleDraw::extent(), QwtScaleDraw::labelRect(), and QwtPicker::trackerRect().
331
 
.SS "void QwtText::setFont (const QFont & font)"
332
 
.PP
333
 
Set the font.
334
 
.PP
335
 
\fBParameters:\fP
336
 
.RS 4
337
 
\fIfont\fP Font 
338
 
.RE
339
 
.PP
340
 
\fBNote:\fP
341
 
.RS 4
342
 
Setting the font might have no effect, when the text contains control sequences for setting fonts. 
343
 
.RE
344
 
.PP
345
 
 
346
 
.PP
347
 
Definition at line 289 of file qwt_text.cpp.
348
 
.PP
349
 
References setPaintAttribute().
350
 
.PP
351
 
Referenced by QwtPlotPrintFilter::apply(), and QwtPicker::drawTracker().
352
 
.SS "QFont QwtText::font () const"
353
 
.PP
354
 
Return the font. 
355
 
.PP
356
 
Definition at line 296 of file qwt_text.cpp.
357
 
.PP
358
 
Referenced by QwtPlotPrintFilter::apply(), draw(), heightForWidth(), and textSize().
359
 
.SS "QFont QwtText::usedFont (const QFont & defaultFont) const"
360
 
.PP
361
 
Return the font of the text, if it has one. Otherwise return defaultFont.
362
 
.PP
363
 
\fBParameters:\fP
364
 
.RS 4
365
 
\fIdefaultFont\fP Default font 
366
 
.RE
367
 
.PP
368
 
\fBSee also:\fP
369
 
.RS 4
370
 
\fBsetFont\fP, \fBfont\fP, PaintAttributes 
371
 
.RE
372
 
.PP
373
 
 
374
 
.PP
375
 
Definition at line 308 of file qwt_text.cpp.
376
 
.PP
377
 
Referenced by QwtPicker::drawTracker(), heightForWidth(), and textSize().
378
 
.SS "void QwtText::setRenderFlags (int renderFlags)"
379
 
.PP
380
 
Change the render flags. 
381
 
.PP
382
 
The default setting is Qt::AlignCenter
383
 
.PP
384
 
\fBParameters:\fP
385
 
.RS 4
386
 
\fIrenderFlags\fP Bitwise OR of the flags used like in QPainter::drawText
387
 
.RE
388
 
.PP
389
 
\fBSee also:\fP
390
 
.RS 4
391
 
\fBrenderFlags\fP, \fBQwtTextEngine::draw\fP 
392
 
.RE
393
 
.PP
394
 
\fBNote:\fP
395
 
.RS 4
396
 
Some renderFlags might have no effect, depending on the text format. 
397
 
.RE
398
 
.PP
399
 
 
400
 
.PP
401
 
Definition at line 264 of file qwt_text.cpp.
402
 
.PP
403
 
Referenced by QwtScaleWidget::drawTitle(), QwtLegendItem::setText(), QwtScaleWidget::setTitle(), and QwtAbstractScaleDraw::tickLabel().
404
 
.SS "int QwtText::renderFlags () const"
405
 
.PP
406
 
\fBReturns:\fP
407
 
.RS 4
408
 
Render flags 
409
 
.RE
410
 
.PP
411
 
\fBSee also:\fP
412
 
.RS 4
413
 
\fBsetRenderFlags\fP 
414
 
.RE
415
 
.PP
416
 
 
417
 
.PP
418
 
Definition at line 277 of file qwt_text.cpp.
419
 
.PP
420
 
Referenced by QwtScaleWidget::setTitle().
421
 
.SS "void QwtText::setColor (const QColor & color)"
422
 
.PP
423
 
Set the pen color used for painting the text.
424
 
.PP
425
 
\fBParameters:\fP
426
 
.RS 4
427
 
\fIcolor\fP Color 
428
 
.RE
429
 
.PP
430
 
\fBNote:\fP
431
 
.RS 4
432
 
Setting the color might have no effect, when the text contains control sequences for setting colors. 
433
 
.RE
434
 
.PP
435
 
 
436
 
.PP
437
 
Definition at line 323 of file qwt_text.cpp.
438
 
.PP
439
 
References setPaintAttribute().
440
 
.PP
441
 
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset().
442
 
.SS "QColor QwtText::color () const"
443
 
.PP
444
 
Return the pen color, used for painting the text. 
445
 
.PP
446
 
Definition at line 330 of file qwt_text.cpp.
447
 
.PP
448
 
Referenced by QwtPlotPrintFilter::apply().
449
 
.SS "QColor QwtText::usedColor (const QColor & defaultColor) const"
450
 
.PP
451
 
Return the color of the text, if it has one. Otherwise return defaultColor.
452
 
.PP
453
 
\fBParameters:\fP
454
 
.RS 4
455
 
\fIdefaultColor\fP Default color 
456
 
.RE
457
 
.PP
458
 
\fBSee also:\fP
459
 
.RS 4
460
 
\fBsetColor\fP, \fBcolor\fP, PaintAttributes 
461
 
.RE
462
 
.PP
463
 
 
464
 
.PP
465
 
Definition at line 342 of file qwt_text.cpp.
466
 
.SS "void QwtText::setBackgroundPen (const QPen & pen)"
467
 
.PP
468
 
Set the background pen
469
 
.PP
470
 
\fBParameters:\fP
471
 
.RS 4
472
 
\fIpen\fP Background pen 
473
 
.RE
474
 
.PP
475
 
\fBSee also:\fP
476
 
.RS 4
477
 
\fBbackgroundPen\fP, \fBsetBackgroundBrush\fP 
478
 
.RE
479
 
.PP
480
 
 
481
 
.PP
482
 
Definition at line 356 of file qwt_text.cpp.
483
 
.PP
484
 
References setPaintAttribute().
485
 
.SS "QPen QwtText::backgroundPen () const"
486
 
.PP
487
 
\fBReturns:\fP
488
 
.RS 4
489
 
Background pen 
490
 
.RE
491
 
.PP
492
 
\fBSee also:\fP
493
 
.RS 4
494
 
\fBsetBackgroundPen\fP, \fBbackgroundBrush\fP 
495
 
.RE
496
 
.PP
497
 
 
498
 
.PP
499
 
Definition at line 366 of file qwt_text.cpp.
500
 
.SS "void QwtText::setBackgroundBrush (const QBrush & brush)"
501
 
.PP
502
 
Set the background brush
503
 
.PP
504
 
\fBParameters:\fP
505
 
.RS 4
506
 
\fIbrush\fP Background brush 
507
 
.RE
508
 
.PP
509
 
\fBSee also:\fP
510
 
.RS 4
511
 
\fBbackgroundBrush\fP, \fBsetBackgroundPen\fP 
512
 
.RE
513
 
.PP
514
 
 
515
 
.PP
516
 
Definition at line 377 of file qwt_text.cpp.
517
 
.PP
518
 
References setPaintAttribute().
519
 
.SS "QBrush QwtText::backgroundBrush () const"
520
 
.PP
521
 
\fBReturns:\fP
522
 
.RS 4
523
 
Background brush 
524
 
.RE
525
 
.PP
526
 
\fBSee also:\fP
527
 
.RS 4
528
 
\fBsetBackgroundBrush\fP, \fBbackgroundPen\fP 
529
 
.RE
530
 
.PP
531
 
 
532
 
.PP
533
 
Definition at line 387 of file qwt_text.cpp.
534
 
.SS "void QwtText::setPaintAttribute (\fBPaintAttribute\fP attribute, bool on = \fCtrue\fP)"
535
 
.PP
536
 
Change a paint attribute
537
 
.PP
538
 
\fBParameters:\fP
539
 
.RS 4
540
 
\fIattribute\fP Paint attribute 
541
 
.br
542
 
\fIon\fP On/Off
543
 
.RE
544
 
.PP
545
 
\fBNote:\fP
546
 
.RS 4
547
 
Used by setFont, setColor, setBackgroundPen and setBackgroundBrush 
548
 
.RE
549
 
.PP
550
 
\fBSee also:\fP
551
 
.RS 4
552
 
\fBtestPaintAttribute\fP 
553
 
.RE
554
 
.PP
555
 
 
556
 
.PP
557
 
Definition at line 401 of file qwt_text.cpp.
558
 
.PP
559
 
Referenced by setBackgroundBrush(), setBackgroundPen(), setColor(), and setFont().
560
 
.SS "bool QwtText::testPaintAttribute (\fBPaintAttribute\fP attribute) const"
561
 
.PP
562
 
Test a paint attribute
563
 
.PP
564
 
\fBParameters:\fP
565
 
.RS 4
566
 
\fIattribute\fP Paint attribute 
567
 
.RE
568
 
.PP
569
 
\fBReturns:\fP
570
 
.RS 4
571
 
true, if attribute is enabled
572
 
.RE
573
 
.PP
574
 
\fBSee also:\fP
575
 
.RS 4
576
 
\fBsetPaintAttribute\fP 
577
 
.RE
578
 
.PP
579
 
 
580
 
.PP
581
 
Definition at line 417 of file qwt_text.cpp.
582
 
.PP
583
 
Referenced by QwtPlotPrintFilter::apply().
584
 
.SS "void QwtText::setLayoutAttribute (\fBLayoutAttribute\fP attribute, bool on = \fCtrue\fP)"
585
 
.PP
586
 
Change a layout attribute
587
 
.PP
588
 
\fBParameters:\fP
589
 
.RS 4
590
 
\fIattribute\fP Layout attribute 
591
 
.br
592
 
\fIon\fP On/Off 
593
 
.RE
594
 
.PP
595
 
\fBSee also:\fP
596
 
.RS 4
597
 
\fBtestLayoutAttribute\fP 
598
 
.RE
599
 
.PP
600
 
 
601
 
.PP
602
 
Definition at line 429 of file qwt_text.cpp.
603
 
.SS "bool QwtText::testLayoutAttribute (\fBLayoutAttribute\fP attribute) const"
604
 
.PP
605
 
Test a layout attribute
606
 
.PP
607
 
\fBParameters:\fP
608
 
.RS 4
609
 
\fIattribute\fP Layout attribute 
610
 
.RE
611
 
.PP
612
 
\fBReturns:\fP
613
 
.RS 4
614
 
true, if attribute is enabled
615
 
.RE
616
 
.PP
617
 
\fBSee also:\fP
618
 
.RS 4
619
 
\fBsetLayoutAttribute\fP 
620
 
.RE
621
 
.PP
622
 
 
623
 
.PP
624
 
Definition at line 445 of file qwt_text.cpp.
625
 
.SS "int QwtText::heightForWidth (int width, const QFont & defaultFont = \fCQFont()\fP) const"
626
 
.PP
627
 
Find the height for a given width
628
 
.PP
629
 
\fBParameters:\fP
630
 
.RS 4
631
 
\fIdefaultFont\fP Font, used for the calculation if the text has no font 
632
 
.br
633
 
\fIwidth\fP Width
634
 
.RE
635
 
.PP
636
 
\fBReturns:\fP
637
 
.RS 4
638
 
Calculated height 
639
 
.RE
640
 
.PP
641
 
 
642
 
.PP
643
 
Definition at line 458 of file qwt_text.cpp.
644
 
.PP
645
 
References font(), QwtMetricsMap::layoutToScreenX(), QwtPainter::metricsMap(), QwtMetricsMap::screenToLayoutY(), and usedFont().
646
 
.SS "QSize QwtText::textSize (const QFont & defaultFont = \fCQFont()\fP) const"
647
 
.PP
648
 
Returns the size, that is needed to render text
649
 
.PP
650
 
\fBParameters:\fP
651
 
.RS 4
652
 
\fIdefaultFont\fP Font of the text 
653
 
.RE
654
 
.PP
655
 
\fBReturns:\fP
656
 
.RS 4
657
 
Caluclated size 
658
 
.RE
659
 
.PP
660
 
 
661
 
.PP
662
 
Definition at line 510 of file qwt_text.cpp.
663
 
.PP
664
 
References font(), QwtMetricsMap::isIdentity(), QwtPainter::metricsMap(), QwtMetricsMap::screenToLayout(), and usedFont().
665
 
.PP
666
 
Referenced by QwtScaleDraw::boundingLabelRect(), QwtScaleDraw::drawLabel(), QwtRoundScaleDraw::drawLabel(), QwtRoundScaleDraw::extent(), QwtScaleDraw::labelRect(), and QwtPicker::trackerRect().
667
 
.SS "void QwtText::draw (QPainter * painter, const QRect & rect) const"
668
 
.PP
669
 
Draw a text into a rectangle
670
 
.PP
671
 
\fBParameters:\fP
672
 
.RS 4
673
 
\fIpainter\fP Painter 
674
 
.br
675
 
\fIrect\fP Rectangle 
676
 
.RE
677
 
.PP
678
 
 
679
 
.PP
680
 
Definition at line 564 of file qwt_text.cpp.
681
 
.PP
682
 
References QwtPainter::drawRect(), font(), QwtPainter::metricsMap(), QwtMetricsMap::screenToLayoutX(), and QwtMetricsMap::screenToLayoutY().
683
 
.PP
684
 
Referenced by QwtLegendItem::drawItem(), QwtScaleDraw::drawLabel(), QwtRoundScaleDraw::drawLabel(), QwtScaleWidget::drawTitle(), QwtPicker::drawTracker(), and QwtPlot::printTitle().
685
 
.SS "const \fBQwtTextEngine\fP * QwtText::textEngine (const QString & text, \fBQwtText::TextFormat\fP format = \fCAutoText\fP)\fC [static]\fP"
686
 
.PP
687
 
Find the text engine for a text format
688
 
.PP
689
 
In case of QwtText::AutoText the first text engine (beside \fBQwtPlainTextEngine\fP) is returned, where \fBQwtTextEngine::mightRender\fP returns true. If there is none \fBQwtPlainTextEngine\fP is returnd.
690
 
.PP
691
 
If no text engine is registered for the format \fBQwtPlainTextEngine\fP is returnd.
692
 
.PP
693
 
\fBParameters:\fP
694
 
.RS 4
695
 
\fItext\fP Text, needed in case of AutoText 
696
 
.br
697
 
\fIformat\fP Text format 
698
 
.RE
699
 
.PP
700
 
 
701
 
.PP
702
 
Definition at line 646 of file qwt_text.cpp.
703
 
.PP
704
 
Referenced by QwtText(), and setText().
705
 
.SS "const \fBQwtTextEngine\fP * QwtText::textEngine (\fBQwtText::TextFormat\fP format)\fC [static]\fP"
706
 
.PP
707
 
Find the text engine for a text format. 
708
 
.PP
709
 
textEngine can be used to find out if a text format is supported. F.e, if one wants to use MathML labels, the MathML renderer from the commercial Qt solutions package might be required, that is not available in Qt Open Source Edition environments.
710
 
.PP
711
 
\fBParameters:\fP
712
 
.RS 4
713
 
\fIformat\fP Text format 
714
 
.RE
715
 
.PP
716
 
\fBReturns:\fP
717
 
.RS 4
718
 
The text engine, or NULL if no engine is available. 
719
 
.RE
720
 
.PP
721
 
 
722
 
.PP
723
 
Definition at line 701 of file qwt_text.cpp.
724
 
.SS "void QwtText::setTextEngine (\fBQwtText::TextFormat\fP format, \fBQwtTextEngine\fP * engine)\fC [static]\fP"
725
 
.PP
726
 
Assign/Replace a text engine for a text format
727
 
.PP
728
 
With setTextEngine it is possible to extend Qwt with other types of text formats.
729
 
.PP
730
 
Owner of a commercial Qt license can build the qwtmathml library, that is based on the MathML renderer, that is included in MML Widget component of the Qt solutions package.
731
 
.PP
732
 
For QwtText::PlainText it is not allowed to assign a engine == NULL.
733
 
.PP
734
 
\fBParameters:\fP
735
 
.RS 4
736
 
\fIformat\fP Text format 
737
 
.br
738
 
\fIengine\fP Text engine
739
 
.RE
740
 
.PP
741
 
\fBSee also:\fP
742
 
.RS 4
743
 
\fBQwtMathMLTextEngine\fP 
744
 
.RE
745
 
.PP
746
 
\fBWarning:\fP
747
 
.RS 4
748
 
Using QwtText::AutoText does nothing. 
749
 
.RE
750
 
.PP
751
 
 
752
 
.PP
753
 
Definition at line 681 of file qwt_text.cpp.
754
 
 
755
 
.SH "Author"
756
 
.PP 
757
 
Generated automatically by Doxygen for Qwt User's Guide from the source code.