[−][src]Struct iced_audio::core::tick_marks::TickMark
Data of a tick mark. It includes:
position
- aNormal
value that represents the position of the tick mark. For example, a value of0.0
is at the minimum position,1.0
is at the maximum position, and0.5
is at the center position. The default is0.5
.tier
- aTickMarkTier
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
- aTickMarkTier
representing the size of the tick mark
pub fn min(tier: TickMarkTier) -> Self
[src]
Returns a tick mark at the minimum position.
tier
- aTickMarkTier
representing the size of the tick mark
pub fn max(tier: TickMarkTier) -> Self
[src]
Returns a tick mark at the maximum position.
tier
- aTickMarkTier
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
impl RefUnwindSafe for TickMark
impl Send for TickMark
impl Sync for TickMark
impl Unpin for TickMark
impl UnwindSafe for TickMark
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,