pub enum StyleValue {
Color,
I32 {
min: i32,
max: i32,
},
Enum {
max: &'static str,
},
Font,
}Expand description
How a style call’s value word becomes the property’s native value.
Variants§
Color
A 24-bit RGB word, made into an LVGL color.
I32
A signed word within min..=max.
Enum
An unsigned word of at most the LVGL enumeration constant max.
Font
The index of one of Xila’s fonts.
Trait Implementations§
Source§impl Clone for StyleValue
impl Clone for StyleValue
Source§fn clone(&self) -> StyleValue
fn clone(&self) -> StyleValue
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 StyleValue
impl Debug for StyleValue
Source§impl PartialEq for StyleValue
impl PartialEq for StyleValue
Source§fn eq(&self, other: &StyleValue) -> bool
fn eq(&self, other: &StyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StyleValue
impl Eq for StyleValue
impl StructuralPartialEq for StyleValue
Auto Trait Implementations§
impl Freeze for StyleValue
impl RefUnwindSafe for StyleValue
impl Send for StyleValue
impl Sync for StyleValue
impl Unpin for StyleValue
impl UnsafeUnpin for StyleValue
impl UnwindSafe for StyleValue
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