1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/embedded/qmouse_qws.cpp:40 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QWSMouseHandler Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QWSMouseHandler Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QWSMouseHandler class is a mouse driver for Qt/Embedded.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qmouse_qws-h.html">qmouse_qws.h</a>></tt>
|
---|
37 | <p><a href="qwsmousehandler-members.html">List of all member functions.</a>
|
---|
38 | <h2>Public Members</h2>
|
---|
39 | <ul>
|
---|
40 | <li class=fn><a href="#QWSMouseHandler"><b>QWSMouseHandler</b></a> ( const QString & driver = QString::null, const QString & device = QString::null )</li>
|
---|
41 | <li class=fn>virtual <a href="#~QWSMouseHandler"><b>~QWSMouseHandler</b></a> ()</li>
|
---|
42 | <li class=fn>virtual void <a href="#clearCalibration"><b>clearCalibration</b></a> ()</li>
|
---|
43 | <li class=fn>virtual void <a href="#calibrate"><b>calibrate</b></a> ( QWSPointerCalibrationData * )</li>
|
---|
44 | <li class=fn>void <a href="#limitToScreen"><b>limitToScreen</b></a> ( QPoint & pt )</li>
|
---|
45 | <li class=fn>void <a href="#mouseChanged"><b>mouseChanged</b></a> ( const QPoint & pos, int bstate )</li>
|
---|
46 | <li class=fn>const QPoint & <a href="#pos"><b>pos</b></a> () const</li>
|
---|
47 | </ul>
|
---|
48 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
49 |
|
---|
50 |
|
---|
51 | The QWSMouseHandler class is a mouse driver for Qt/Embedded.
|
---|
52 | <p>
|
---|
53 | <p> The mouse driver handles events from system devices and generates
|
---|
54 | mouse events.
|
---|
55 | <p> A QWSMouseHandler will usually open some system device in its
|
---|
56 | constructor, create a <a href="qsocketnotifier.html">QSocketNotifier</a> on that opened device and
|
---|
57 | when it receives data, it will call <a href="#mouseChanged">mouseChanged</a>() to send the
|
---|
58 | event to Qt/Embedded for relaying to clients.
|
---|
59 | <p>See also <a href="qws.html">Qt/Embedded</a>.
|
---|
60 |
|
---|
61 | <hr><h2>Member Function Documentation</h2>
|
---|
62 | <h3 class=fn><a name="QWSMouseHandler"></a>QWSMouseHandler::QWSMouseHandler ( const <a href="qstring.html">QString</a> & driver = QString::null, const <a href="qstring.html">QString</a> & device = QString::null )
|
---|
63 | </h3>
|
---|
64 | Constructs a mouse handler. This becomes the primary mouse
|
---|
65 | handler.
|
---|
66 | <p> Note that once created, mouse handlers are controlled by the
|
---|
67 | system and should not be deleted.
|
---|
68 | <p> The <em>driver</em> and <em>device</em> arguments are not used by this base
|
---|
69 | class.
|
---|
70 |
|
---|
71 | <h3 class=fn><a name="~QWSMouseHandler"></a>QWSMouseHandler::~QWSMouseHandler ()<tt> [virtual]</tt>
|
---|
72 | </h3>
|
---|
73 | Destroys the mouse handler. You should not call this directly.
|
---|
74 |
|
---|
75 | <h3 class=fn>void <a name="calibrate"></a>QWSMouseHandler::calibrate ( QWSPointerCalibrationData * )<tt> [virtual]</tt>
|
---|
76 | </h3>
|
---|
77 |
|
---|
78 | <p> This method is reimplemented in the calibrated mouse handler to
|
---|
79 | set calibration information (from, for instance, the Qtopia
|
---|
80 | calibration screen). This version does nothing.
|
---|
81 |
|
---|
82 | <h3 class=fn>void <a name="clearCalibration"></a>QWSMouseHandler::clearCalibration ()<tt> [virtual]</tt>
|
---|
83 | </h3>
|
---|
84 |
|
---|
85 | <p> This method is reimplemented in the calibrated mouse handler to
|
---|
86 | clear calibration information. This version does nothing.
|
---|
87 |
|
---|
88 | <h3 class=fn>void <a name="limitToScreen"></a>QWSMouseHandler::limitToScreen ( <a href="qpoint.html">QPoint</a> & pt )
|
---|
89 | </h3>
|
---|
90 | Ensures that the given point, <em>pt</em> is within the screen's
|
---|
91 | boundaries, changing <em>pt</em> if necessary.
|
---|
92 |
|
---|
93 | <h3 class=fn>void <a name="mouseChanged"></a>QWSMouseHandler::mouseChanged ( const <a href="qpoint.html">QPoint</a> & pos, int bstate )
|
---|
94 | </h3>
|
---|
95 | When a mouse event occurs this function is called with the mouse's
|
---|
96 | position in <em>pos</em>, and the state of its buttons in <em>bstate</em>.
|
---|
97 |
|
---|
98 | <h3 class=fn>const <a href="qpoint.html">QPoint</a> & <a name="pos"></a>QWSMouseHandler::pos () const
|
---|
99 | </h3>
|
---|
100 |
|
---|
101 | <p> Returns the mouse position.
|
---|
102 |
|
---|
103 | <!-- eof -->
|
---|
104 | <hr><p>
|
---|
105 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
106 | Copyright © 1995-2007
|
---|
107 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
108 | <table width=100% cellspacing=0 border=0><tr>
|
---|
109 | <td>Copyright © 2007
|
---|
110 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
111 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
112 | </table></div></address></body>
|
---|
113 | </html>
|
---|