]> git.saurik.com Git - wxWidgets.git/blob - interface/wx/mousestate.h
fix parsing of IP literals in URIs, added test for it
[wxWidgets.git] / interface / wx / mousestate.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mousestate.h
3 // Purpose: documentation of wxMouseState
4 // Author: wxWidgets team
5 // Created: 2008-09-19
6 // RCS-ID: $Id$
7 // Licence: wxWindows license
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 /**
12 @class wxMouseState
13
14 Represents the mouse state.
15
16 This class is used as a base class by wxMouseEvent and so its methods may
17 be used to obtain information about the mouse state for the mouse events.
18 It also inherits from wxKeyboardState and so carries information about the
19 keyboard state and not only the mouse one.
20
21 This class is implemented entirely inline in @<wx/mousestate.h@> and thus
22 has no linking requirements.
23
24 @category{misc}
25
26 @see wxGetMouseState(), wxMouseEvent
27 */
28 class wxMouseState : public wxKeyboardState
29 {
30 public:
31 /**
32 Default constructor.
33 */
34 wxMouseState();
35
36 /**
37 Returns X coordinate of the physical mouse event position.
38 */
39 wxCoord GetX() const;
40 /**
41 Returns Y coordinate of the physical mouse event position.
42 */
43 wxCoord GetY() const;
44 /**
45 Returns the physical mouse position.
46 */
47 wxPoint GetPosition() const;
48
49 /**
50 Returns @true if the left mouse button changed to down.
51 */
52 bool LeftDown() const;
53 /**
54 Returns @true if the middle mouse button changed to down.
55 */
56 bool MiddleDown() const;
57 /**
58 Returns @true if the right mouse button changed to down.
59 */
60 bool RightDown() const;
61 /**
62 Returns @true if the first extra button mouse button changed to down.
63 */
64 bool Aux1Down() const;
65 /**
66 Returns @true if the second extra button mouse button changed to down.
67 */
68 bool Aux2Down() const;
69 };
70
71