Struct iced_audio::style::knob::TextMarksStyle [−][src]
pub struct TextMarksStyle { pub style: Style, pub offset: f32, pub h_char_offset: f32, pub v_offset: f32, }
Style of text marks for a Knob
.
Fields
style: Style
The style of the text marks
offset: f32
The offset from the edge of the knob in pixels
h_char_offset: f32
Extra horizontal offset in pixels for each additional character in the text label. This is used to keep longer labels on the sides of the knob from being too close to the knob.
The default is 3.0
.
v_offset: f32
The vertical offset in pixels.
The default is -0.75
.
Trait Implementations
impl Clone for TextMarksStyle
[src]
impl Clone for TextMarksStyle
[src]fn clone(&self) -> TextMarksStyle
[src]
fn clone(&self) -> TextMarksStyle
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TextMarksStyle
[src]
impl Debug for TextMarksStyle
[src]Auto Trait Implementations
impl RefUnwindSafe for TextMarksStyle
impl Send for TextMarksStyle
impl Sync for TextMarksStyle
impl Unpin for TextMarksStyle
impl UnwindSafe for TextMarksStyle
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>,