|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Snapshot of input state for a single recorded OS event. More...
#include <gui_core/input/gui_input_state.h>
Public Member Functions | |
| bool | LeftDown () const |
| bool | LeftPressed () const |
| bool | LeftReleased () const |
| bool | RightDown () const |
| bool | RightPressed () const |
| bool | RightReleased () const |
| bool | MiddleDown () const |
| bool | MiddlePressed () const |
| bool | MiddleReleased () const |
Public Attributes | |
| tachyon::int2 | screenPos {0,0} |
| tachyon::int2 | prevScreenPos {0,0} |
| tachyon::int2 | screenDelta {0,0} |
| tachyon::MouseButtons | buttons = tachyon::MouseButtons::None |
| tachyon::MouseButtons | prevButtons = tachyon::MouseButtons::None |
| tachyon::KeyModifier | modifiers = tachyon::KeyModifier::None |
| tachyon::float2 | scroll {} |
| wheel notches (fractional on hi-res devices); label drags: pixels | |
| tachyon::KeyCode | lastKey = tachyon::KeyCode::None |
| tachyon::KeyAction | lastKeyAction = tachyon::KeyAction::KeyDown |
| tachyon::ID | dragSourceID = tachyon::ID::Invalid() |
| Drag-and-drop source and payload; set for drag events. | |
| uint32_t | dragPayloadType = 0 |
| uintptr_t | dragPayloadValue = 0 |
| std::string | textInput |
| Text typed with this event, or dropped (EventType::FileDrop); UTF-8. | |
| std::vector< std::string > | droppedFiles |
| EventType::FileDrop: the paths of the files dropped (UTF-8). | |
| bool | consumed = false |
| True when the event was already handled (e.g. Tab by tab navigation). | |
Snapshot of input state for a single recorded OS event.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| tachyon::int2 tachyon::InputState::screenPos {0,0} |
| tachyon::int2 tachyon::InputState::prevScreenPos {0,0} |
| tachyon::int2 tachyon::InputState::screenDelta {0,0} |
| tachyon::MouseButtons tachyon::InputState::buttons = tachyon::MouseButtons::None |
| tachyon::MouseButtons tachyon::InputState::prevButtons = tachyon::MouseButtons::None |
| tachyon::KeyModifier tachyon::InputState::modifiers = tachyon::KeyModifier::None |
| tachyon::float2 tachyon::InputState::scroll {} |
wheel notches (fractional on hi-res devices); label drags: pixels
| tachyon::KeyCode tachyon::InputState::lastKey = tachyon::KeyCode::None |
| tachyon::KeyAction tachyon::InputState::lastKeyAction = tachyon::KeyAction::KeyDown |
| std::string tachyon::InputState::textInput |
Text typed with this event, or dropped (EventType::FileDrop); UTF-8.
| std::vector<std::string> tachyon::InputState::droppedFiles |
EventType::FileDrop: the paths of the files dropped (UTF-8).
| bool tachyon::InputState::consumed = false |
True when the event was already handled (e.g. Tab by tab navigation).