|
| Derived & | bg_color (lv_color_t c) |
| | Sets the background color of the object.
|
| |
| Derived & | bg_opa (lv_opa_t opa) |
| | Sets the background opacity.
|
| |
| Derived & | border_color (lv_color_t c) |
| | Sets the border color.
|
| |
| Derived & | border_width (int32_t w) |
| | Sets the border width in pixels.
|
| |
| Derived & | radius (int32_t r) |
| | Sets the corner radius.
|
| |
| Derived & | pad_all (int32_t p) |
| | Sets uniform padding on all four sides.
|
| |
| Derived & | pad_hor (int32_t p) |
| | Sets horizontal (left + right) padding.
|
| |
| Derived & | pad_ver (int32_t p) |
| | Sets vertical (top + bottom) padding.
|
| |
| Derived & | pad_gap (int32_t g) |
| | Sets the gap between children in flex/grid layouts.
|
| |
| Derived & | text_color (lv_color_t c) |
| | Sets the text color.
|
| |
| Derived & | text_font (const lv_font_t *f) |
| | Sets the font used to render text.
|
| |
template<typename Derived>
class ove::lvgl::StyleMixin< Derived >
CRTP mixin that adds inline per-object style setters to widget classes.
Each method applies a single style property directly to the LV_PART_MAIN part of the underlying LVGL object and returns Derived & to support method chaining. These are convenience wrappers around the LVGL lv_obj_set_style_* family of functions.
- Template Parameters
-
| Derived | The concrete widget class inheriting this mixin. Must expose a get() method returning lv_obj_t*. |