]>
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.
26 @see wxGetMouseState(), wxMouseEvent
28 class wxMouseState
: public wxKeyboardState
37 Returns X coordinate of the physical mouse event position.
41 Returns Y coordinate of the physical mouse event position.
45 Returns the physical mouse position.
47 wxPoint
GetPosition() const;
50 Returns @true if the left mouse button changed to down.
52 bool LeftDown() const;
54 Returns @true if the middle mouse button changed to down.
56 bool MiddleDown() const;
58 Returns @true if the right mouse button changed to down.
60 bool RightDown() const;
62 Returns @true if the first extra button mouse button changed to down.
64 bool Aux1Down() const;
66 Returns @true if the second extra button mouse button changed to down.
68 bool Aux2Down() const;