pub struct Group { /* private fields */ }Expand description
RAII wrapper for an LVGL input focus group (lv_group_t).
Groups route keyboard/encoder/button events to a focused member
widget. Essential for non-touch targets. Create a group, add widgets
via Group::add, then wire it to an input device via the
backend-specific indev registration (outside this crate).
Dropping the Group deletes the underlying lv_group_t.
Implementations§
Source§impl Group
impl Group
Sourcepub fn set_as_default(&self) -> &Self
pub fn set_as_default(&self) -> &Self
Fluent: mark this group as the default.
Sourcepub fn add(&self, obj: impl Widget) -> &Self
pub fn add(&self, obj: impl Widget) -> &Self
Fluent: add a widget to the group’s focusable list.
Sourcepub fn remove_all(&self) -> &Self
pub fn remove_all(&self) -> &Self
Fluent: remove all widgets from this group.
Sourcepub fn focus_next(&self) -> &Self
pub fn focus_next(&self) -> &Self
Fluent: move focus to the next member.
Sourcepub fn focus_prev(&self) -> &Self
pub fn focus_prev(&self) -> &Self
Fluent: move focus to the previous member.
Sourcepub fn focus_freeze(&self, freeze: bool) -> &Self
pub fn focus_freeze(&self, freeze: bool) -> &Self
Fluent: freeze/unfreeze focus movement.
Sourcepub fn focused(&self) -> Option<Obj>
pub fn focused(&self) -> Option<Obj>
Returns the currently focused widget as an Obj handle, or
None if the group is empty.
Sourcepub fn is_editing(&self) -> bool
pub fn is_editing(&self) -> bool
Returns the current edit-mode flag.
Sourcepub fn remove_obj(obj: impl Widget)
pub fn remove_obj(obj: impl Widget)
Static helper: remove a widget from whatever group it’s in.