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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QScreenCursor Class</title><style type="text/css"><!--
h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }body { background: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center>QScreenCursor Class Reference</h1><br clear="all">
<p>
The QScreenCursor class manages the onscreen mouse cursor in Qt/Embedded. It provides an implementation of a software mouse cursor and can be subclassed by hardware drivers which support a hardware mouse cursor. There may only be one QScreenCursor at a time; it is constructed by <a href="qscreen.html">QScreen</a> or one of its descendants.
<a href="#details">More...</a>
<p>
<code>#include <<a href="qgfx_qws-h.html">qgfx_qws.h</a>></code>
<p><a href="qscreencursor-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#72008f"><b>QScreenCursor</b></a>()</div>
<li><div class="fn">virtual<a href="#a868e0"><b>~QScreenCursor</b></a>()</div>
<li><div class="fn">virtualvoid<b>init</b>(SWCursorData*da, boolinit=FALSE)</div>
<li><div class="fn">virtualvoid<b>set</b>(constQImage&image, inthotx, inthoty)</div>
<li><div class="fn">virtualvoid<a href="#2171d0"><b>move</b></a>(intx, inty)</div>
<li><div class="fn">virtualvoid<b>show</b>()</div>
<li><div class="fn">virtualvoid<b>hide</b>()</div>
<li><div class="fn">virtualbool<a href="#6e2faf"><b>restoreUnder</b></a>(constQRect&r, QGfxRasterBase*g=0)</div>
<li><div class="fn">virtualvoid<b>saveUnder</b>()</div>
<li><div class="fn">virtualvoid<b>drawCursor</b>()</div>
<li><div class="fn">void<b>draw</b>()</div>
<li><div class="fn">virtualbool<b>supportsAlphaCursor</b>()</div>
</ul>
<h2>Static Public Members</h2>
<ul>
<li><div class="fn">bool<b>enabled</b>()</div>
</ul>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QScreenCursor class manages the onscreen mouse cursor in Qt/Embedded. It provides an implementation of a software mouse cursor and can be subclassed by hardware drivers which support a hardware mouse cursor. There may only be one QScreenCursor at a time; it is constructed by <a href="qscreen.html">QScreen</a> or one of its descendants.
<p>
This class is non-portable. It is available <em>only</em> in Qt/Embedded.
It is also internal - this documentation is intended for those subclassing
it in hardware drivers, not for application developers.
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="72008f"></a>QScreenCursor::QScreenCursor()</h3>
<p>Constructs a screen cursor.
<h3 class="fn"><a name="a868e0"></a>QScreenCursor::~QScreenCursor() <code>[virtual]</code></h3>
<p>Destructs a screen cursor, deleting its gfxes, cursor image and
under-cursor storage.
<h3 class="fn">void<a name="2171d0"></a>QScreenCursor::move(intx, inty) <code>[virtual]</code></h3>
<p>Move the mouse cursor to point x,y on the screen. This should be done
in such a way that the hotspot of the cursor is at x,y - e.g. if the
hotspot is at 5,5 within the image then the top left of the image should
be at x-5,y-5.
<h3 class="fn">bool<a name="6e2faf"></a>QScreenCursor::restoreUnder(const<a href="qrect.html">QRect</a>&r, <a href="qgfxrasterbase.html">QGfxRasterBase</a>*g=0) <code>[virtual]</code></h3>
<p>This is relevant to only the software mouse cursor and should be
reimplemented as a null method in hardware cursor drivers. It redraws
what was under the mouse cursor when the cursor is moved.
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.1"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><hr><p>
This file is part of the <a href="index.html">Qt toolkit</a>,
copyright © 1995-2000
<a href="http://www.trolltech.com">Trolltech</a>, all rights reserved.<p><address><hr><div align="center">
<table width="100%" cellspacing="0" border="0"><tr>
<td>Copyright 2000 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.1</div>
</table></div></address></body></html>
|