+class MouseState(object):
+ """
+ `wx.MouseState` is used to hold information about mouse button and
+ modifier key states and is what is returned from `wx.GetMouseState`.
+ """
+ def __repr__(self):
+ return "<%s.%s; proxy of C++ wxMouseState instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
+ def __init__(self, *args, **kwargs):
+ """
+ __init__(self) -> MouseState
+
+ `wx.MouseState` is used to hold information about mouse button and
+ modifier key states and is what is returned from `wx.GetMouseState`.
+ """
+ newobj = _misc_.new_MouseState(*args, **kwargs)
+ self.this = newobj.this
+ self.thisown = 1
+ del newobj.thisown
+ def __del__(self, destroy=_misc_.delete_MouseState):
+ """__del__(self)"""
+ try:
+ if self.thisown: destroy(self)
+ except: pass
+
+ def GetX(*args, **kwargs):
+ """GetX(self) -> int"""
+ return _misc_.MouseState_GetX(*args, **kwargs)
+
+ def GetY(*args, **kwargs):
+ """GetY(self) -> int"""
+ return _misc_.MouseState_GetY(*args, **kwargs)
+
+ def LeftDown(*args, **kwargs):
+ """LeftDown(self) -> bool"""
+ return _misc_.MouseState_LeftDown(*args, **kwargs)
+
+ def MiddleDown(*args, **kwargs):
+ """MiddleDown(self) -> bool"""
+ return _misc_.MouseState_MiddleDown(*args, **kwargs)
+
+ def RightDown(*args, **kwargs):
+ """RightDown(self) -> bool"""
+ return _misc_.MouseState_RightDown(*args, **kwargs)
+
+ def ControlDown(*args, **kwargs):
+ """ControlDown(self) -> bool"""
+ return _misc_.MouseState_ControlDown(*args, **kwargs)
+
+ def ShiftDown(*args, **kwargs):
+ """ShiftDown(self) -> bool"""
+ return _misc_.MouseState_ShiftDown(*args, **kwargs)
+
+ def AltDown(*args, **kwargs):
+ """AltDown(self) -> bool"""
+ return _misc_.MouseState_AltDown(*args, **kwargs)
+
+ def MetaDown(*args, **kwargs):
+ """MetaDown(self) -> bool"""
+ return _misc_.MouseState_MetaDown(*args, **kwargs)
+
+ def CmdDown(*args, **kwargs):
+ """CmdDown(self) -> bool"""
+ return _misc_.MouseState_CmdDown(*args, **kwargs)
+
+ def SetX(*args, **kwargs):
+ """SetX(self, int x)"""
+ return _misc_.MouseState_SetX(*args, **kwargs)
+
+ def SetY(*args, **kwargs):
+ """SetY(self, int y)"""
+ return _misc_.MouseState_SetY(*args, **kwargs)
+
+ def SetLeftDown(*args, **kwargs):
+ """SetLeftDown(self, bool down)"""
+ return _misc_.MouseState_SetLeftDown(*args, **kwargs)
+
+ def SetMiddleDown(*args, **kwargs):
+ """SetMiddleDown(self, bool down)"""
+ return _misc_.MouseState_SetMiddleDown(*args, **kwargs)
+
+ def SetRightDown(*args, **kwargs):
+ """SetRightDown(self, bool down)"""
+ return _misc_.MouseState_SetRightDown(*args, **kwargs)
+
+ def SetControlDown(*args, **kwargs):
+ """SetControlDown(self, bool down)"""
+ return _misc_.MouseState_SetControlDown(*args, **kwargs)
+
+ def SetShiftDown(*args, **kwargs):
+ """SetShiftDown(self, bool down)"""
+ return _misc_.MouseState_SetShiftDown(*args, **kwargs)
+
+ def SetAltDown(*args, **kwargs):
+ """SetAltDown(self, bool down)"""
+ return _misc_.MouseState_SetAltDown(*args, **kwargs)
+
+ def SetMetaDown(*args, **kwargs):
+ """SetMetaDown(self, bool down)"""
+ return _misc_.MouseState_SetMetaDown(*args, **kwargs)
+
+ x = property(GetX, SetX)
+ y = property(GetY, SetY)
+ leftDown = property(LeftDown, SetLeftDown)
+ middleDown = property(MiddleDown, SetMiddleDown)
+ rightDown = property(RightDown, SetRightDown)
+ controlDown = property(ControlDown, SetControlDown)
+ shiftDown = property(ShiftDown, SetShiftDown)
+ altDown = property(AltDown, SetAltDown)
+ metaDown = property(MetaDown, SetMetaDown)
+ cmdDown = property(CmdDown)
+
+
+class MouseStatePtr(MouseState):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = MouseState
+_misc_.MouseState_swigregister(MouseStatePtr)
+FileSelectorPromptStr = cvar.FileSelectorPromptStr
+FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
+DirSelectorPromptStr = cvar.DirSelectorPromptStr
+
+
+def GetMouseState(*args, **kwargs):
+ """
+ GetMouseState() -> MouseState
+
+ Returns the current state of the mouse. Returns an instance of a
+ `wx.MouseState` object that contains the current position of the mouse
+ pointer in screen coordinants, as well as boolean values indicating
+ the up/down status of the mouse buttons and the modifier keys.
+ """
+ return _misc_.GetMouseState(*args, **kwargs)