mikroSDK Reference Manual
lv_theme.h
Go to the documentation of this file.
1
6#ifndef LV_THEME_H
7#define LV_THEME_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16#include "../core/lv_obj.h"
17
18/*********************
19 * DEFINES
20 *********************/
21
22/**********************
23 * TYPEDEFS
24 **********************/
25
26struct _lv_theme_t;
27struct _lv_disp_t;
28
29typedef void (*lv_theme_apply_cb_t)(struct _lv_theme_t *, lv_obj_t *);
30
31typedef struct _lv_theme_t {
32 lv_theme_apply_cb_t apply_cb;
34 void * user_data;
35 struct _lv_disp_t * disp;
36 lv_color_t color_primary;
37 lv_color_t color_secondary;
38 const lv_font_t * font_small;
39 const lv_font_t * font_normal;
40 const lv_font_t * font_large;
41 uint32_t flags; /*Any custom flag used by the theme*/
43
44/**********************
45 * GLOBAL PROTOTYPES
46 **********************/
47
54
60
68void lv_theme_set_parent(lv_theme_t * new_theme, lv_theme_t * parent);
69
76void lv_theme_set_apply_cb(lv_theme_t * theme, lv_theme_apply_cb_t apply_cb);
77
90
97
104
111
112/**********************
113 * MACROS
114 **********************/
115
116#ifdef __cplusplus
117} /*extern "C"*/
118#endif
119
120#endif /*LV_THEME_H*/
lv_color_t lv_theme_get_color_primary(lv_obj_t *obj)
void lv_theme_apply(lv_obj_t *obj)
lv_theme_t * lv_theme_get_from_obj(lv_obj_t *obj)
void lv_theme_set_parent(lv_theme_t *new_theme, lv_theme_t *parent)
void lv_theme_set_apply_cb(lv_theme_t *theme, lv_theme_apply_cb_t apply_cb)
const lv_font_t * lv_theme_get_font_normal(lv_obj_t *obj)
const lv_font_t * lv_theme_get_font_small(lv_obj_t *obj)
lv_color_t lv_theme_get_color_secondary(lv_obj_t *obj)
const lv_font_t * lv_theme_get_font_large(lv_obj_t *obj)
Definition lv_hal_disp.h:158
Definition lv_font.h:64
Definition lv_obj.h:174
Definition lv_theme.h:31
struct _lv_theme_t * parent
Definition lv_theme.h:33