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

pub struct TickMark {
    pub position: Normal,
    pub tier: TickMarkTier,
}

Data of a tick mark. It includes:

  • position - a Normal value that represents the position of the tick mark. For example, a value of 0.0 is at the minimum position, 1.0 is at the maximum position, and 0.5 is at the center position. The default is 0.5.
  • tier - a TickMarkTier representing the size of the tick mark.

Fields

position: Normal

a Normal value that represents the position of the tick mark. For example, a value of 0.0 is at the minimum position, 1.0 is at the maximum position, and 0.5 is at the center position. The default is 0.5.

tier: TickMarkTier

a TickMarkTier representing the size of the tick mark. The default is TickMarkTier::One.

Implementations

impl TickMark[src]

pub fn center(tier: TickMarkTier) -> Self[src]

Returns a tick mark at the center position.

  • tier - a TickMarkTier representing the size of the tick mark

pub fn min(tier: TickMarkTier) -> Self[src]

Returns a tick mark at the minimum position.

  • tier - a TickMarkTier representing the size of the tick mark

pub fn max(tier: TickMarkTier) -> Self[src]

Returns a tick mark at the maximum position.

  • tier - a TickMarkTier representing the size of the tick mark

Trait Implementations

impl Clone for TickMark[src]

impl Copy for TickMark[src]

impl Debug for TickMark[src]

impl Default for TickMark[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>,