pub struct UiElement {Show 28 fields
pub id: u32,
pub parent_id: Option<u32>,
pub role: String,
pub semantic_role: Option<&'static str>,
pub name: Option<String>,
pub text: Option<String>,
pub hidden: bool,
pub disabled: bool,
pub focused: bool,
pub clickable: bool,
pub checked: Option<bool>,
pub bounds: (i32, i32, i32, i32),
pub visible: bool,
pub clipped_bounds: Option<(i32, i32, i32, i32)>,
pub layer: &'static str,
pub redacted: bool,
pub text_truncated: bool,
pub name_truncated: bool,
pub state: u32,
pub scroll: (i32, i32),
pub value: Option<i32>,
pub range: Option<(i32, i32)>,
pub selected: Option<u32>,
pub selected_text: Option<String>,
pub selected_text_truncated: bool,
pub style: UiStyle,
pub buttons: Vec<UiButton>,
pub buttons_truncated: bool,
}Expand description
A bounded, pointer-free description of one LVGL object.
Fields§
§id: u32Position in the depth-first snapshot, valid only for that snapshot.
parent_id: Option<u32>§role: StringLVGL class name, retained for compatibility and custom widgets.
semantic_role: Option<&'static str>Semantic role for supported widgets; absent for unknown classes.
name: Option<String>Direct label or placeholder, capped to 128 input bytes.
text: Option<String>Raw text from labels and text areas, as in the original snapshot API.
The object or an ancestor is marked hidden (independent of clipping).
disabled: boolThe object is marked disabled by LVGL.
focused: bool§clickable: boolLVGL clickable flag, not a guarantee that the object can be hit.
checked: Option<bool>§bounds: (i32, i32, i32, i32)Inclusive screen coordinates (x1, y1, x2, y2).
visible: boolGeometry/hidden/opacity visibility, not a promise of being unoccluded.
clipped_bounds: Option<(i32, i32, i32, i32)>§layer: &'static str§redacted: bool§text_truncated: bool§name_truncated: bool§state: u32§scroll: (i32, i32)§value: Option<i32>§range: Option<(i32, i32)>§selected: Option<u32>§selected_text: Option<String>§selected_text_truncated: bool§style: UiStyleTrait Implementations§
impl Eq for UiElement
impl StructuralPartialEq for UiElement
Auto Trait Implementations§
impl Freeze for UiElement
impl RefUnwindSafe for UiElement
impl Send for UiElement
impl Sync for UiElement
impl Unpin for UiElement
impl UnsafeUnpin for UiElement
impl UnwindSafe for UiElement
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