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