Struct nannou_timeline::Ruler [−][src]
pub struct Ruler {
pub width_per_beat: Scalar,
// some fields omitted
}
Expand description
For converting a duration in bars to a viewable grid.
Fields
width_per_beat: Scalar
Implementations
Constructor for a Ruler.
pub fn markers_in_ticks<I>(
&self,
bars: I,
ppqn: Ppqn
) -> MarkersInTicks<WithStarts<I::IntoIter>> where
I: IntoIterator<Item = TimeSig>,
I::IntoIter: Clone,
pub fn markers_in_ticks<I>(
&self,
bars: I,
ppqn: Ppqn
) -> MarkersInTicks<WithStarts<I::IntoIter>> where
I: IntoIterator<Item = TimeSig>,
I::IntoIter: Clone,
Produce an iterator that yields an iterator for each bar along with its start position in ticks.
pub fn markers_in_divisions<I>(
&self,
bars: I,
ppqn: Ppqn
) -> MarkersInDivisions<WithStarts<I::IntoIter>> where
I: IntoIterator<Item = TimeSig>,
I::IntoIter: Clone,
pub fn markers_in_divisions<I>(
&self,
bars: I,
ppqn: Ppqn
) -> MarkersInDivisions<WithStarts<I::IntoIter>> where
I: IntoIterator<Item = TimeSig>,
I::IntoIter: Clone,
Produce an iterator that yields an iterator for each bar that yields each marker’s simplest division representation suitable for the Ruler.
pub fn marker_count<I>(&self, bars: I, ppqn: Ppqn) -> usize where
I: IntoIterator<Item = TimeSig>,
I::IntoIter: Clone,
pub fn marker_count<I>(&self, bars: I, ppqn: Ppqn) -> usize where
I: IntoIterator<Item = TimeSig>,
I::IntoIter: Clone,
Produces the number of visible markers on the Ruler
for the given bars.
The fractional number of ticks that may fit within one unit of space.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ruler
impl UnwindSafe for Ruler
Blanket Implementations
Mutably borrows from an owned value. Read more