pub struct ColorProps {
pub color: Color,
pub alpha: bool,
pub title: String,
}Expand description
Full props (realize) for the native leaf. alpha and title are set once at build; only
color patches. The composed idiom realizes no leaf and never builds these.
Fields§
§color: Color§alpha: boolOffer an opacity channel in the chooser. Off by default: most pickers hide the alpha slider unless asked, and a color that can go transparent behind the app’s back is rarely what a tint or a brand swatch wants.
title: StringThe chooser’s title, where the platform shows one ("" = the platform default).
Trait Implementations§
Source§impl Clone for ColorProps
impl Clone for ColorProps
Source§fn clone(&self) -> ColorProps
fn clone(&self) -> ColorProps
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 ColorProps
impl Debug for ColorProps
Source§impl Default for ColorProps
impl Default for ColorProps
Source§impl PartialEq for ColorProps
impl PartialEq for ColorProps
impl StructuralPartialEq for ColorProps
Auto Trait Implementations§
impl Freeze for ColorProps
impl RefUnwindSafe for ColorProps
impl Send for ColorProps
impl Sync for ColorProps
impl Unpin for ColorProps
impl UnsafeUnpin for ColorProps
impl UnwindSafe for ColorProps
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