QwtPlainTextEngine.3 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. .TH "QwtPlainTextEngine" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtPlainTextEngine \- A text engine for plain texts\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_text_engine\&.h>\fP
  11. .PP
  12. Inherits \fBQwtTextEngine\fP\&.
  13. .SS "Public Member Functions"
  14. .in +1c
  15. .ti -1c
  16. .RI "\fBQwtPlainTextEngine\fP ()"
  17. .br
  18. .RI "Constructor\&. "
  19. .ti -1c
  20. .RI "virtual \fB~QwtPlainTextEngine\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. .RI "Draw the text in a clipping rectangle\&. "
  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 &, double &left, double &right, double &top, double &bottom) const"
  38. .br
  39. .in -1c
  40. .SS "Additional Inherited Members"
  41. .SH "Detailed Description"
  42. .PP
  43. A text engine for plain texts\&.
  44. \fBQwtPlainTextEngine\fP renders texts using the basic Qt classes QPainter and QFontMetrics\&.
  45. .SH "Member Function Documentation"
  46. .PP
  47. .SS "void QwtPlainTextEngine::draw (QPainter * painter, const QRectF & rect, int flags, const QString & text) const\fC [virtual]\fP"
  48. .PP
  49. Draw the text in a clipping rectangle\&. A wrapper for QPainter::drawText\&.
  50. .PP
  51. \fBParameters\fP
  52. .RS 4
  53. \fIpainter\fP Painter
  54. .br
  55. \fIrect\fP Clipping rectangle
  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. .RE
  61. .PP
  62. .PP
  63. Implements \fBQwtTextEngine\fP\&.
  64. .SS "double QwtPlainTextEngine::heightForWidth (const QFont & font, int flags, const QString & text, double width) const\fC [virtual]\fP"
  65. Find the height for a given width
  66. .PP
  67. \fBParameters\fP
  68. .RS 4
  69. \fIfont\fP Font of the text
  70. .br
  71. \fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
  72. .br
  73. \fItext\fP Text to be rendered
  74. .br
  75. \fIwidth\fP Width
  76. .RE
  77. .PP
  78. \fBReturns\fP
  79. .RS 4
  80. Calculated height
  81. .RE
  82. .PP
  83. .PP
  84. Implements \fBQwtTextEngine\fP\&.
  85. .SS "bool QwtPlainTextEngine::mightRender (const QString &) const\fC [virtual]\fP"
  86. Test if a string can be rendered by this text engine\&.
  87. .PP
  88. \fBReturns\fP
  89. .RS 4
  90. Always true\&. All texts can be rendered by \fBQwtPlainTextEngine\fP
  91. .RE
  92. .PP
  93. .PP
  94. Implements \fBQwtTextEngine\fP\&.
  95. .SS "void QwtPlainTextEngine::textMargins (const QFont & font, const QString &, double & left, double & right, double & top, double & bottom) const\fC [virtual]\fP"
  96. Return margins around the texts
  97. .PP
  98. \fBParameters\fP
  99. .RS 4
  100. \fIfont\fP Font of the text
  101. .br
  102. \fIleft\fP Return 0
  103. .br
  104. \fIright\fP Return 0
  105. .br
  106. \fItop\fP Return value for the top margin
  107. .br
  108. \fIbottom\fP Return value for the bottom margin
  109. .RE
  110. .PP
  111. .PP
  112. Implements \fBQwtTextEngine\fP\&.
  113. .SS "QSizeF QwtPlainTextEngine::textSize (const QFont & font, int flags, const QString & text) const\fC [virtual]\fP"
  114. Returns the size, that is needed to render text
  115. .PP
  116. \fBParameters\fP
  117. .RS 4
  118. \fIfont\fP Font of the text
  119. .br
  120. \fIflags\fP Bitwise OR of the flags used like in QPainter::drawText
  121. .br
  122. \fItext\fP Text to be rendered
  123. .RE
  124. .PP
  125. \fBReturns\fP
  126. .RS 4
  127. Calculated size
  128. .RE
  129. .PP
  130. .PP
  131. Implements \fBQwtTextEngine\fP\&.
  132. .SH "Author"
  133. .PP
  134. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.