]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/mousestate.h
minor corrections: document typeDefault, remove text copied from the header (closes...
[wxWidgets.git] / interface / wx / mousestate.h
CommitLineData
0e097789
VZ
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
ba1d7a6c 24 @nolibrary
0e097789
VZ
25 @category{misc}
26
27 @see wxGetMouseState(), wxMouseEvent
28 */
29class wxMouseState : public wxKeyboardState
30{
31public:
32 /**
33 Default constructor.
34 */
35 wxMouseState();
36
37 /**
38 Returns X coordinate of the physical mouse event position.
39 */
40 wxCoord GetX() const;
ba1d7a6c 41
0e097789
VZ
42 /**
43 Returns Y coordinate of the physical mouse event position.
44 */
45 wxCoord GetY() const;
ba1d7a6c 46
0e097789
VZ
47 /**
48 Returns the physical mouse position.
49 */
50 wxPoint GetPosition() const;
51
52 /**
53 Returns @true if the left mouse button changed to down.
54 */
55 bool LeftDown() const;
ba1d7a6c 56
0e097789
VZ
57 /**
58 Returns @true if the middle mouse button changed to down.
59 */
60 bool MiddleDown() const;
ba1d7a6c 61
0e097789
VZ
62 /**
63 Returns @true if the right mouse button changed to down.
64 */
65 bool RightDown() const;
ba1d7a6c 66
0e097789
VZ
67 /**
68 Returns @true if the first extra button mouse button changed to down.
69 */
70 bool Aux1Down() const;
ba1d7a6c 71
0e097789
VZ
72 /**
73 Returns @true if the second extra button mouse button changed to down.
74 */
75 bool Aux2Down() const;
76};
77
78