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

What a Timeline covers. The markers are only read during the call. More...

#include <gui_controls/gui_timeline_types.h>

Public Attributes

float duration = 0.0f
 the length, in seconds: the scrubber's right end
float fps = 30.0f
 frames per second: a step's length, and the frame number shown; 0 or less: no frames
float progress = -1.0f
 How far the content is ready, in seconds: a simulation's frames computed so far, drawn as a fill along the scrubber.
std::span< const float > markers
 checkpoints, in seconds: a line each on the scrubber
TimelineRange loopRange
 Where looping playback goes round: from its end back to its start.

Detailed Description

What a Timeline covers. The markers are only read during the call.

Member Data Documentation

◆ duration

float tachyon::TimelineOptions::duration = 0.0f

the length, in seconds: the scrubber's right end

◆ fps

float tachyon::TimelineOptions::fps = 30.0f

frames per second: a step's length, and the frame number shown; 0 or less: no frames

◆ progress

float tachyon::TimelineOptions::progress = -1.0f

How far the content is ready, in seconds: a simulation's frames computed so far, drawn as a fill along the scrubber.

Below 0: no fill.

◆ markers

std::span<const float> tachyon::TimelineOptions::markers

checkpoints, in seconds: a line each on the scrubber

◆ loopRange

TimelineRange tachyon::TimelineOptions::loopRange

Where looping playback goes round: from its end back to its start.

Empty (the default): the whole length.


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