[][src]Struct iced_audio::style::v_slider::TextureStyle

pub struct TextureStyle {
    pub rail_colors: (Color, Color),
    pub rail_widths: (u16, u16),
    pub texture: Handle,
    pub handle_height: u16,
    pub texture_padding: Option<TexturePadding>,
}

A Style for an VSlider that uses an image texture for the handle

Fields

rail_colors: (Color, Color)

colors of the left and right of the rail

rail_widths: (u16, u16)

width (thickness) of the left and right of the rail

texture: Handle

the [Handle] to the image texture

handle_height: u16

the height of the handle, not including padding

texture_padding: Option<TexturePadding>

the texture padding around the handle bounding rectangle. This is useful when the texture is of a glowing handle or has a drop shadow, etc.

Trait Implementations

impl Clone for TextureStyle[src]

impl Debug for TextureStyle[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,