pub struct ColorPicker { /* private fields */ }Implementations§
Source§impl ColorPicker
impl ColorPicker
pub fn new() -> Self
pub fn color(self, value: impl Into<Option<Color>>) -> Self
pub fn is_alpha_enabled(self, value: impl Into<Option<bool>>) -> Self
pub fn is_hex_input_visible(self, value: impl Into<Option<bool>>) -> Self
pub fn is_color_slider_visible(self, value: impl Into<Option<bool>>) -> Self
pub fn is_color_channel_text_input_visible( self, value: impl Into<Option<bool>>, ) -> Self
pub fn is_enabled(self, value: impl Into<Option<bool>>) -> Self
pub fn on_color_changed(self, callback: impl IntoPayloadCallback<Color>) -> Self
Trait Implementations§
Source§impl Clone for ColorPicker
impl Clone for ColorPicker
Source§fn clone(&self) -> ColorPicker
fn clone(&self) -> ColorPicker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColorPicker
impl Debug for ColorPicker
Source§impl Default for ColorPicker
impl Default for ColorPicker
Source§fn default() -> ColorPicker
fn default() -> ColorPicker
Returns the “default value” for a type. Read more
Source§impl From<ColorPicker> for View
impl From<ColorPicker> for View
Source§fn from(value: ColorPicker) -> Self
fn from(value: ColorPicker) -> Self
Converts to this type from the input type.
Source§impl LayoutControl for ColorPicker
impl LayoutControl for ColorPicker
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ColorPicker
impl PartialEq for ColorPicker
impl StructuralPartialEq for ColorPicker
Auto Trait Implementations§
impl !RefUnwindSafe for ColorPicker
impl !Send for ColorPicker
impl !Sync for ColorPicker
impl !UnwindSafe for ColorPicker
impl Freeze for ColorPicker
impl Unpin for ColorPicker
impl UnsafeUnpin for ColorPicker
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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