Struct iced_audio::style::h_slider::RectAppearance
source · pub struct RectAppearance {
pub back_color: Color,
pub back_border_width: f32,
pub back_border_radius: f32,
pub back_border_color: Color,
pub filled_color: Color,
pub handle_color: Color,
pub handle_width: u16,
pub handle_filled_gap: f32,
}
Expand description
A modern Appearance
for an HSlider
. It is composed of a background
rectangle and a rectangular handle.
Fields§
§back_color: Color
color of the background rectangle
back_border_width: f32
width of the background rectangle border
back_border_radius: f32
radius of the background rectangle
back_border_color: Color
color of the background rectangle border
filled_color: Color
color of a filled portion in the background rectangle
handle_color: Color
color of the handle rectangle
handle_width: u16
width of the handle rectangle
handle_filled_gap: f32
width of the gap between the handle and the filled portion of the background rectangle
Trait Implementations§
source§impl Clone for RectAppearance
impl Clone for RectAppearance
source§fn clone(&self) -> RectAppearance
fn clone(&self) -> RectAppearance
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RectAppearance
impl Debug for RectAppearance
impl Copy for RectAppearance
Auto Trait Implementations§
impl RefUnwindSafe for RectAppearance
impl Send for RectAppearance
impl Sync for RectAppearance
impl Unpin for RectAppearance
impl UnwindSafe for RectAppearance
Blanket Implementations§
source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: FloatComponent, Swp: WhitePoint, Dwp: WhitePoint, D: AdaptFrom<S, Swp, Dwp, T>,
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere U: FromColor<T>,
source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere U: FromColorUnclamped<T>,
source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere U: TryFromColor<T>,
source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds
error is returned which contains
the unclamped color. Read more