TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_gesture.h File Reference
#include <gui_core/input/gui_pointer_drag.h>
#include <stdint.h>
#include <utility>

Go to the source code of this file.

Classes

struct  tachyon::PressOptions
 What a press does besides being tracked. More...
struct  tachyon::NoSnapshot
 No value to keep: a press that changes nothing to put back. More...
struct  tachyon::Gesture< Snapshot >
 One press that may become a drag, with what every control does around it: the focus and the capture on the press, the value the drag changes kept as it was, put back on Escape and left for the commit after the release. More...
struct  tachyon::HoverPart< Part >
 The part of a drawn control under the pointer (a key, a handle, a clip's end), for its hover look. More...

Namespaces

namespace  tachyon

Enumerations

enum class  tachyon::GesturePhase : uint8_t { tachyon::GesturePhase::Idle , tachyon::GesturePhase::Pressed , tachyon::GesturePhase::Dragging }
 Where a press is, nested in the element's hover: nothing held, held, or dragging. More...

Functions

void tachyon::TakeFocus (GUIStateManager &gsm, ID element)
 A press focuses element: the keyboard goes to it, and a text editor that had it lets go.
template<class... Presses>
bool tachyon::AnyHeld (const Presses &... presses) noexcept
 Whether any of a control's presses is held: its hover parts stay as they are then.