pub struct ColorPickerStyle {
pub size: f32,
pub border_width: f32,
pub border_color: Color,
pub slider_width: f32,
pub lightness_color: Color,
pub alpha_color: Color,
}Expand description
The style of a color picker.
Fields§
§size: f32The size of the color picker.
border_width: f32The border width of the color picker.
border_color: ColorThe border color of the color picker.
slider_width: f32The width of the sliders.
lightness_color: ColorThe color of the lightness slider.
alpha_color: ColorThe color of the alpha slider.
Trait Implementations§
Source§impl Clone for ColorPickerStyle
impl Clone for ColorPickerStyle
Source§fn clone(&self) -> ColorPickerStyle
fn clone(&self) -> ColorPickerStyle
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 Rebuild for ColorPickerStyle
impl Rebuild for ColorPickerStyle
Source§fn rebuild(&self, cx: &mut RebuildCx<'_, '_>, old: &ColorPickerStyle)
fn rebuild(&self, cx: &mut RebuildCx<'_, '_>, old: &ColorPickerStyle)
Rebuild the view.
Source§impl Style for ColorPickerStyle
impl Style for ColorPickerStyle
Source§fn default_style() -> StyleBuilder<ColorPickerStyle>
fn default_style() -> StyleBuilder<ColorPickerStyle>
The default style of the object.
Auto Trait Implementations§
impl Freeze for ColorPickerStyle
impl RefUnwindSafe for ColorPickerStyle
impl Send for ColorPickerStyle
impl Sync for ColorPickerStyle
impl Unpin for ColorPickerStyle
impl UnwindSafe for ColorPickerStyle
Blanket Implementations§
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