oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
Loading...
Searching...
No Matches
Classes | Functions
LVGL Style & State

Style objects and reactive State<T>. More...

Classes

class  ove::lvgl::Style
 RAII wrapper around an lv_style_t object. More...
 

Functions

Derived & ove::lvgl::ObjectMixin< Derived >::add_style (Style &style, lv_style_selector_t selector)
 Applies a reusable Style to this object for the given selector.
 

Detailed Description

Style objects and reactive State<T>.

Function Documentation

◆ add_style()

template<typename Derived >
Derived & ove::lvgl::ObjectMixin< Derived >::add_style ( Style style,
lv_style_selector_t  selector 
)

Applies a reusable Style to this object for the given selector.

Parameters
[in]styleThe style to add (its data is referenced, not copied).
[in]selectorPart/state selector (e.g. LV_PART_MAIN).
Returns
Reference to the derived object for method chaining.
Note
Defined out-of-line below, after Style is a complete type.