pub enum ObjectOperation {
Show 16 variants
Call,
SetBool,
SetU8,
SetU32 {
min: u32,
max: u32,
},
SetMask {
mask: u32,
},
GetU32,
GetBool,
GetI32,
SetEnum {
max: &'static str,
},
SetU32Limit {
max: u32,
},
SetText {
limit: &'static str,
},
SetRange,
SetStyle(StyleValue),
GetI32ByKind(KindTable),
SetEnumByKind {
max: u32,
table: KindTable,
},
SetRangeByKind(KindTable),
}Expand description
What a generated object call does with its argument words. The object is always the first word, resolved (and checked against the rule’s kind) before anything else is read.
Variants§
Call
(object).
SetBool
(object, bool); a word above 1 is invalid.
SetU8
(object, u8).
SetU32
(object, u32), the word within min..=max.
SetMask
(object, u32), a word made of the bits in mask only.
GetU32
(object) -> u32.
GetBool
(object) -> bool, widened to a u32 result.
GetI32
(object) -> i32.
SetEnum
(object, u32), at most the LVGL enumeration constant max.
SetU32Limit
(object, u32), above max is a resource limit, not an invalid value.
SetText
(object, text): a string of at most the marshal constant limit
bytes, NUL included, which LVGL copies.
SetRange
(object, min, max): signed words with min < max, both within the
range limit.
SetStyle(StyleValue)
(object, value, selector): a local style property.
GetI32ByKind(KindTable)
(object) -> i32, by the object’s kind: the kind and LVGL function
pairs. Any other kind is an invalid handle.
SetEnumByKind
(object, u32), at most max, then by the object’s kind.
SetRangeByKind(KindTable)
(object, min, max) as ObjectOperation::SetRange, then by kind.
Trait Implementations§
Source§impl Clone for ObjectOperation
impl Clone for ObjectOperation
Source§fn clone(&self) -> ObjectOperation
fn clone(&self) -> ObjectOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectOperation
impl Debug for ObjectOperation
Source§impl PartialEq for ObjectOperation
impl PartialEq for ObjectOperation
Source§fn eq(&self, other: &ObjectOperation) -> bool
fn eq(&self, other: &ObjectOperation) -> bool
self and other values to be equal, and is used by ==.