TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::SliderFieldTrackSubsystem Class Reference

Slider track widths written by the sliders' custom draws and read next frame (keyboard step sizes, drag mapping). More...

#include <gui_controls/subsystems/gui_subsystem_state.h>

Public Member Functions

int GetWidth (tachyon::ID id)
 0 until the slider has drawn once.
RecentIDMap< int > & Widths ()
 For the custom-draw lambdas to write into.
void EndFrame ()
 Once per frame: the widths of sliders no longer shown go after a while.

Detailed Description

Slider track widths written by the sliders' custom draws and read next frame (keyboard step sizes, drag mapping).

Member Function Documentation

◆ GetWidth()

int tachyon::SliderFieldTrackSubsystem::GetWidth ( tachyon::ID id)
inline

0 until the slider has drawn once.

Asked while the slider is built, which keeps its width (a cached panel doesn't draw it again).

◆ Widths()

RecentIDMap< int > & tachyon::SliderFieldTrackSubsystem::Widths ( )
inline

For the custom-draw lambdas to write into.

◆ EndFrame()

void tachyon::SliderFieldTrackSubsystem::EndFrame ( )
inline

Once per frame: the widths of sliders no longer shown go after a while.


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