QwtText.3 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684
  1. .TH "QwtText" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtText \- A class representing a text\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_text\&.h>\fP
  11. .SS "Public Types"
  12. .in +1c
  13. .ti -1c
  14. .RI "enum \fBTextFormat\fP { \fBAutoText\fP = 0, \fBPlainText\fP, \fBRichText\fP, \fBMathMLText\fP, \fBTeXText\fP, \fBOtherFormat\fP = 100 }"
  15. .br
  16. .RI "Text format\&. "
  17. .ti -1c
  18. .RI "enum \fBPaintAttribute\fP { \fBPaintUsingTextFont\fP = 0x01, \fBPaintUsingTextColor\fP = 0x02, \fBPaintBackground\fP = 0x04 }"
  19. .br
  20. .RI "Paint Attributes\&. "
  21. .ti -1c
  22. .RI "enum \fBLayoutAttribute\fP { \fBMinimumLayout\fP = 0x01 }"
  23. .br
  24. .RI "Layout Attributes The layout attributes affects some aspects of the layout of the text\&. "
  25. .ti -1c
  26. .RI "typedef QFlags< \fBPaintAttribute\fP > \fBPaintAttributes\fP"
  27. .br
  28. .RI "Paint attributes\&. "
  29. .ti -1c
  30. .RI "typedef QFlags< \fBLayoutAttribute\fP > \fBLayoutAttributes\fP"
  31. .br
  32. .RI "Layout attributes\&. "
  33. .in -1c
  34. .SS "Public Member Functions"
  35. .in +1c
  36. .ti -1c
  37. .RI "\fBQwtText\fP (const QString &=QString(), \fBTextFormat\fP textFormat=\fBAutoText\fP)"
  38. .br
  39. .ti -1c
  40. .RI "\fBQwtText\fP (const \fBQwtText\fP &)"
  41. .br
  42. .RI "Copy constructor\&. "
  43. .ti -1c
  44. .RI "\fB~QwtText\fP ()"
  45. .br
  46. .RI "Destructor\&. "
  47. .ti -1c
  48. .RI "\fBQwtText\fP & \fBoperator=\fP (const \fBQwtText\fP &)"
  49. .br
  50. .RI "Assignment operator\&. "
  51. .ti -1c
  52. .RI "bool \fBoperator==\fP (const \fBQwtText\fP &) const"
  53. .br
  54. .RI "Relational operator\&. "
  55. .ti -1c
  56. .RI "bool \fBoperator!=\fP (const \fBQwtText\fP &) const"
  57. .br
  58. .RI "Relational operator\&. "
  59. .ti -1c
  60. .RI "void \fBsetText\fP (const QString &, \fBQwtText::TextFormat\fP textFormat=\fBAutoText\fP)"
  61. .br
  62. .ti -1c
  63. .RI "QString \fBtext\fP () const"
  64. .br
  65. .ti -1c
  66. .RI "bool \fBisNull\fP () const"
  67. .br
  68. .ti -1c
  69. .RI "bool \fBisEmpty\fP () const"
  70. .br
  71. .ti -1c
  72. .RI "void \fBsetFont\fP (const QFont &)"
  73. .br
  74. .ti -1c
  75. .RI "QFont \fBfont\fP () const"
  76. .br
  77. .RI "Return the font\&. "
  78. .ti -1c
  79. .RI "QFont \fBusedFont\fP (const QFont &) const"
  80. .br
  81. .ti -1c
  82. .RI "void \fBsetRenderFlags\fP (int)"
  83. .br
  84. .RI "Change the render flags\&. "
  85. .ti -1c
  86. .RI "int \fBrenderFlags\fP () const"
  87. .br
  88. .ti -1c
  89. .RI "void \fBsetColor\fP (const QColor &)"
  90. .br
  91. .ti -1c
  92. .RI "QColor \fBcolor\fP () const"
  93. .br
  94. .RI "Return the pen color, used for painting the text\&. "
  95. .ti -1c
  96. .RI "QColor \fBusedColor\fP (const QColor &) const"
  97. .br
  98. .ti -1c
  99. .RI "void \fBsetBorderRadius\fP (double)"
  100. .br
  101. .ti -1c
  102. .RI "double \fBborderRadius\fP () const"
  103. .br
  104. .ti -1c
  105. .RI "void \fBsetBorderPen\fP (const QPen &)"
  106. .br
  107. .ti -1c
  108. .RI "QPen \fBborderPen\fP () const"
  109. .br
  110. .ti -1c
  111. .RI "void \fBsetBackgroundBrush\fP (const QBrush &)"
  112. .br
  113. .ti -1c
  114. .RI "QBrush \fBbackgroundBrush\fP () const"
  115. .br
  116. .ti -1c
  117. .RI "void \fBsetPaintAttribute\fP (\fBPaintAttribute\fP, bool on=true)"
  118. .br
  119. .ti -1c
  120. .RI "bool \fBtestPaintAttribute\fP (\fBPaintAttribute\fP) const"
  121. .br
  122. .ti -1c
  123. .RI "void \fBsetLayoutAttribute\fP (\fBLayoutAttribute\fP, bool on=true)"
  124. .br
  125. .ti -1c
  126. .RI "bool \fBtestLayoutAttribute\fP (\fBLayoutAttribute\fP) const"
  127. .br
  128. .ti -1c
  129. .RI "double \fBheightForWidth\fP (double width, const QFont &=QFont()) const"
  130. .br
  131. .ti -1c
  132. .RI "QSizeF \fBtextSize\fP (const QFont &=QFont()) const"
  133. .br
  134. .ti -1c
  135. .RI "void \fBdraw\fP (QPainter *painter, const QRectF &rect) const"
  136. .br
  137. .in -1c
  138. .SS "Static Public Member Functions"
  139. .in +1c
  140. .ti -1c
  141. .RI "static const \fBQwtTextEngine\fP * \fBtextEngine\fP (const QString &\fBtext\fP, \fBQwtText::TextFormat\fP=\fBAutoText\fP)"
  142. .br
  143. .ti -1c
  144. .RI "static const \fBQwtTextEngine\fP * \fBtextEngine\fP (\fBQwtText::TextFormat\fP)"
  145. .br
  146. .RI "Find the text engine for a text format\&. "
  147. .ti -1c
  148. .RI "static void \fBsetTextEngine\fP (\fBQwtText::TextFormat\fP, \fBQwtTextEngine\fP *)"
  149. .br
  150. .in -1c
  151. .SH "Detailed Description"
  152. .PP
  153. A class representing a text\&.
  154. A \fBQwtText\fP is a text including a set of attributes how to render it\&.
  155. .PP
  156. .IP "\(bu" 2
  157. Format
  158. .br
  159. 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 special \fBQwtTextEngine\fP for this format\&.
  160. .IP "\(bu" 2
  161. Background
  162. .br
  163. A text might have a background, defined by a QPen and QBrush to improve its visibility\&. The corners of the background might be rounded\&.
  164. .IP "\(bu" 2
  165. Font
  166. .br
  167. A text might have an individual font\&.
  168. .IP "\(bu" 2
  169. Color
  170. .br
  171. A text might have an individual color\&.
  172. .IP "\(bu" 2
  173. Render Flags
  174. .br
  175. Flags from Qt::AlignmentFlag and Qt::TextFlag used like in QPainter::drawText()\&.
  176. .PP
  177. .PP
  178. \fBSee also\fP
  179. .RS 4
  180. \fBQwtTextEngine\fP, \fBQwtTextLabel\fP
  181. .RE
  182. .PP
  183. .SH "Member Enumeration Documentation"
  184. .PP
  185. .SS "enum \fBQwtText::LayoutAttribute\fP"
  186. .PP
  187. Layout Attributes The layout attributes affects some aspects of the layout of the text\&.
  188. .PP
  189. \fBEnumerator\fP
  190. .in +1c
  191. .TP
  192. \fB\fIMinimumLayout \fP\fP
  193. 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\&.
  194. .SS "enum \fBQwtText::PaintAttribute\fP"
  195. .PP
  196. Paint Attributes\&. Font and color and background are optional attributes of a \fBQwtText\fP\&. The paint attributes hold the information, if they are set\&.
  197. .PP
  198. \fBEnumerator\fP
  199. .in +1c
  200. .TP
  201. \fB\fIPaintUsingTextFont \fP\fP
  202. The text has an individual font\&.
  203. .TP
  204. \fB\fIPaintUsingTextColor \fP\fP
  205. The text has an individual color\&.
  206. .TP
  207. \fB\fIPaintBackground \fP\fP
  208. The text has an individual background\&.
  209. .SS "enum \fBQwtText::TextFormat\fP"
  210. .PP
  211. Text format\&. The text format defines the \fBQwtTextEngine\fP, that is used to render the text\&.
  212. .PP
  213. \fBSee also\fP
  214. .RS 4
  215. \fBQwtTextEngine\fP, \fBsetTextEngine()\fP
  216. .RE
  217. .PP
  218. .PP
  219. \fBEnumerator\fP
  220. .in +1c
  221. .TP
  222. \fB\fIAutoText \fP\fP
  223. 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 \fBQwtText::PlainText\fP\&.
  224. .TP
  225. \fB\fIPlainText \fP\fP
  226. Draw the text as it is, using a \fBQwtPlainTextEngine\fP\&.
  227. .TP
  228. \fB\fIRichText \fP\fP
  229. Use the Scribe framework (Qt Rich Text) to render the text\&.
  230. .TP
  231. \fB\fIMathMLText \fP\fP
  232. 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 former Qt solutions package\&. To enable MathML support the following code needs to be added to the application:
  233. .PP
  234. .PP
  235. .nf
  236. QwtText::setTextEngine( QwtText::MathMLText, new QwtMathMLTextEngine() );
  237. .fi
  238. .PP
  239. .TP
  240. \fB\fITeXText \fP\fP
  241. Use a TeX (http://en.wikipedia.org/wiki/TeX) render engine to display the text ( not implemented yet )\&.
  242. .TP
  243. \fB\fIOtherFormat \fP\fP
  244. The number of text formats can be extended using setTextEngine\&. Formats >= \fBQwtText::OtherFormat\fP are not used by Qwt\&.
  245. .SH "Constructor & Destructor Documentation"
  246. .PP
  247. .SS "QwtText::QwtText (const QString & text = \fCQString()\fP, \fBQwtText::TextFormat\fP textFormat = \fC\fBAutoText\fP\fP)"
  248. Constructor
  249. .PP
  250. \fBParameters\fP
  251. .RS 4
  252. \fItext\fP Text content
  253. .br
  254. \fItextFormat\fP Text format
  255. .RE
  256. .PP
  257. .SH "Member Function Documentation"
  258. .PP
  259. .SS "QBrush QwtText::backgroundBrush () const"
  260. .PP
  261. \fBReturns\fP
  262. .RS 4
  263. Background brush
  264. .RE
  265. .PP
  266. \fBSee also\fP
  267. .RS 4
  268. \fBsetBackgroundBrush()\fP, \fBborderPen()\fP
  269. .RE
  270. .PP
  271. .SS "QPen QwtText::borderPen () const"
  272. .PP
  273. \fBReturns\fP
  274. .RS 4
  275. Background pen
  276. .RE
  277. .PP
  278. \fBSee also\fP
  279. .RS 4
  280. \fBsetBorderPen()\fP, \fBbackgroundBrush()\fP
  281. .RE
  282. .PP
  283. .SS "double QwtText::borderRadius () const"
  284. .PP
  285. \fBReturns\fP
  286. .RS 4
  287. Radius for the corners of the border frame
  288. .RE
  289. .PP
  290. \fBSee also\fP
  291. .RS 4
  292. \fBsetBorderRadius()\fP, \fBborderPen()\fP, \fBbackgroundBrush()\fP
  293. .RE
  294. .PP
  295. .SS "void QwtText::draw (QPainter * painter, const QRectF & rect) const"
  296. Draw a text into a rectangle
  297. .PP
  298. \fBParameters\fP
  299. .RS 4
  300. \fIpainter\fP Painter
  301. .br
  302. \fIrect\fP Rectangle
  303. .RE
  304. .PP
  305. .SS "double QwtText::heightForWidth (double width, const QFont & defaultFont = \fCQFont()\fP) const"
  306. Find the height for a given width
  307. .PP
  308. \fBParameters\fP
  309. .RS 4
  310. \fIdefaultFont\fP Font, used for the calculation if the text has no font
  311. .br
  312. \fIwidth\fP Width
  313. .RE
  314. .PP
  315. \fBReturns\fP
  316. .RS 4
  317. Calculated height
  318. .RE
  319. .PP
  320. .SS "bool QwtText::isEmpty () const\fC [inline]\fP"
  321. .PP
  322. \fBReturns\fP
  323. .RS 4
  324. \fBtext()\fP\&.\fBisEmpty()\fP
  325. .RE
  326. .PP
  327. .SS "bool QwtText::isNull () const\fC [inline]\fP"
  328. .PP
  329. \fBReturns\fP
  330. .RS 4
  331. \fBtext()\fP\&.\fBisNull()\fP
  332. .RE
  333. .PP
  334. .SS "int QwtText::renderFlags () const"
  335. .PP
  336. \fBReturns\fP
  337. .RS 4
  338. Render flags
  339. .RE
  340. .PP
  341. \fBSee also\fP
  342. .RS 4
  343. \fBsetRenderFlags()\fP
  344. .RE
  345. .PP
  346. .SS "void QwtText::setBackgroundBrush (const QBrush & brush)"
  347. Set the background brush
  348. .PP
  349. \fBParameters\fP
  350. .RS 4
  351. \fIbrush\fP Background brush
  352. .RE
  353. .PP
  354. \fBSee also\fP
  355. .RS 4
  356. \fBbackgroundBrush()\fP, \fBsetBorderPen()\fP
  357. .RE
  358. .PP
  359. .SS "void QwtText::setBorderPen (const QPen & pen)"
  360. Set the background pen
  361. .PP
  362. \fBParameters\fP
  363. .RS 4
  364. \fIpen\fP Background pen
  365. .RE
  366. .PP
  367. \fBSee also\fP
  368. .RS 4
  369. \fBborderPen()\fP, \fBsetBackgroundBrush()\fP
  370. .RE
  371. .PP
  372. .SS "void QwtText::setBorderRadius (double radius)"
  373. Set the radius for the corners of the border frame
  374. .PP
  375. \fBParameters\fP
  376. .RS 4
  377. \fIradius\fP Radius of a rounded corner
  378. .RE
  379. .PP
  380. \fBSee also\fP
  381. .RS 4
  382. \fBborderRadius()\fP, \fBsetBorderPen()\fP, \fBsetBackgroundBrush()\fP
  383. .RE
  384. .PP
  385. .SS "void QwtText::setColor (const QColor & color)"
  386. Set the pen color used for drawing the text\&.
  387. .PP
  388. \fBParameters\fP
  389. .RS 4
  390. \fIcolor\fP Color
  391. .RE
  392. .PP
  393. \fBNote\fP
  394. .RS 4
  395. Setting the color might have no effect, when the text contains control sequences for setting colors\&.
  396. .RE
  397. .PP
  398. .SS "void QwtText::setFont (const QFont & font)"
  399. Set the font\&.
  400. .PP
  401. \fBParameters\fP
  402. .RS 4
  403. \fIfont\fP Font
  404. .RE
  405. .PP
  406. \fBNote\fP
  407. .RS 4
  408. Setting the font might have no effect, when the text contains control sequences for setting fonts\&.
  409. .RE
  410. .PP
  411. .SS "void QwtText::setLayoutAttribute (\fBLayoutAttribute\fP attribute, bool on = \fCtrue\fP)"
  412. Change a layout attribute
  413. .PP
  414. \fBParameters\fP
  415. .RS 4
  416. \fIattribute\fP Layout attribute
  417. .br
  418. \fIon\fP On/Off
  419. .RE
  420. .PP
  421. \fBSee also\fP
  422. .RS 4
  423. \fBtestLayoutAttribute()\fP
  424. .RE
  425. .PP
  426. .SS "void QwtText::setPaintAttribute (\fBPaintAttribute\fP attribute, bool on = \fCtrue\fP)"
  427. Change a paint attribute
  428. .PP
  429. \fBParameters\fP
  430. .RS 4
  431. \fIattribute\fP Paint attribute
  432. .br
  433. \fIon\fP On/Off
  434. .RE
  435. .PP
  436. \fBNote\fP
  437. .RS 4
  438. Used by \fBsetFont()\fP, \fBsetColor()\fP, \fBsetBorderPen()\fP and \fBsetBackgroundBrush()\fP
  439. .RE
  440. .PP
  441. \fBSee also\fP
  442. .RS 4
  443. \fBtestPaintAttribute()\fP
  444. .RE
  445. .PP
  446. .SS "void QwtText::setRenderFlags (int renderFlags)"
  447. .PP
  448. Change the render flags\&. The default setting is Qt::AlignCenter
  449. .PP
  450. \fBParameters\fP
  451. .RS 4
  452. \fIrenderFlags\fP Bitwise OR of the flags used like in QPainter::drawText()
  453. .RE
  454. .PP
  455. \fBSee also\fP
  456. .RS 4
  457. \fBrenderFlags()\fP, \fBQwtTextEngine::draw()\fP
  458. .RE
  459. .PP
  460. \fBNote\fP
  461. .RS 4
  462. Some renderFlags might have no effect, depending on the text format\&.
  463. .RE
  464. .PP
  465. .SS "void QwtText::setText (const QString & text, \fBQwtText::TextFormat\fP textFormat = \fC\fBAutoText\fP\fP)"
  466. Assign a new text content
  467. .PP
  468. \fBParameters\fP
  469. .RS 4
  470. \fItext\fP Text content
  471. .br
  472. \fItextFormat\fP Text format
  473. .RE
  474. .PP
  475. \fBSee also\fP
  476. .RS 4
  477. \fBtext()\fP
  478. .RE
  479. .PP
  480. .SS "void QwtText::setTextEngine (\fBQwtText::TextFormat\fP format, \fBQwtTextEngine\fP * engine)\fC [static]\fP"
  481. Assign/Replace a text engine for a text format
  482. .PP
  483. With setTextEngine it is possible to extend Qwt with other types of text formats\&.
  484. .PP
  485. For \fBQwtText::PlainText\fP it is not allowed to assign a engine == NULL\&.
  486. .PP
  487. \fBParameters\fP
  488. .RS 4
  489. \fIformat\fP Text format
  490. .br
  491. \fIengine\fP Text engine
  492. .RE
  493. .PP
  494. \fBSee also\fP
  495. .RS 4
  496. \fBQwtMathMLTextEngine\fP
  497. .RE
  498. .PP
  499. \fBWarning\fP
  500. .RS 4
  501. Using \fBQwtText::AutoText\fP does nothing\&.
  502. .RE
  503. .PP
  504. .SS "bool QwtText::testLayoutAttribute (\fBLayoutAttribute\fP attribute) const"
  505. Test a layout attribute
  506. .PP
  507. \fBParameters\fP
  508. .RS 4
  509. \fIattribute\fP Layout attribute
  510. .RE
  511. .PP
  512. \fBReturns\fP
  513. .RS 4
  514. true, if attribute is enabled
  515. .RE
  516. .PP
  517. \fBSee also\fP
  518. .RS 4
  519. \fBsetLayoutAttribute()\fP
  520. .RE
  521. .PP
  522. .SS "bool QwtText::testPaintAttribute (\fBPaintAttribute\fP attribute) const"
  523. Test a paint attribute
  524. .PP
  525. \fBParameters\fP
  526. .RS 4
  527. \fIattribute\fP Paint attribute
  528. .RE
  529. .PP
  530. \fBReturns\fP
  531. .RS 4
  532. true, if attribute is enabled
  533. .RE
  534. .PP
  535. \fBSee also\fP
  536. .RS 4
  537. \fBsetPaintAttribute()\fP
  538. .RE
  539. .PP
  540. .SS "QString QwtText::text () const"
  541. .PP
  542. \fBReturns\fP
  543. .RS 4
  544. Text as QString\&.
  545. .RE
  546. .PP
  547. \fBSee also\fP
  548. .RS 4
  549. \fBsetText()\fP
  550. .RE
  551. .PP
  552. .SS "const \fBQwtTextEngine\fP * QwtText::textEngine (const QString & text, \fBQwtText::TextFormat\fP format = \fC\fBAutoText\fP\fP)\fC [static]\fP"
  553. Find the text engine for a text format
  554. .PP
  555. In case of \fBQwtText::AutoText\fP the first text engine (beside \fBQwtPlainTextEngine\fP) is returned, where \fBQwtTextEngine::mightRender\fP returns true\&. If there is none \fBQwtPlainTextEngine\fP is returned\&.
  556. .PP
  557. If no text engine is registered for the format \fBQwtPlainTextEngine\fP is returnd\&.
  558. .PP
  559. \fBParameters\fP
  560. .RS 4
  561. \fItext\fP Text, needed in case of AutoText
  562. .br
  563. \fIformat\fP Text format
  564. .RE
  565. .PP
  566. \fBReturns\fP
  567. .RS 4
  568. Corresponding text engine
  569. .RE
  570. .PP
  571. .SS "const \fBQwtTextEngine\fP * QwtText::textEngine (\fBQwtText::TextFormat\fP format)\fC [static]\fP"
  572. .PP
  573. Find the text engine for a text format\&. textEngine can be used to find out if a text format is supported\&.
  574. .PP
  575. \fBParameters\fP
  576. .RS 4
  577. \fIformat\fP Text format
  578. .RE
  579. .PP
  580. \fBReturns\fP
  581. .RS 4
  582. The text engine, or NULL if no engine is available\&.
  583. .RE
  584. .PP
  585. .SS "QSizeF QwtText::textSize (const QFont & defaultFont = \fCQFont()\fP) const"
  586. Returns the size, that is needed to render text
  587. .PP
  588. \fBParameters\fP
  589. .RS 4
  590. \fIdefaultFont\fP Font of the text
  591. .RE
  592. .PP
  593. \fBReturns\fP
  594. .RS 4
  595. Calculated size
  596. .RE
  597. .PP
  598. .SS "QColor QwtText::usedColor (const QColor & defaultColor) const"
  599. Return the color of the text, if it has one\&. Otherwise return defaultColor\&.
  600. .PP
  601. \fBParameters\fP
  602. .RS 4
  603. \fIdefaultColor\fP Default color
  604. .RE
  605. .PP
  606. \fBReturns\fP
  607. .RS 4
  608. Color used for drawing the text
  609. .RE
  610. .PP
  611. \fBSee also\fP
  612. .RS 4
  613. \fBsetColor()\fP, \fBcolor()\fP, \fBPaintAttributes\fP
  614. .RE
  615. .PP
  616. .SS "QFont QwtText::usedFont (const QFont & defaultFont) const"
  617. Return the font of the text, if it has one\&. Otherwise return defaultFont\&.
  618. .PP
  619. \fBParameters\fP
  620. .RS 4
  621. \fIdefaultFont\fP Default font
  622. .RE
  623. .PP
  624. \fBReturns\fP
  625. .RS 4
  626. Font used for drawing the text
  627. .RE
  628. .PP
  629. \fBSee also\fP
  630. .RS 4
  631. \fBsetFont()\fP, \fBfont()\fP, \fBPaintAttributes\fP
  632. .RE
  633. .PP
  634. .SH "Author"
  635. .PP
  636. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.