InteractionContext

Inheritance diagram of rumba.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)

global_pos()

Returns the pixel coordinate of the event in the window space.

modifiers()

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.

tool_name()

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

global_pos() Imath.V2i

Returns the pixel coordinate of the event in the window space.

Return type

Imath.V2i

modifiers() int

Returns keyboard modifiers mask.

Return type

int

pos() Imath.V2i

Returns the pixel coordinate of the event in the widget space.

Return type

Imath.V2i

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