TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::HoverPart< Part > Struct Template Reference

The part of a drawn control under the pointer (a key, a handle, a clip's end), for its hover look. More...

#include <gui_core/input/gui_gesture.h>

Public Member Functions

template<class HitTest>
void Track (bool held, HitTest &&hitTest)
 On a move: unless a press is held, the part hitTest() finds under the pointer becomes the hovered one (the hit test isn't run while one is).
Part Shown (bool elementHovered) const
 The part to draw hovered: none while the element isn't.
void Clear ()

Public Attributes

Part part {}
 under the pointer at the last move with nothing held

Detailed Description

template<class Part>
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.

It follows the pointer's moves while no press is held, so the part being dragged stays lit; it's drawn only while the control's element is hovered.

Member Function Documentation

◆ Track()

template<class Part>
template<class HitTest>
void tachyon::HoverPart< Part >::Track ( bool held,
HitTest && hitTest )
inline

On a move: unless a press is held, the part hitTest() finds under the pointer becomes the hovered one (the hit test isn't run while one is).

◆ Shown()

template<class Part>
Part tachyon::HoverPart< Part >::Shown ( bool elementHovered) const
inline

The part to draw hovered: none while the element isn't.

◆ Clear()

template<class Part>
void tachyon::HoverPart< Part >::Clear ( )
inline

Member Data Documentation

◆ part

template<class Part>
Part tachyon::HoverPart< Part >::part {}

under the pointer at the last move with nothing held


The documentation for this struct was generated from the following file: