Package wx :: Class MouseEvent
[frames | no frames]

Type MouseEvent

object --+        
         |        
    Object --+    
             |    
         Event --+
                 |
                MouseEvent


Proxy of C++ MouseEvent class
Method Summary
MouseEvent __init__(self, mouseType)
  __repr__(self)
bool AltDown(self)
bool Button(self, but)
bool ButtonDClick(self, but)
bool ButtonDown(self, but)
bool ButtonIsDown(self, but)
bool ButtonUp(self, but)
bool CmdDown(self)
"Cmd" is a pseudo key which is the same as Control for PC and Unix platforms but the special "Apple" (a.k.a as "Command") key on Macs: it makes often sense to use it instead of, say, ControlDown because Cmd key is used for the same thing under Mac as Ctrl elsewhere.
bool ControlDown(self)
bool Dragging(self)
bool Entering(self)
int GetButton(self)
int GetLinesPerAction(self)
Point GetLogicalPosition(self, dc)
Point GetPosition(self)
Returns the position of the mouse in window coordinates when the event happened.
(x,y) GetPositionTuple()
Returns the position of the mouse in window coordinates when the event happened.
int GetWheelDelta(self)
int GetWheelRotation(self)
int GetX(self)
int GetY(self)
bool IsButton(self)
bool IsPageScroll(self)
bool Leaving(self)
bool LeftDClick(self)
bool LeftDown(self)
bool LeftIsDown(self)
bool LeftUp(self)
bool MetaDown(self)
bool MiddleDClick(self)
bool MiddleDown(self)
bool MiddleIsDown(self)
bool MiddleUp(self)
bool Moving(self)
bool RightDClick(self)
bool RightDown(self)
bool RightIsDown(self)
bool RightUp(self)
bool ShiftDown(self)

Property Summary
  m_altDown
  m_controlDown
  m_leftDown
  m_linesPerAction
  m_metaDown
  m_middleDown
  m_rightDown
  m_shiftDown
  m_wheelDelta
  m_wheelRotation
  m_x
  m_y

Method Details

CmdDown(self)

"Cmd" is a pseudo key which is the same as Control for PC and Unix platforms but the special "Apple" (a.k.a as "Command") key on Macs: it makes often sense to use it instead of, say, ControlDown because Cmd key is used for the same thing under Mac as Ctrl elsewhere. The Ctrl still exists, it's just not used for this purpose. So for non-Mac platforms this is the same as ControlDown and Macs this is the same as MetaDown.
Returns:
bool

GetPosition(self)

Returns the position of the mouse in window coordinates when the event happened.
Returns:
Point

GetPositionTuple()

Returns the position of the mouse in window coordinates when the event happened.
Returns:
(x,y)

Property Details

m_altDown

Get Method:
MouseEvent_m_altDown_get(...)
Set Method:
MouseEvent_m_altDown_set(...)

m_controlDown

Get Method:
MouseEvent_m_controlDown_get(...)
Set Method:
MouseEvent_m_controlDown_set(...)

m_leftDown

Get Method:
MouseEvent_m_leftDown_get(...)
Set Method:
MouseEvent_m_leftDown_set(...)

m_linesPerAction

Get Method:
MouseEvent_m_linesPerAction_get(...)
Set Method:
MouseEvent_m_linesPerAction_set(...)

m_metaDown

Get Method:
MouseEvent_m_metaDown_get(...)
Set Method:
MouseEvent_m_metaDown_set(...)

m_middleDown

Get Method:
MouseEvent_m_middleDown_get(...)
Set Method:
MouseEvent_m_middleDown_set(...)

m_rightDown

Get Method:
MouseEvent_m_rightDown_get(...)
Set Method:
MouseEvent_m_rightDown_set(...)

m_shiftDown

Get Method:
MouseEvent_m_shiftDown_get(...)
Set Method:
MouseEvent_m_shiftDown_set(...)

m_wheelDelta

Get Method:
MouseEvent_m_wheelDelta_get(...)
Set Method:
MouseEvent_m_wheelDelta_set(...)

m_wheelRotation

Get Method:
MouseEvent_m_wheelRotation_get(...)
Set Method:
MouseEvent_m_wheelRotation_set(...)

m_x

Get Method:
MouseEvent_m_x_get(...)
Set Method:
MouseEvent_m_x_set(...)

m_y

Get Method:
MouseEvent_m_y_get(...)
Set Method:
MouseEvent_m_y_set(...)

Generated by Epydoc 2.1.20040428.rpd on Fri Apr 8 16:05:29 2005 http://epydoc.sf.net