[][src]Struct iced_audio::style::h_slider::RectBipolarStyle

pub struct RectBipolarStyle {
    pub back_left_empty_color: Color,
    pub back_left_filled_color: Color,
    pub back_right_empty_color: Color,
    pub back_right_filled_color: Color,
    pub border_color: Color,
    pub border_radius: u16,
    pub border_width: u16,
    pub handle_left_color: Color,
    pub handle_right_color: Color,
    pub handle_center_color: Color,
    pub handle_width: u16,
    pub handle_filled_gap: u16,
}

A modern Style for an HSlider. It is composed of a background rectangle and a rectangular handle. It has different colors for left, right, and center values.

  • back_left_empty_color - color of an unfilled portion in the background rectangle on the left side of the center
  • back_left_filled_color - color of a filled portion in the background rectangle on the left side of the center
  • back_right_empty_color - color of an unfilled portion in the background rectangle on the right side of the center
  • back_right_filled_color - color of a filled portion in the background rectangle on the right side of the center
  • border_color - color of the background rectangle border
  • border_radius - radius of the background rectangle
  • border_width - width of the background rectangle border
  • handle_left_color - color of the handle rectangle when it is on the left side of the center
  • handle_right_color - color of the handle rectangle when it is on the right side of the center
  • handle_center_color - color of the handle rectangle when it is in the center
  • handle_width - width of the handle rectangle
  • handle_filled_gap - width of the gap between the handle and the filled portion of the background rectangle

Fields

back_left_empty_color: Colorback_left_filled_color: Colorback_right_empty_color: Colorback_right_filled_color: Colorborder_color: Colorborder_radius: u16border_width: u16handle_left_color: Colorhandle_right_color: Colorhandle_center_color: Colorhandle_width: u16handle_filled_gap: u16

Trait Implementations

impl Clone for RectBipolarStyle[src]

impl Copy for RectBipolarStyle[src]

impl Debug for RectBipolarStyle[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> 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>,