oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
Classes | Functions
ove::lvgl Namespace Reference

C++ abstractions for the LVGL embedded GUI library. More...

Classes

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...
 

Functions

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.
 

Detailed Description

C++ abstractions for the LVGL embedded GUI library.

This namespace provides:

Note
All methods that modify LVGL objects must be called from the LVGL task context or while holding the LvglGuard lock.

Function Documentation

◆ vbox()

Box ove::lvgl::vbox ( ObjectView  parent)
inline

Creates a vertical flex container (LV_FLEX_FLOW_COLUMN) sized to its content.

Parameters
[in]parentThe parent ObjectView.
Returns
A Box configured as a vertical flex container.

◆ hbox()

Box ove::lvgl::hbox ( ObjectView  parent)
inline

Creates a horizontal flex container (LV_FLEX_FLOW_ROW) sized to its content.

Parameters
[in]parentThe parent ObjectView.
Returns
A Box configured as a horizontal flex container.