pub struct ColorPickerOptions {
pub flags: ColorEditFlags,
pub display_flags: ColorPickerDisplayFlags,
pub data_type: Option<ColorDataType>,
pub picker_mode: Option<ColorPickerMode>,
pub input_mode: Option<ColorInputMode>,
}Expand description
Options accepted by ColorPicker3() and ColorPicker4().
Fields§
§flags: ColorEditFlags§display_flags: ColorPickerDisplayFlags§data_type: Option<ColorDataType>§picker_mode: Option<ColorPickerMode>§input_mode: Option<ColorInputMode>Implementations§
Source§impl ColorPickerOptions
impl ColorPickerOptions
pub const fn new() -> Self
pub fn flags(self, flags: ColorEditFlags) -> Self
pub fn display_flags(self, flags: ColorPickerDisplayFlags) -> Self
pub fn data_type(self, data_type: ColorDataType) -> Self
pub fn picker_mode(self, mode: ColorPickerMode) -> Self
pub fn input_mode(self, mode: ColorInputMode) -> Self
pub fn bits(self) -> u32
Trait Implementations§
Source§impl Clone for ColorPickerOptions
impl Clone for ColorPickerOptions
Source§fn clone(&self) -> ColorPickerOptions
fn clone(&self) -> ColorPickerOptions
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 ColorPickerOptions
impl Debug for ColorPickerOptions
Source§impl Default for ColorPickerOptions
impl Default for ColorPickerOptions
Source§impl From<ColorEditFlags> for ColorPickerOptions
impl From<ColorEditFlags> for ColorPickerOptions
Source§fn from(flags: ColorEditFlags) -> Self
fn from(flags: ColorEditFlags) -> Self
Converts to this type from the input type.
Source§impl Hash for ColorPickerOptions
impl Hash for ColorPickerOptions
Source§impl PartialEq for ColorPickerOptions
impl PartialEq for ColorPickerOptions
Source§fn eq(&self, other: &ColorPickerOptions) -> bool
fn eq(&self, other: &ColorPickerOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ColorPickerOptions
impl Eq for ColorPickerOptions
impl StructuralPartialEq for ColorPickerOptions
Auto Trait Implementations§
impl Freeze for ColorPickerOptions
impl RefUnwindSafe for ColorPickerOptions
impl Send for ColorPickerOptions
impl Sync for ColorPickerOptions
impl Unpin for ColorPickerOptions
impl UnsafeUnpin for ColorPickerOptions
impl UnwindSafe for ColorPickerOptions
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