QwtNullPaintDevice.3 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. .TH "QwtNullPaintDevice" 3 "Mon Dec 28 2020" "Version 6.1.6" "Qwt User's Guide" \" -*- nroff -*-
  2. .ad l
  3. .nh
  4. .SH NAME
  5. QwtNullPaintDevice \- A null paint device doing nothing\&.
  6. .SH SYNOPSIS
  7. .br
  8. .PP
  9. .PP
  10. \fC#include <qwt_null_paintdevice\&.h>\fP
  11. .PP
  12. Inherits QPaintDevice\&.
  13. .PP
  14. Inherited by \fBQwtGraphic\fP, and QwtStyleSheetRecorder\&.
  15. .SS "Public Types"
  16. .in +1c
  17. .ti -1c
  18. .RI "enum \fBMode\fP { \fBNormalMode\fP, \fBPolygonPathMode\fP, \fBPathMode\fP }"
  19. .br
  20. .RI "Render mode\&. "
  21. .in -1c
  22. .SS "Public Member Functions"
  23. .in +1c
  24. .ti -1c
  25. .RI "\fBQwtNullPaintDevice\fP ()"
  26. .br
  27. .RI "Constructor\&. "
  28. .ti -1c
  29. .RI "virtual \fB~QwtNullPaintDevice\fP ()"
  30. .br
  31. .RI "Destructor\&. "
  32. .ti -1c
  33. .RI "void \fBsetMode\fP (\fBMode\fP)"
  34. .br
  35. .ti -1c
  36. .RI "\fBMode\fP \fBmode\fP () const"
  37. .br
  38. .ti -1c
  39. .RI "virtual QPaintEngine * \fBpaintEngine\fP () const"
  40. .br
  41. .RI "See QPaintDevice::paintEngine() "
  42. .ti -1c
  43. .RI "virtual int \fBmetric\fP (PaintDeviceMetric) const"
  44. .br
  45. .ti -1c
  46. .RI "virtual void \fBdrawRects\fP (const QRect *, int)"
  47. .br
  48. .RI "See QPaintEngine::drawRects() "
  49. .ti -1c
  50. .RI "virtual void \fBdrawRects\fP (const QRectF *, int)"
  51. .br
  52. .RI "See QPaintEngine::drawRects() "
  53. .ti -1c
  54. .RI "virtual void \fBdrawLines\fP (const QLine *, int)"
  55. .br
  56. .RI "See QPaintEngine::drawLines() "
  57. .ti -1c
  58. .RI "virtual void \fBdrawLines\fP (const QLineF *, int)"
  59. .br
  60. .RI "See QPaintEngine::drawLines() "
  61. .ti -1c
  62. .RI "virtual void \fBdrawEllipse\fP (const QRectF &)"
  63. .br
  64. .RI "See QPaintEngine::drawEllipse() "
  65. .ti -1c
  66. .RI "virtual void \fBdrawEllipse\fP (const QRect &)"
  67. .br
  68. .RI "See QPaintEngine::drawEllipse() "
  69. .ti -1c
  70. .RI "virtual void \fBdrawPath\fP (const QPainterPath &)"
  71. .br
  72. .RI "See QPaintEngine::drawPath() "
  73. .ti -1c
  74. .RI "virtual void \fBdrawPoints\fP (const QPointF *, int)"
  75. .br
  76. .RI "See QPaintEngine::drawPoints() "
  77. .ti -1c
  78. .RI "virtual void \fBdrawPoints\fP (const QPoint *, int)"
  79. .br
  80. .RI "See QPaintEngine::drawPoints() "
  81. .ti -1c
  82. .RI "virtual void \fBdrawPolygon\fP (const QPointF *, int, QPaintEngine::PolygonDrawMode)"
  83. .br
  84. .RI "See QPaintEngine::drawPolygon() "
  85. .ti -1c
  86. .RI "virtual void \fBdrawPolygon\fP (const QPoint *, int, QPaintEngine::PolygonDrawMode)"
  87. .br
  88. .RI "See QPaintEngine::drawPolygon() "
  89. .ti -1c
  90. .RI "virtual void \fBdrawPixmap\fP (const QRectF &, const QPixmap &, const QRectF &)"
  91. .br
  92. .RI "See QPaintEngine::drawPixmap() "
  93. .ti -1c
  94. .RI "virtual void \fBdrawTextItem\fP (const QPointF &, const QTextItem &)"
  95. .br
  96. .RI "See QPaintEngine::drawTextItem() "
  97. .ti -1c
  98. .RI "virtual void \fBdrawTiledPixmap\fP (const QRectF &, const QPixmap &, const QPointF &)"
  99. .br
  100. .RI "See QPaintEngine::drawTiledPixmap() "
  101. .ti -1c
  102. .RI "virtual void \fBdrawImage\fP (const QRectF &, const QImage &, const QRectF &, Qt::ImageConversionFlags)"
  103. .br
  104. .RI "See QPaintEngine::drawImage() "
  105. .ti -1c
  106. .RI "virtual void \fBupdateState\fP (const QPaintEngineState &)"
  107. .br
  108. .RI "See QPaintEngine::updateState() "
  109. .in -1c
  110. .SS "Protected Member Functions"
  111. .in +1c
  112. .ti -1c
  113. .RI "virtual QSize \fBsizeMetrics\fP () const =0"
  114. .br
  115. .in -1c
  116. .SH "Detailed Description"
  117. .PP
  118. A null paint device doing nothing\&.
  119. Sometimes important layout/rendering geometries are not available or changeable from the public Qt class interface\&. ( f\&.e hidden in the style implementation )\&.
  120. .PP
  121. \fBQwtNullPaintDevice\fP can be used to manipulate or filter out this information by analyzing the stream of paint primitives\&.
  122. .PP
  123. F\&.e\&. \fBQwtNullPaintDevice\fP is used by \fBQwtPlotCanvas\fP to identify styled backgrounds with rounded corners\&.
  124. .SH "Member Enumeration Documentation"
  125. .PP
  126. .SS "enum \fBQwtNullPaintDevice::Mode\fP"
  127. .PP
  128. Render mode\&.
  129. .PP
  130. \fBSee also\fP
  131. .RS 4
  132. \fBsetMode()\fP, \fBmode()\fP
  133. .RE
  134. .PP
  135. .PP
  136. \fBEnumerator\fP
  137. .in +1c
  138. .TP
  139. \fB\fINormalMode \fP\fP
  140. All vector graphic primitives are painted by the corresponding draw methods
  141. .TP
  142. \fB\fIPolygonPathMode \fP\fP
  143. Vector graphic primitives ( beside polygons ) are mapped to a QPainterPath and are painted by drawPath\&. In PathMode mode only a few draw methods are called:
  144. .PP
  145. .IP "\(bu" 2
  146. \fBdrawPath()\fP
  147. .IP "\(bu" 2
  148. \fBdrawPixmap()\fP
  149. .IP "\(bu" 2
  150. \fBdrawImage()\fP
  151. .IP "\(bu" 2
  152. \fBdrawPolygon()\fP
  153. .PP
  154. .TP
  155. \fB\fIPathMode \fP\fP
  156. Vector graphic primitives are mapped to a QPainterPath and are painted by drawPath\&. In PathMode mode only a few draw methods are called:
  157. .PP
  158. .IP "\(bu" 2
  159. \fBdrawPath()\fP
  160. .IP "\(bu" 2
  161. \fBdrawPixmap()\fP
  162. .IP "\(bu" 2
  163. \fBdrawImage()\fP
  164. .PP
  165. .SH "Member Function Documentation"
  166. .PP
  167. .SS "int QwtNullPaintDevice::metric (PaintDeviceMetric deviceMetric) const\fC [virtual]\fP"
  168. See QPaintDevice::metric()
  169. .PP
  170. \fBParameters\fP
  171. .RS 4
  172. \fIdeviceMetric\fP Type of metric
  173. .RE
  174. .PP
  175. \fBReturns\fP
  176. .RS 4
  177. Metric information for the given paint device metric\&.
  178. .RE
  179. .PP
  180. \fBSee also\fP
  181. .RS 4
  182. \fBsizeMetrics()\fP
  183. .RE
  184. .PP
  185. .SS "\fBQwtNullPaintDevice::Mode\fP QwtNullPaintDevice::mode () const"
  186. .PP
  187. \fBReturns\fP
  188. .RS 4
  189. Render mode
  190. .RE
  191. .PP
  192. \fBSee also\fP
  193. .RS 4
  194. \fBsetMode()\fP
  195. .RE
  196. .PP
  197. .SS "void QwtNullPaintDevice::setMode (\fBMode\fP mode)"
  198. Set the render mode
  199. .PP
  200. \fBParameters\fP
  201. .RS 4
  202. \fImode\fP New mode
  203. .RE
  204. .PP
  205. \fBSee also\fP
  206. .RS 4
  207. \fBmode()\fP
  208. .RE
  209. .PP
  210. .SS "virtual QSize QwtNullPaintDevice::sizeMetrics () const\fC [protected]\fP, \fC [pure virtual]\fP"
  211. .PP
  212. \fBReturns\fP
  213. .RS 4
  214. Size needed to implement \fBmetric()\fP
  215. .RE
  216. .PP
  217. .PP
  218. Implemented in \fBQwtGraphic\fP\&.
  219. .SH "Author"
  220. .PP
  221. Generated automatically by Doxygen for Qwt User's Guide from the source code\&.