Struct iced_audio::native::tick_marks::Group [−][src]
pub struct Group { /* fields omitted */ }
A group of tick marks.
tick mark: struct.TickMark.html
Implementations
impl Group
[src]
impl Group
[src]pub fn from_normalized(tick_marks: &[(Normal, Tier)]) -> Self
[src]
pub fn from_normalized(tick_marks: &[(Normal, Tier)]) -> Self
[src]Constructs a new Group
from an array of normalized values and tiers.
pub fn min_max_and_center(min_max_tier: Tier, center_tier: Tier) -> Self
[src]
pub fn min_max_and_center(min_max_tier: Tier, center_tier: Tier) -> Self
[src]pub fn subdivided(
one: usize,
two: usize,
three: usize,
sides: Option<Tier>
) -> Self
[src]
pub fn subdivided(
one: usize,
two: usize,
three: usize,
sides: Option<Tier>
) -> 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 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
.
pub fn evenly_spaced(len: usize, tier: Tier) -> Self
[src]
pub fn evenly_spaced(len: usize, tier: Tier) -> Self
[src]pub fn tier_1(&self) -> Option<&Vec<Normal>>
[src]
pub fn tier_1(&self) -> Option<&Vec<Normal>>
[src]Returns the positions of the tier 1 tick marks.
Returns None
if there are no tier 1 tick marks.
pub fn tier_2(&self) -> Option<&Vec<Normal>>
[src]
pub fn tier_2(&self) -> Option<&Vec<Normal>>
[src]Returns the positions of the tier 2 tick marks.
Returns None
if there are no tier 2 tick marks.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,