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>
|
| 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 () |
|
| Part | part {} |
| | under the pointer at the last move with nothing held
|
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.
◆ Track()
template<class Part>
template<class 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).
◆ Shown()
The part to draw hovered: none while the element isn't.
◆ Clear()
◆ part
under the pointer at the last move with nothing held
The documentation for this struct was generated from the following file: