Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 3836

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qpaintengine_raster.cpp -->
<head>
  <title>Qt 4.6: QCustomRasterPaintDevice Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QCustomRasterPaintDevice"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QCustomRasterPaintDevice Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
</h1>
<p>The QCustomRasterPaintDevice class is provided to activate hardware accelerated paint engines in Qt for Embedded Linux. <a href="#details">More...</a></p>
<pre> #include &lt;QCustomRasterPaintDevice&gt;</pre><p><b>This class is under development and is subject to change.</b></p>
<p>Inherits <a href="qpaintdevice.html">QPaintDevice</a>.</p>
<p>This class was introduced in Qt 4.2.</p>
<ul>
<li><a href="qcustomrasterpaintdevice-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qcustomrasterpaintdevice.html#QCustomRasterPaintDevice">QCustomRasterPaintDevice</a></b> ( QWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><b><a href="qcustomrasterpaintdevice.html#bytesPerLine">bytesPerLine</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual QImage::Format </td><td class="memItemRight" valign="bottom"><b><a href="qcustomrasterpaintdevice.html#format">format</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void * </td><td class="memItemRight" valign="bottom"><b><a href="qcustomrasterpaintdevice.html#memory">memory</a></b> () const</td></tr>
</table>
<hr />
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><b><a href="qcustomrasterpaintdevice.html#metric">metric</a></b> ( PaintDeviceMetric <i>m</i> ) const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QCustomRasterPaintDevice class is provided to activate hardware accelerated paint engines in Qt for Embedded Linux.</p>
<p>Note that this class is only available in <a href="qt-embedded-linux.html">Qt for Embedded Linux</a>.</p>
<p>In <a href="qt-embedded-linux.html">Qt for Embedded Linux</a>, painting is a pure software implementation. But starting with Qt 4.2, it is possible to add an accelerated graphics driver to take advantage of available hardware resources.</p>
<p>Hardware acceleration is accomplished by creating a custom screen driver, accelerating the copying from memory to the screen, and implementing a custom paint engine accelerating the various painting operations. Then a custom paint device (derived from the QCustomRasterPaintDevice class) and a custom window surface (derived from QWSWindowSurface) must be implemented to make <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> aware of the accelerated driver.</p>
<p>See the <a href="qt-embedded-accel.html">Adding an Accelerated Graphics Driver to Qt for Embedded Linux</a> documentation for details.</p>
<p>See also <a href="qrasterpaintengine.html">QRasterPaintEngine</a> and <a href="qpaintdevice.html">QPaintDevice</a>.</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QCustomRasterPaintDevice/QCustomRasterPaintDevice"></a>
<h3 class="fn"><a name="QCustomRasterPaintDevice"></a>QCustomRasterPaintDevice::QCustomRasterPaintDevice ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )</h3>
<p>Constructs a custom raster based paint device for the given top-level <i>widget</i>.</p>
<a name="//apple_ref/cpp/instm/QCustomRasterPaintDevice/bytesPerLine"></a>
<h3 class="fn"><a name="bytesPerLine"></a>int QCustomRasterPaintDevice::bytesPerLine () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Returns the number of bytes per line in the framebuffer. Note that this number might be larger than the framebuffer width.</p>
<a name="//apple_ref/cpp/instm/QCustomRasterPaintDevice/format"></a>
<h3 class="fn"><a name="format"></a><a href="qimage.html#Format-enum">QImage::Format</a> QCustomRasterPaintDevice::format () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Returns the format of the device's memory buffet.</p>
<p>The default format is <a href="qimage.html#Format-enum">QImage::Format_ARGB32_Premultiplied</a>. The only other valid format is <a href="qimage.html#Format-enum">QImage::Format_RGB16</a>.</p>
<a name="//apple_ref/cpp/instm/QCustomRasterPaintDevice/memory"></a>
<h3 class="fn"><a name="memory"></a>void * QCustomRasterPaintDevice::memory () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Returns a pointer to the paint device's memory buffer, or 0 if no such buffer exists.</p>
<a name="//apple_ref/cpp/instm/QCustomRasterPaintDevice/metric"></a>
<h3 class="fn"><a name="metric"></a>int QCustomRasterPaintDevice::metric ( <a href="qpaintdevice.html#PaintDeviceMetric-enum">PaintDeviceMetric</a> <i>m</i> ) const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qpaintdevice.html#metric">QPaintDevice::metric</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>