pub struct ColorButton<'ui> { /* private fields */ }Expand description
Builder for a color button widget
Implementations§
Source§impl<'ui> ColorButton<'ui>
impl<'ui> ColorButton<'ui>
Sourcepub fn new(
ui: &'ui Ui,
desc_id: impl Into<Cow<'ui, str>>,
color: [f32; 4],
) -> Self
pub fn new( ui: &'ui Ui, desc_id: impl Into<Cow<'ui, str>>, color: [f32; 4], ) -> Self
Creates a new color button builder
Sourcepub fn flags(self, flags: impl Into<ColorButtonOptions>) -> Self
pub fn flags(self, flags: impl Into<ColorButtonOptions>) -> Self
Sets the flags for the color button
Sourcepub fn input_mode(self, mode: ColorInputMode) -> Self
pub fn input_mode(self, mode: ColorInputMode) -> Self
Sets the input color space.
Trait Implementations§
Auto Trait Implementations§
impl<'ui> !RefUnwindSafe for ColorButton<'ui>
impl<'ui> !Send for ColorButton<'ui>
impl<'ui> !Sync for ColorButton<'ui>
impl<'ui> !UnwindSafe for ColorButton<'ui>
impl<'ui> Freeze for ColorButton<'ui>
impl<'ui> Unpin for ColorButton<'ui>
impl<'ui> UnsafeUnpin for ColorButton<'ui>
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