Represents the mouse state.
This class is used as a base class by wx.MouseEvent and so its methods may be used to obtain information about the mouse state for the mouse events. It also inherits from wx.KeyboardState and so carries information about the keyboard state and not only the mouse one.
This class is implemented entirely inline in </mousestate.h > and thus has no linking requirements.
See also
wx.GetMouseState
, wx.MouseEvent
Default constructor. |
|
Returns |
|
Returns |
|
Returns the physical mouse position. |
|
Returns X coordinate of the physical mouse event position. |
|
Returns Y coordinate of the physical mouse event position. |
|
Returns |
|
Returns |
|
Returns |
|
See |
|
See |
|
See |
|
See |
|
See |
|
See |
|
wx.
MouseState
(KeyboardState)¶Possible constructors:
MouseState()
Represents the mouse state.
__init__
(self)¶Default constructor.
Aux1IsDown
(self)¶Returns True
if the first extra button mouse button is currently down.
bool
Aux2IsDown
(self)¶Returns True
if the second extra button mouse button is currently down.
bool
GetX
(self)¶Returns X coordinate of the physical mouse event position.
wx.Coord
GetY
(self)¶Returns Y coordinate of the physical mouse event position.
wx.Coord
LeftIsDown
(self)¶Returns True
if the left mouse button is currently down.
bool
MiddleIsDown
(self)¶Returns True
if the middle mouse button is currently down.
bool
RightIsDown
(self)¶Returns True
if the right mouse button is currently down.
bool
SetAux1Down
(self, down)¶down (bool) –
SetAux2Down
(self, down)¶down (bool) –
SetLeftDown
(self, down)¶down (bool) –
SetMiddleDown
(self, down)¶down (bool) –
SetRightDown
(self, down)¶down (bool) –
SetState
(self, state)¶state (wx.MouseState) –
SetX
(self, x)¶x (int) –
SetY
(self, y)¶y (int) –
Position
¶See GetPosition
and SetPosition
aux1IsDown
¶See Aux1IsDown
and SetAux1Down
aux2IsDown
¶See Aux2IsDown
and SetAux2Down
leftIsDown
¶See LeftIsDown
and SetLeftDown
middleIsDown
¶See MiddleIsDown
and SetMiddleDown
rightIsDown
¶See RightIsDown
and SetRightDown