|
TachyonUI 1.1.0
High-performance UI for building tools.
|
A timeline's tracks and playback, kept by the app from frame to frame. More...
#include <gui_controls/gui_timeline_types.h>
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. | |
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.
| std::vector<TimelineTrack> tachyon::TimelineData::tracks |
| TimelineState tachyon::TimelineData::playback |
the playhead; AdvanceTimeline moves it on
| float tachyon::TimelineData::duration = 8.0f |
the length, in seconds
| float tachyon::TimelineData::fps = 30.0f |
frames per second: keys snap to frames, steps go a frame
| TimelineRange tachyon::TimelineData::loopRange |
where looping playback goes round; empty: the whole length
| bool tachyon::TimelineData::snap = true |
dragged keys and the loop range land on frames
| std::function<void(const TimelineEdit&)> tachyon::TimelineData::onEdit |
A change the user made, already applied: put it in the undo history.
| std::function<void()> tachyon::TimelineData::onPlaybackChanged |
The playhead was moved, or playback started or stopped, by the user.
| uint32_t tachyon::TimelineData::revision = 0 |
Raised by each edit applied, so every view of the tracks can tell they changed.