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

A timeline's tracks and playback, kept by the app from frame to frame. More...

#include <gui_controls/gui_timeline_types.h>

Inheritance diagram for tachyon::TimelineData:

Public Attributes

std::vector< TimelineTrack > tracks
TimelineState playback
 the playhead; AdvanceTimeline moves it on
float duration = 8.0f
 the length, in seconds
float fps = 30.0f
 frames per second: keys snap to frames, steps go a frame
TimelineRange loopRange
 where looping playback goes round; empty: the whole length
bool snap = true
 dragged keys and the loop range land on frames
std::function< void(const TimelineEdit &)> onEdit
 A change the user made, already applied: put it in the undo history.
std::function< void()> onPlaybackChanged
 The playhead was moved, or playback started or stopped, by the user.
uint32_t revision = 0
 Raised by each edit applied, so every view of the tracks can tell they changed.

Detailed Description

A timeline's tracks and playback, kept by the app from frame to frame.

Everything the user changes comes to the app as a TimelineEdit (onEdit), already applied, for its undo history. Show it with TimelineEditor: a TimelineView for one place, or this and a TimelineViewState per view to show it in several.

Member Data Documentation

◆ tracks

std::vector<TimelineTrack> tachyon::TimelineData::tracks

◆ playback

TimelineState tachyon::TimelineData::playback

the playhead; AdvanceTimeline moves it on

◆ duration

float tachyon::TimelineData::duration = 8.0f

the length, in seconds

◆ fps

float tachyon::TimelineData::fps = 30.0f

frames per second: keys snap to frames, steps go a frame

◆ loopRange

TimelineRange tachyon::TimelineData::loopRange

where looping playback goes round; empty: the whole length

◆ snap

bool tachyon::TimelineData::snap = true

dragged keys and the loop range land on frames

◆ onEdit

std::function<void(const TimelineEdit&)> tachyon::TimelineData::onEdit

A change the user made, already applied: put it in the undo history.

◆ onPlaybackChanged

std::function<void()> tachyon::TimelineData::onPlaybackChanged

The playhead was moved, or playback started or stopped, by the user.

◆ revision

uint32_t tachyon::TimelineData::revision = 0

Raised by each edit applied, so every view of the tracks can tell they changed.


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