[][src]Struct iced_audio::core::tick_marks::TickMarkGroup

pub struct TickMarkGroup {
    pub group: Vec<TickMark>,
}

A group of TickMarks.

Fields

group: Vec<TickMark>

A group of TickMarks.

Implementations

impl TickMarkGroup[src]

pub fn new() -> Self[src]

Constructs an empty TickMarkGroup.

pub fn from_vec(tick_marks: Vec<TickMark>) -> Self[src]

Constructs a new TickMarkGroup from a vector of TickMarks.

pub fn push(&mut self, tick_mark: TickMark)[src]

Pushes a new TickMark into the TickMarkGroup.

pub fn subdivided(
    one: u16,
    two: u16,
    three: u16,
    sides: Option<TickMarkTier>
) -> Self
[src]

Creates a group of tick marks by subdividing the range.

  • one - The number of tier 1 tick marks. For example, 1 will put a single tier 1 tick mark at the 0.5 (center) position. 3 will put three tick marks at 0.25, 0.5, 0.75. For no tier 1 tick marks, put 0.
  • two - The number of tier 2 tick marks in each range between tier 1 tick marks. If there are no tier 1 tick marks, then it will behave the same as tier 1 tick marks.
  • three - The number of tier 3 tick marks in each range between tier 2 tick marks. If there are no tier 2 tick marks, then it will behave the same as tier 2 tick marks.
  • sides - The tier of tick marks to put on the two sides (0.0 and 1.0). For no tick marks on the sides, put None.

Trait Implementations

impl Clone for TickMarkGroup[src]

impl Debug for TickMarkGroup[src]

impl Default for TickMarkGroup[src]

impl From<Vec<TickMark>> for TickMarkGroup[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,