InteractionContext

- class InteractionContext
This interface is passed to the events and is implemented by the application. */.
Methods
buttons()Returns mouse button mask.
depth()Return the depth of the pixel under the cursor.
frame()Returns the frame of the highlighted object (under the cursor)
Returns the pixel coordinate of the event in the window space.
Returns keyboard modifiers mask.
pos()Returns the pixel coordinate of the event in the widget space.
tablet()Returns true if the event has been generated by a tablet.
Returns the current tool name.
- class InteractionContextButtonMask
The mouse button masks, same than in the Qt event.
Members:
left : The left mouse bouton.
right : The right mouse bouton.
middle : The middle mouse bouton.
- __init__()
- class InteractionContextModifierMask
The keyboard modifiers masks, same than in the Qt event.
Members:
shift : The shift key mask.
ctrl : The control key mask.
alt : The alt key mask.
- __init__()
- __init__(*args, **kwargs)
- buttons() int
Returns mouse button mask.
- Return type
int
- depth() float
Return the depth of the pixel under the cursor.
- Return type
float
- frame() float
Returns the frame of the highlighted object (under the cursor)
- Return type
float
- modifiers() int
Returns keyboard modifiers mask.
- Return type
int
- tablet() bool
Returns true if the event has been generated by a tablet.
- Return type
bool
- tool_name() unicode
Returns the current tool name.
- Return type
unicode