[−][src]Struct iced_audio::core::tick_marks::TickMarkGroup
A group of TickMark
s.
Fields
group: Vec<TickMark>
A group of TickMark
s.
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 TickMark
s.
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]
one: u16,
two: u16,
three: u16,
sides: Option<TickMarkTier>
) -> Self
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 the0.5
(center) position.3
will put three tick marks at0.25
,0.5
,0.75
. For no tier 1 tick marks, put0
.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
and1.0
). For no tick marks on the sides, putNone
.
Trait Implementations
impl Clone for TickMarkGroup
[src]
fn clone(&self) -> TickMarkGroup
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TickMarkGroup
[src]
impl Default for TickMarkGroup
[src]
impl From<Vec<TickMark>> for TickMarkGroup
[src]
Auto Trait Implementations
impl RefUnwindSafe for TickMarkGroup
impl Send for TickMarkGroup
impl Sync for TickMarkGroup
impl Unpin for TickMarkGroup
impl UnwindSafe for TickMarkGroup
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>,