[−][src]Struct nannou_timeline::Context
A Context
returned by the Timeline
widget for setting tracks, Playhead
and Scrollbar
.
Fields
bars: Vec<TimeSig>
The list of musical Bar
s that describes the temporal structure.
To avoid unnecessary allocations, this Vec
is "taken" from the Timeline
's State
before
the Context
is returned. The Vec
is then swapped back to the Timeline
's State
when
the Context
is drop
ped.
ppqn: Ppqn
The resolution of a single quarter note.
ruler: Ruler
The Ruler
constructed by the Timeline
.
track_style: TrackStyle
Track-specific styling attributes.
timeline_id: Id
The unique identifier used to instantiate the parent Timeline
for this Context
.
canvas_id: Id
The transparent upon which pinned tracks and the scrollable area are placed.
scrollable_rectangle_id: Id
The unique identifier for the scrollable canvas upon which tracks are placed.
playhead_id: Id
The unique identifier for the Timeline
's Playhead
widget.
scrollbar_id: Id
The unique identifier for the Timeline
's Scrollbar
widget.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,