#[repr(usize)]pub enum PaletteColor {
Foreground = 0,
MutedForeground = 1,
Primary = 2,
Border = 3,
Input = 4,
}Expand description
A palette role, for drawings that LVGL styles cannot color through the theme.
Variants§
Implementations§
Source§impl PaletteColor
impl PaletteColor
Sourcepub fn from_index(index: usize) -> Self
pub fn from_index(index: usize) -> Self
Inverse of color as usize, used to carry a role through LVGL user data.
Trait Implementations§
Source§impl Clone for PaletteColor
impl Clone for PaletteColor
Source§fn clone(&self) -> PaletteColor
fn clone(&self) -> PaletteColor
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 PaletteColor
impl Debug for PaletteColor
Source§impl PartialEq for PaletteColor
impl PartialEq for PaletteColor
Source§fn eq(&self, other: &PaletteColor) -> bool
fn eq(&self, other: &PaletteColor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PaletteColor
impl Eq for PaletteColor
impl StructuralPartialEq for PaletteColor
Auto Trait Implementations§
impl Freeze for PaletteColor
impl RefUnwindSafe for PaletteColor
impl Send for PaletteColor
impl Sync for PaletteColor
impl Unpin for PaletteColor
impl UnsafeUnpin for PaletteColor
impl UnwindSafe for PaletteColor
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