C++ abstractions for the LVGL embedded GUI library.
More...
|
| class | Bar |
| | C++ wrapper for an LVGL progress-bar widget. More...
|
| |
| class | Box |
| | C++ wrapper for a generic LVGL container object with scrolling disabled. More...
|
| |
| class | Component |
| | CRTP base class for reusable, self-contained LVGL UI components. More...
|
| |
| class | EventMixin |
| | CRTP mixin that adds type-safe LVGL event registration to widget classes. More...
|
| |
| class | Label |
| | C++ wrapper for an LVGL label widget. More...
|
| |
| class | LvglGuard |
| | RAII scoped lock for thread-safe access to the LVGL rendering context. More...
|
| |
| class | ObjectMixin |
| | CRTP mixin that adds fluent layout and visibility setters to widget classes. More...
|
| |
| class | ObjectView |
| | Non-owning, pointer-sized wrapper around an lv_obj_t*. More...
|
| |
| class | Style |
| | RAII wrapper around an lv_style_t object. More...
|
| |
| class | StyleMixin |
| | CRTP mixin that adds inline per-object style setters to widget classes. More...
|
| |
|
| Box | vbox (ObjectView parent) |
| | Creates a vertical flex container (LV_FLEX_FLOW_COLUMN) sized to its content.
|
| |
| Box | hbox (ObjectView parent) |
| | Creates a horizontal flex container (LV_FLEX_FLOW_ROW) sized to its content.
|
| |
C++ abstractions for the LVGL embedded GUI library.
This namespace provides:
LvglGuard — RAII lock for thread-safe LVGL access.
ObjectView — lightweight, non-owning wrapper around lv_obj_t*.
- CRTP mixin templates (
ObjectMixin, EventMixin, StyleMixin) that add fluent setter chains to concrete widget types.
Style — RAII wrapper for lv_style_t.
State<T> — reactive integer state backed by the LVGL observer (requires LV_USE_OBSERVER).
- Concrete widget wrappers:
Label, Bar, Box.
- Layout helper functions:
vbox(), hbox().
Component<Derived> — CRTP base for reusable UI components.
- Note
- All methods that modify LVGL objects must be called from the LVGL task context or while holding the
LvglGuard lock.
◆ vbox()
Creates a vertical flex container (LV_FLEX_FLOW_COLUMN) sized to its content.
- Parameters
-
- Returns
- A
Box configured as a vertical flex container.
◆ hbox()
Creates a horizontal flex container (LV_FLEX_FLOW_ROW) sized to its content.
- Parameters
-
- Returns
- A
Box configured as a horizontal flex container.