]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/mousestate.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mousestate.h
3 // Purpose: documentation of wxMouseState
4 // Author: wxWidgets team
7 // Licence: wxWindows license
8 /////////////////////////////////////////////////////////////////////////////
14 Represents the mouse state.
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.
21 This class is implemented entirely inline in @<wx/mousestate.h@> and thus
22 has no linking requirements.
27 @see wxGetMouseState(), wxMouseEvent
29 class wxMouseState
: public wxKeyboardState
38 Returns X coordinate of the physical mouse event position.
43 Returns Y coordinate of the physical mouse event position.
48 Returns the physical mouse position.
50 wxPoint
GetPosition() const;
53 Returns @true if the left mouse button changed to down.
55 bool LeftDown() const;
58 Returns @true if the middle mouse button changed to down.
60 bool MiddleDown() const;
63 Returns @true if the right mouse button changed to down.
65 bool RightDown() const;
68 Returns @true if the first extra button mouse button changed to down.
70 bool Aux1Down() const;
73 Returns @true if the second extra button mouse button changed to down.
75 bool Aux2Down() const;