|
Rumba C++ SDK
|
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... | |
This interface is passed to the events and is implemented by the application. */.
| int maquina::InteractionContext::buttons | ( | ) | const |
Returns mouse button mask.
| float maquina::InteractionContext::depth | ( | ) | const |
Return the depth of the pixel under the cursor.
| float maquina::InteractionContext::frame | ( | ) | const |
Returns the frame of the highlighted object (under the cursor)
| Imath::V2i maquina::InteractionContext::global_pos | ( | ) | const |
Returns the pixel coordinate of the event in the window space.
| int maquina::InteractionContext::modifiers | ( | ) | const |
Returns keyboard modifiers mask.
| Imath::V2i maquina::InteractionContext::pos | ( | ) | const |
Returns the pixel coordinate of the event in the widget space.
| bool maquina::InteractionContext::tablet | ( | ) | const |
Returns true if the event has been generated by a tablet.
| const std::string& maquina::InteractionContext::tool_name | ( | ) | const |
Returns the current tool name.