Rumba C++ SDK
maquina::InteractionContext Class Reference

This interface is passed to the events and is implemented by the application. */. More...

#include <InteractionContext.h>

Public Types

enum  ModifierMask { shift = 0x02000000, ctrl = 0x04000000, alt = 0x08000000 }
 The keyboard modifiers masks, same than in the Qt event. More...
 
enum  ButtonMask { left = 0x01, right = 0x02, middle = 0x04 }
 The mouse button masks, same than in the Qt event. More...
 

Public Member Functions

Imath::V2i pos () const
 Returns the pixel coordinate of the event in the widget space. More...
 
Imath::V2i global_pos () const
 Returns the pixel coordinate of the event in the window space. More...
 
int buttons () const
 Returns mouse button mask. More...
 
int modifiers () const
 Returns keyboard modifiers mask. More...
 
const std::string & tool_name () const
 Returns the current tool name. More...
 
float depth () const
 Return the depth of the pixel under the cursor. More...
 
float frame () const
 Returns the frame of the highlighted object (under the cursor) More...
 
bool tablet () const
 Returns true if the event has been generated by a tablet. More...
 

Detailed Description

This interface is passed to the events and is implemented by the application. */.

Member Enumeration Documentation

◆ ButtonMask

The mouse button masks, same than in the Qt event.

Enumerator
left 

The left mouse bouton.

right 

The right mouse bouton.

middle 

The middle mouse bouton.

◆ ModifierMask

The keyboard modifiers masks, same than in the Qt event.

Enumerator
shift 

The shift key mask.

ctrl 

The control key mask.

alt 

The alt key mask.

Member Function Documentation

◆ buttons()

int maquina::InteractionContext::buttons ( ) const

Returns mouse button mask.

◆ depth()

float maquina::InteractionContext::depth ( ) const

Return the depth of the pixel under the cursor.

◆ frame()

float maquina::InteractionContext::frame ( ) const

Returns the frame of the highlighted object (under the cursor)

◆ global_pos()

Imath::V2i maquina::InteractionContext::global_pos ( ) const

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

◆ modifiers()

int maquina::InteractionContext::modifiers ( ) const

Returns keyboard modifiers mask.

◆ pos()

Imath::V2i maquina::InteractionContext::pos ( ) const

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

◆ tablet()

bool maquina::InteractionContext::tablet ( ) const

Returns true if the event has been generated by a tablet.

◆ tool_name()

const std::string& maquina::InteractionContext::tool_name ( ) const

Returns the current tool name.


The documentation for this class was generated from the following file: