|
ReXGlue SDK
|
Public Types | |
| enum class | Action : u8 { kDown , kUp , kCancel , kMove } |
| Public Types inherited from rex::ui::UIEvent | |
| enum class | Type : u8 { kOpened , kDPIChanged , kMonitorUpdate , kMinimized , kRestored , kClosing , kFileDrop , kResize , kClose , kFocus , kTouch } |
Public Member Functions | |
| TouchEvent (Type type, u32 pointer_id, Action action, f32 x, f32 y) | |
| bool | IsHandled () const |
| void | SetHandled (bool value) |
| u32 | GetPointerID () const |
| Action | GetAction () const |
| f32 | GetX () const |
| f32 | GetY () const |
| Public Member Functions inherited from rex::ui::UIEvent | |
| UIEvent (Type type) | |
| Type | GetType () const |
| template<typename T> | |
| const T * | As () const |
Static Public Member Functions | |
| static constexpr bool | Carries (Type type) |
Static Public Attributes | |
| static constexpr u32 | kPointerIDNone = UINT32_MAX |
|
strong |
Creates a touch event.
| x | Point x, possibly outside the surface. |
| y | Point y, possibly outside the surface. |
|
inlinestaticconstexpr |
Reports whether this class carries a type.
|
inline |
Reports whether a listener consumed the event.
|
inline |
Marks the event consumed.
| value | True stops later listeners from acting on it. |
|
staticconstexpr |
Pointer ID meaning no current pointer.