1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Qwt User's Guide: QwtPaintBuffer Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.8 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>QwtPaintBuffer Class Reference</h1><a href="class_qwt_paint_buffer-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Paint buffer for Qwt widgets.
<p>
QwtPaintBuffer offers a simple way to en/disable double buffering. Double buffering is enabled as default and in general there will be no reason to change this.
<p>
Definition at line <a class="el" href="qwt__paint__buffer_8h-source.html#l00026">26</a> of file <a class="el" href="qwt__paint__buffer_8h-source.html">qwt_paint_buffer.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#a0">QwtPaintBuffer</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#a1">QwtPaintBuffer</a> (QPaintDevice *, const QRect &, QPainter *p=NULL)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#a2">~QwtPaintBuffer</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#a3">open</a> (QPaintDevice *, const QRect &, QPainter *p=NULL)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#a4">close</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>QPainter * </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#a5">painter</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const QPaintDevice * </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#a6">device</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const QPixmap & </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#a7">buffer</a> () const</td></tr>
<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#e0">setEnabled</a> (bool enable)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#e1">isEnabled</a> ()</td></tr>
<tr><td colspan=2><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_qwt_paint_buffer.html#b0">flush</a> ()</td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="QwtPaintBuffer::QwtPaintBuffer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> QwtPaintBuffer::QwtPaintBuffer </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Default constructor.
<p>
Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00017">17</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="QwtPaintBuffer::QwtPaintBuffer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> QwtPaintBuffer::QwtPaintBuffer </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">QPaintDevice * </td>
<td class="mdname" nowrap> <em>device</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const QRect & </td>
<td class="mdname" nowrap> <em>rect</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>QPainter * </td>
<td class="mdname" nowrap> <em>painter</em> = <code>NULL</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Create an open paint buffer <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>device</em> </td><td>Device to paint on </td></tr>
<tr><td></td><td valign=top><em>rect</em> </td><td>Rect to paint on </td></tr>
<tr><td></td><td valign=top><em>painter</em> </td><td>Painter to paint on device. In case of 0 QwtPaintBuffer uses an internal painter</td></tr>
</table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_paint_buffer.html#a3">QwtPaintBuffer::open()</a> </dd></dl>
Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00034">34</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>.
<p>
References <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00097">open()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="QwtPaintBuffer::~QwtPaintBuffer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> QwtPaintBuffer::~<a class="el" href="class_qwt_paint_buffer.html">QwtPaintBuffer</a> </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Closes the buffer <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_paint_buffer.html#a4">QwtPaintBuffer::close()</a> </dd></dl>
Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00047">47</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>.
<p>
References <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00178">close()</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a7" doxytag="QwtPaintBuffer::buffer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const QPixmap& QwtPaintBuffer::buffer </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Return Buffer used for double buffering.
<p>
Definition at line <a class="el" href="qwt__paint__buffer_8h-source.html#l00044">44</a> of file <a class="el" href="qwt__paint__buffer_8h-source.html">qwt_paint_buffer.h</a>.
<p>
Referenced by <a class="el" href="qwt__plot__canvas_8cpp-source.html#l00174">QwtPlotCanvas::drawCanvas()</a>. </td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="QwtPaintBuffer::close" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtPaintBuffer::close </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Flush the internal pixmap buffer to the device and close the buffer. Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00178">178</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>.
<p>
References <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00151">flush()</a>.
<p>
Referenced by <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00097">open()</a>, and <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00047">~QwtPaintBuffer()</a>. </td>
</tr>
</table>
<a class="anchor" name="a6" doxytag="QwtPaintBuffer::device" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> const QPaintDevice * QwtPaintBuffer::device </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>Device to paint on </dd></dl>
Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00066">66</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00151">flush()</a>. </td>
</tr>
</table>
<a class="anchor" name="b0" doxytag="QwtPaintBuffer::flush" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtPaintBuffer::flush </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Flush the internal pixmap buffer to the device. Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00151">151</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>.
<p>
References <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00066">device()</a>.
<p>
Referenced by <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00178">close()</a>. </td>
</tr>
</table>
<a class="anchor" name="e1" doxytag="QwtPaintBuffer::isEnabled" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool QwtPaintBuffer::isEnabled </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>TRUE if double buffering is enabled, FALSE otherwise. </dd></dl>
Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00084">84</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__canvas_8cpp-source.html#l00174">QwtPlotCanvas::drawCanvas()</a>, and <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00097">open()</a>. </td>
</tr>
</table>
<a class="anchor" name="a3" doxytag="QwtPaintBuffer::open" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtPaintBuffer::open </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">QPaintDevice * </td>
<td class="mdname" nowrap> <em>device</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const QRect & </td>
<td class="mdname" nowrap> <em>rect</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>QPainter * </td>
<td class="mdname" nowrap> <em>painter</em> = <code>NULL</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Open the buffer <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>device</em> </td><td>Device to paint on </td></tr>
<tr><td></td><td valign=top><em>rect</em> </td><td>Rect to paint on </td></tr>
<tr><td></td><td valign=top><em>painter</em> </td><td>Painter to paint on device. In case of 0 QwtPaintBuffer uses an internal painter </td></tr>
</table>
</dl>
Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00097">97</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>.
<p>
References <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00178">close()</a>, and <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00084">isEnabled()</a>.
<p>
Referenced by <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00034">QwtPaintBuffer()</a>. </td>
</tr>
</table>
<a class="anchor" name="a5" doxytag="QwtPaintBuffer::painter" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> QPainter * QwtPaintBuffer::painter </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>Returns:</b></dt><dd>Depending on <a class="el" href="class_qwt_paint_buffer.html#e1">isEnabled()</a> the painter connected to an internal pixmap buffer otherwise the painter connected to the device. </dd></dl>
Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00058">58</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>.
<p>
Referenced by <a class="el" href="qwt__plot__canvas_8cpp-source.html#l00174">QwtPlotCanvas::drawCanvas()</a>, <a class="el" href="qwt__wheel_8cpp-source.html#l00425">QwtWheel::paintEvent()</a>, <a class="el" href="qwt__thermo_8cpp-source.html#l00068">QwtThermo::paintEvent()</a>, <a class="el" href="qwt__slider_8cpp-source.html#l00391">QwtSlider::paintEvent()</a>, <a class="el" href="qwt__scale_8cpp-source.html#l00413">QwtScale::paintEvent()</a>, <a class="el" href="qwt__knob_8cpp-source.html#l00262">QwtKnob::paintEvent()</a>, and <a class="el" href="qwt__dial_8cpp-source.html#l00372">QwtDial::paintEvent()</a>. </td>
</tr>
</table>
<a class="anchor" name="e0" doxytag="QwtPaintBuffer::setEnabled" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void QwtPaintBuffer::setEnabled </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>enable</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Enable/Disable double buffering. Please note that this is a global switch for all QwtPaintBuffers, but won't change opened buffers. Definition at line <a class="el" href="qwt__paint__buffer_8cpp-source.html#l00076">76</a> of file <a class="el" href="qwt__paint__buffer_8cpp-source.html">qwt_paint_buffer.cpp</a>. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue Nov 16 21:12:31 2004 for Qwt User's Guide by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|