pub struct TimelineState {
pub t: f64,
pub view: (f64, f64),
pub sel: Option<(f64, f64)>,
pub follow: bool,
pub test_mods: u32,
/* private fields */
}Expand description
the app-owned state of a timeline: playhead, visible range, selected range, following
Fields§
§t: f64the playhead (s)
view: (f64, f64)the visible time range (s); empty (the default) = the whole span
sel: Option<(f64, f64)>a selected time range (Shift+drag), start <= end
follow: boolkeep the playhead at the live end of the span (moving it by hand ends this)
test_mods: u32modifier keys (MOD_*) treated as held: scripts cannot hold Ctrl or Shift during a
wheel (an app maps a test command to it)
Implementations§
Source§impl TimelineState
impl TimelineState
Trait Implementations§
Source§impl Clone for TimelineState
impl Clone for TimelineState
Auto Trait Implementations§
impl !RefUnwindSafe for TimelineState
impl !Send for TimelineState
impl !Sync for TimelineState
impl !UnwindSafe for TimelineState
impl Forget for TimelineState
impl Freeze for TimelineState
impl Unpin for TimelineState
impl UnsafeUnpin for TimelineState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more