|
TachyonUI 1.1.0
High-performance UI for building tools.
|
A timeline shown in one place: the tracks and the one view of them together. More...
#include <gui_controls/gui_timeline_types.h>
Additional Inherited Members | |
| enum class | ClipPart : uint8_t { None , Body , Start , End } |
| A clip's parts: its body moves it, its ends trim it. More... | |
| Public Attributes inherited from tachyon::TimelineData | |
| 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. | |
| Public Attributes inherited from tachyon::TimelineViewState | |
| float | viewStart = 0.0f |
| The part of the timeline in view: from viewStart, viewLength seconds wide. | |
| float | viewLength = 0.0f |
| ID | selectedTrack = ID::Invalid() |
| highlighted in the list and on its lane | |
| std::unordered_set< ID > | selectedKeys |
| keys and events, by stableID | |
| std::string | filter |
| the track list shows the tracks whose name has it (and their groups) | |
| std::function< void()> | onAddTrack |
| The "+" over the track list: add a track. | |
| std::function< void(int track)> | onTrackContextMenu |
| Builds the menu for a track's row (right click, or the Menu key on the selected one), with MenuItem and the like, as onCanvasContextMenu does in a node view. | |
| Gesture< std::vector< TimelineTrack > > | keyDrag |
| moving the selected keys; the tracks as they were (all of them) | |
| float | keyPressTime = 0.0f |
| the time under the key drag's press | |
| bool | keyMoved = false |
| A clip's parts: its body moves it, its ends trim it. | |
| Gesture< std::vector< TimelineTrack > > | clipDrag |
| moving or trimming a clip; the tracks as they were | |
| int | clipTrack = -1 |
| the track whose clip is dragged ... | |
| ClipPart | clipPart = ClipPart::None |
| ... and by which part | |
| float | clipPressTime = 0.0f |
| the time under the clip drag's press | |
| bool | clipMoved = false |
| A clip's parts: its body moves it, its ends trim it. | |
| HoverPart< LaneHover > | hover |
| A clip's parts: its body moves it, its ends trim it. | |
| Gesture< std::unordered_set< ID > > | boxSelect |
| the selection to go back to: before a Shift / Ctrl box, else none | |
| float | boxFrom = 0.0f |
| the box's anchor: time and row | |
| int | boxFromRow = 0 |
| A clip's parts: its body moves it, its ends trim it. | |
| float | boxTo = 0.0f |
| A clip's parts: its body moves it, its ends trim it. | |
| int | boxToRow = 0 |
| A clip's parts: its body moves it, its ends trim it. | |
| Gesture< TimelineRange > | loopDrag |
| the loop range as it was | |
| int | loopEdge = 0 |
| 0 a new range, 1 its start, 2 its end, 3 the whole of it | |
| float | loopPressTime = 0.0f |
| A clip's parts: its body moves it, its ends trim it. | |
| HoverPart< int > | loopEdgeHover |
| the loop edge under the pointer on the ruler: 0 none, 1 start, 2 end | |
| Gesture< float > | scrub |
| on the ruler; the playhead as it was | |
| Gesture< float > | pan |
| the scroll bar's thumb; the view's start as it was | |
| Gesture< DragScrollFrom > | dragScroll |
| the middle button (or Alt + left) held over the ruler or lanes | |
| int | zoom = 0 |
| the zoom slider, 0 (all of it) to 100 | |
| int | zoomShown = 0 |
| the slider as last drawn, to tell its moves | |
| int | lanesWidth = 0 |
| the lanes' width last frame, in pixels | |
| std::vector< ID > | menuKeys |
| The lanes' menu: what was right-clicked, or from the keyboard the selection and the playhead. | |
| int | menuTrack = -1 |
| the row's track | |
| float | menuTime = 0.0f |
| the time under the right click | |
| bool | menuByPointer = false |
| a right press set the above since the menu last opened | |
| uint32_t | menuOpening = 0 |
| the context menu opening it was worked out for | |
| uint32_t | seenRevision = 0 |
| the tracks' revision this view last built | |
| ID | editorID = ID::Invalid() |
| the editor's ID last frame: its rows' and lanes' IDs are scoped to it | |
A timeline shown in one place: the tracks and the one view of them together.