TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
gui_pointer_drag.h File Reference

Go to the source code of this file.

Classes

struct  tachyon::PointerDrag
 One press on an element that may become a drag. More...

Namespaces

namespace  tachyon

Functions

constexpr bool tachyon::IsDragTravel (int2 delta, int32_t distance) noexcept
 Whether the pointer moving delta pixels from a press makes it a drag: distance pixels or more in a straight line.
constexpr bool tachyon::IsDragCancelKey (const InputState &s) noexcept
 Escape going down: cancels the drag of the element that has the event.