QwtMathMLTextEngine.3 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. .TH "QwtMathMLTextEngine" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtMathMLTextEngine \- Text Engine for the MathML renderer of the Qt solutions package\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_mathml_text_engine\&.h>\fP
  11. .PP
  12. Inherits \fBQwtTextEngine\fP\&.
  13. .SS "Public Member Functions"
  14. .in +1c
  15. .ti -1c
  16. .RI "\fBQwtMathMLTextEngine\fP ()"
  17. .br
  18. .RI "Constructor\&. "
  19. .ti -1c
  20. .RI "virtual \fB~QwtMathMLTextEngine\fP ()"
  21. .br
  22. .RI "Destructor\&. "
  23. .ti -1c
  24. .RI "virtual double \fBheightForWidth\fP (const QFont &font, int flags, const QString &text, double width) const"
  25. .br
  26. .ti -1c
  27. .RI "virtual QSizeF \fBtextSize\fP (const QFont &font, int flags, const QString &text) const"
  28. .br
  29. .ti -1c
  30. .RI "virtual void \fBdraw\fP (QPainter *painter, const QRectF &rect, int flags, const QString &text) const"
  31. .br
  32. .ti -1c
  33. .RI "virtual bool \fBmightRender\fP (const QString &) const"
  34. .br
  35. .ti -1c
  36. .RI "virtual void \fBtextMargins\fP (const QFont &, const QString &, double &left, double &right, double &top, double &bottom) const"
  37. .br
  38. .in -1c
  39. .SS "Additional Inherited Members"
  40. .SH "Detailed Description"
  41. .PP
  42. Text Engine for the MathML renderer of the Qt solutions package\&.
  43. To enable MathML support the following code needs to be added to the application:
  44. .PP
  45. .PP
  46. .nf
  47. #include <qwt_mathml_text_engine\&.h>
  48. QwtText::setTextEngine( QwtText::MathMLText, new QwtMathMLTextEngine() );
  49. .fi
  50. .PP
  51. .PP
  52. \fBSee also\fP
  53. .RS 4
  54. \fBQwtTextEngine\fP, \fBQwtText::setTextEngine\fP
  55. .RE
  56. .PP
  57. \fBWarning\fP
  58. .RS 4
  59. Unfortunately the MathML renderer doesn't support rotating of texts\&.
  60. .RE
  61. .PP
  62. .SH "Member Function Documentation"
  63. .PP
  64. .SS "void QwtMathMLTextEngine::draw (QPainter * painter, const QRectF & rect, int flags, const QString & text) const\fC [virtual]\fP"
  65. Draw the text in a clipping rectangle
  66. .PP
  67. \fBParameters\fP
  68. .RS 4
  69. \fIpainter\fP Painter
  70. .br
  71. \fIrect\fP Clipping rectangle
  72. .br
  73. \fIflags\fP Bitwise OR of the flags like in for QPainter::drawText
  74. .br
  75. \fItext\fP Text to be rendered
  76. .RE
  77. .PP
  78. .PP
  79. Implements \fBQwtTextEngine\fP\&.
  80. .SS "double QwtMathMLTextEngine::heightForWidth (const QFont & font, int flags, const QString & text, double width) const\fC [virtual]\fP"
  81. Find the height for a given width
  82. .PP
  83. \fBParameters\fP
  84. .RS 4
  85. \fIfont\fP Font of the text
  86. .br
  87. \fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
  88. .br
  89. \fItext\fP Text to be rendered
  90. .br
  91. \fIwidth\fP Width
  92. .RE
  93. .PP
  94. \fBReturns\fP
  95. .RS 4
  96. Calculated height
  97. .RE
  98. .PP
  99. .PP
  100. Implements \fBQwtTextEngine\fP\&.
  101. .SS "bool QwtMathMLTextEngine::mightRender (const QString & text) const\fC [virtual]\fP"
  102. Test if a string can be rendered by \fBQwtMathMLTextEngine\fP
  103. .PP
  104. \fBParameters\fP
  105. .RS 4
  106. \fItext\fP Text to be tested
  107. .RE
  108. .PP
  109. \fBReturns\fP
  110. .RS 4
  111. true, if text begins with '<math>'\&.
  112. .RE
  113. .PP
  114. .PP
  115. Implements \fBQwtTextEngine\fP\&.
  116. .SS "void QwtMathMLTextEngine::textMargins (const QFont &, const QString &, double & left, double & right, double & top, double & bottom) const\fC [virtual]\fP"
  117. Return margins around the texts
  118. .PP
  119. \fBParameters\fP
  120. .RS 4
  121. \fIleft\fP Return 0
  122. .br
  123. \fIright\fP Return 0
  124. .br
  125. \fItop\fP Return 0
  126. .br
  127. \fIbottom\fP Return 0
  128. .RE
  129. .PP
  130. .PP
  131. Implements \fBQwtTextEngine\fP\&.
  132. .SS "QSizeF QwtMathMLTextEngine::textSize (const QFont & font, int flags, const QString & text) const\fC [virtual]\fP"
  133. Returns the size, that is needed to render text
  134. .PP
  135. \fBParameters\fP
  136. .RS 4
  137. \fIfont\fP Font of the text
  138. .br
  139. \fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
  140. .br
  141. \fItext\fP Text to be rendered
  142. .RE
  143. .PP
  144. \fBReturns\fP
  145. .RS 4
  146. Caluclated size
  147. .RE
  148. .PP
  149. .PP
  150. Implements \fBQwtTextEngine\fP\&.
  151. .SH "Author"
  152. .PP
  153. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.