Enum iced_audio::style::tick_marks::Placement [−][src]
pub enum Placement { BothSides { offset: Offset, inside: bool, }, LeftOrTop { offset: Offset, inside: bool, }, RightOrBottom { offset: Offset, inside: bool, }, Center { offset: Offset, fill_length: bool, }, CenterSplit { offset: Offset, fill_length: bool, gap: f32, }, }
The placement of tick marks relative to the widget
Variants
Tick marks on both sides of the widget.
Show fields
Tick marks only on the outside left/top side of the widget.
Show fields
Tick marks only on the right/bottom side of the widget.
Show fields
Tick marks in the center of the widget.
Show fields
Split tick marks in the center of the widget.
Show fields
Fields of CenterSplit
offset: Offset
The offset from the center of the widget.
fill_length: bool
Whether to fill the length of the widget (true), or not (false). If this is true, then the length of each tick mark will extend from the edges of the widget.
gap: f32
The gap between the split tick marks. This has no effect if fill_length
is true.
Trait Implementations
impl Copy for Placement
[src]
impl StructuralPartialEq for Placement
[src]
Auto Trait Implementations
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnwindSafe for Placement
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>,