1QWSMouseHandler(3qt) QWSMouseHandler(3qt)
2
3
4
6 QWSMouseHandler - Mouse driver for Qt/Embedded
7
9 #include <qmouse_qws.h>
10
11 Public Members
12 QWSMouseHandler ( const QString & driver = QString::null, const QString
13 & device = QString::null )
14 virtual ~QWSMouseHandler ()
15 virtual void clearCalibration ()
16 virtual void calibrate ( QWSPointerCalibrationData * )
17 void limitToScreen ( QPoint & pt )
18 void mouseChanged ( const QPoint & pos, int bstate )
19 const QPoint & pos () const
20
22 The QWSMouseHandler class is a mouse driver for Qt/Embedded.
23
24 The mouse driver handles events from system devices and generates mouse
25 events.
26
27 A QWSMouseHandler will usually open some system device in its
28 constructor, create a QSocketNotifier on that opened device and when it
29 receives data, it will call mouseChanged() to send the event to
30 Qt/Embedded for relaying to clients.
31
32 See also Qt/Embedded.
33
36 const QString & device = QString::null )
37 Constructs a mouse handler. This becomes the primary mouse handler.
38
39 Note that once created, mouse handlers are controlled by the system and
40 should not be deleted.
41
42 The driver and device arguments are not used by this base class.
43
45 Destroys the mouse handler. You should not call this directly.
46
48 This method is reimplemented in the calibrated mouse handler to set
49 calibration information (from, for instance, the Qtopia calibration
50 screen). This version does nothing.
51
53 This method is reimplemented in the calibrated mouse handler to clear
54 calibration information. This version does nothing.
55
57 Ensures that the given point, pt is within the screen's boundaries,
58 changing pt if necessary.
59
61 When a mouse event occurs this function is called with the mouse's
62 position in pos, and the state of its buttons in bstate.
63
65 Returns the mouse position.
66
67
69 http://doc.trolltech.com/qwsmousehandler.html
70 http://www.trolltech.com/faq/tech.html
71
73 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
74 license file included in the distribution for a complete license
75 statement.
76
78 Generated automatically from the source code.
79
81 If you find a bug in Qt, please report it as described in
82 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
83 help you. Thank you.
84
85 The definitive Qt documentation is provided in HTML format; it is
86 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
87 web browser. This man page is provided as a convenience for those users
88 who prefer man pages, although this format is not officially supported
89 by Trolltech.
90
91 If you find errors in this manual page, please report them to qt-
92 bugs@trolltech.com. Please include the name of the manual page
93 (qwsmousehandler.3qt) and the Qt version (3.3.8).
94
95
96
97Trolltech AS 2 February 2007 QWSMouseHandler(3qt)