pub struct ColorPicker4<'ui, 'p> { /* private fields */ }Expand description
Builder for a 4-component color picker widget
Implementations§
Source§impl<'ui, 'p> ColorPicker4<'ui, 'p>
impl<'ui, 'p> ColorPicker4<'ui, 'p>
Sourcepub fn new(ui: &'ui Ui, label: impl AsRef<str>, color: &'p mut [f32; 4]) -> Self
pub fn new(ui: &'ui Ui, label: impl AsRef<str>, color: &'p mut [f32; 4]) -> Self
Creates a new color picker builder
Sourcepub fn flags(self, flags: ColorEditFlags) -> Self
pub fn flags(self, flags: ColorEditFlags) -> Self
Sets the flags for the color picker
Sourcepub fn reference_color(self, ref_color: [f32; 4]) -> Self
pub fn reference_color(self, ref_color: [f32; 4]) -> Self
Sets the reference color for comparison
Trait Implementations§
Auto Trait Implementations§
impl<'ui, 'p> Freeze for ColorPicker4<'ui, 'p>
impl<'ui, 'p> !RefUnwindSafe for ColorPicker4<'ui, 'p>
impl<'ui, 'p> !Send for ColorPicker4<'ui, 'p>
impl<'ui, 'p> !Sync for ColorPicker4<'ui, 'p>
impl<'ui, 'p> Unpin for ColorPicker4<'ui, 'p>
impl<'ui, 'p> !UnwindSafe for ColorPicker4<'ui, 'p>
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