Python API 2.0 Reference
|
Public Member Functions | |
def | __init__ () |
def | getWindowPosition () |
def | isModifierControl () |
def | isModifierKeyRelease () |
def | isModifierLeftMouseButton () |
def | isModifierMiddleMouseButton () |
def | isModifierNone () |
def | isModifierShift () |
def | mouseButton () |
Static Public Member Functions | |
def | __new__ () |
Static Public Attributes | |
int | controlKey = 4 |
int | kLeftMouse = 64 |
int | kMiddleMouse = 128 |
int | shiftKey = 1 |
Properties | |
modifiers = property(...) | |
position = property(...) | |
Query interactive system events.
def OpenMayaUI.MEvent.__init__ | ( | ) |
Initialize self. See help(type(self)) for accurate signature.
|
static |
Create and return a new object. See help(type) for accurate signature.
def OpenMayaUI.MEvent.getWindowPosition | ( | ) |
getWindowPosition() -> (x, y) This routine is used by responders to query the position of the pointer when the event occurred. It is given in screen co-ordinates. Returns a tuple containing the x and y position of the event.
def OpenMayaUI.MEvent.isModifierControl | ( | ) |
isModifierControl() -> bool Return the state of the control key. Returns True if the control key was pressed at the time the event was triggered, False otherwise.
def OpenMayaUI.MEvent.isModifierKeyRelease | ( | ) |
isModifierKeyRelease() -> bool Was a modifier key released. Returns True if a modifier key was released, False otherwise.
def OpenMayaUI.MEvent.isModifierLeftMouseButton | ( | ) |
isModifierLeftMouseButton() -> bool Return the state of the left mouse button. This method is only valid when called in the hold event for another mouse press. Returns True if the left mouse button was pressed at the time the event was triggered, False otherwise.
def OpenMayaUI.MEvent.isModifierMiddleMouseButton | ( | ) |
isModifierMiddleMouseButton() -> bool Return the state of the middle mouse button. This method is only valid when called in the hold event for another mouse press. Returns True if the left mouse button was pressed at the time the event was triggered, False otherwise.
def OpenMayaUI.MEvent.isModifierNone | ( | ) |
isModifierNone() -> bool Determines if there are any modifiers for this event. Returns True if there are modifiers for this event, False otherwise.
def OpenMayaUI.MEvent.isModifierShift | ( | ) |
isModifierShift() -> bool Return the state of the shift key. Returns True if the shift key was pressed at the time the event was triggered, False otherwise.
def OpenMayaUI.MEvent.mouseButton | ( | ) |
mouseButton() -> mouseButtonType Get the mouse button of the last event. Returns the mouse button from last event.
|
static |
The state of the modifiers.
|
static |
The location of the event.