Struct iced_audio::style::knob::ArcBipolarAppearance
source · pub struct ArcBipolarAppearance {
pub width: StyleLength,
pub empty_color: Color,
pub left_filled_color: Color,
pub right_filled_color: Color,
pub notch_center: NotchShape,
pub notch_left_right: Option<(NotchShape, NotchShape)>,
pub cap: LineCap,
}
Expand description
A modern arc Appearance
of a Knob
.
It can display different colors for left, right, and center positions. The filled arc
color draws from the center position.
Fields§
§width: StyleLength
The width (thickness) of the arc
empty_color: Color
The color of the empty background portion of the arc
left_filled_color: Color
The color of the filled portion to the left of the center
right_filled_color: Color
The color of the filled portion to the right of the center
notch_center: NotchShape
The shape of the notch when in the center position
notch_left_right: Option<(NotchShape, NotchShape)>
The shape of the notch when it is to the left and right of the
center. Set this to None
to only use notch_center
.
cap: LineCap
The cap at the ends of the arc
Trait Implementations§
source§impl Clone for ArcBipolarAppearance
impl Clone for ArcBipolarAppearance
source§fn clone(&self) -> ArcBipolarAppearance
fn clone(&self) -> ArcBipolarAppearance
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 moreAuto Trait Implementations§
impl RefUnwindSafe for ArcBipolarAppearance
impl Send for ArcBipolarAppearance
impl Sync for ArcBipolarAppearance
impl Unpin for ArcBipolarAppearance
impl UnwindSafe for ArcBipolarAppearance
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