|
TachyonUI 0.1.0
High-performance UI for building tools.
|
An input event delivered to an element's EventHandler. More...
#include <gui_core/input/gui_input_handler_func.h>
Public Member Functions | |
| int2 | LocalCursor (const ElementStorage &storage) const |
| Cursor in the space rect->rect is stored in (inverse of ancestor contentTransforms). | |
Public Attributes | |
| tachyon::ID | id |
| the targeted element | |
| EventType | type |
| const InputState & | state |
| the input snapshot of this event | |
| const ElementRect * | rect |
| the element's layout rects | |
| const ElementRef & | elementRef |
An input event delivered to an element's EventHandler.
| int2 tachyon::ElementEvent::LocalCursor | ( | const ElementStorage & | storage | ) | const |
Cursor in the space rect->rect is stored in (inverse of ancestor contentTransforms).
Compare against the rect with this, not state.screenPos, which differs under e.g. a pan/zoom canvas.
| tachyon::ID tachyon::ElementEvent::id |
the targeted element
| EventType tachyon::ElementEvent::type |
| const InputState& tachyon::ElementEvent::state |
the input snapshot of this event
| const ElementRect* tachyon::ElementEvent::rect |
the element's layout rects
| const ElementRef& tachyon::ElementEvent::elementRef |