31 _LV_STYLE_STATE_CMP_SAME,
32 _LV_STYLE_STATE_CMP_DIFF_REDRAW,
33 _LV_STYLE_STATE_CMP_DIFF_DRAW_PAD,
34 _LV_STYLE_STATE_CMP_DIFF_LAYOUT,
35} _lv_style_state_cmp_t;
37typedef uint32_t lv_style_selector_t;
41 uint32_t selector : 24;
42 uint32_t is_local : 1;
43 uint32_t is_trans : 1;
49 lv_style_selector_t selector;
75void lv_obj_add_style(
struct _lv_obj_t * obj,
lv_style_t * style, lv_style_selector_t selector);
86void lv_obj_remove_style(
struct _lv_obj_t * obj,
lv_style_t * style, lv_style_selector_t selector);
92static inline void lv_obj_remove_style_all(
struct _lv_obj_t * obj)
141 lv_style_selector_t selector);
144 lv_style_selector_t selector);
147 lv_style_selector_t selector);
199lv_state_t lv_obj_style_get_selector_state(lv_style_selector_t selector);
201lv_part_t lv_obj_style_get_selector_part(lv_style_selector_t selector);
203#include "lv_obj_style_gen.h"
205static inline void lv_obj_set_style_pad_all(
struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
207 lv_obj_set_style_pad_left(obj, value, selector);
208 lv_obj_set_style_pad_right(obj, value, selector);
209 lv_obj_set_style_pad_top(obj, value, selector);
210 lv_obj_set_style_pad_bottom(obj, value, selector);
213static inline void lv_obj_set_style_pad_hor(
struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
215 lv_obj_set_style_pad_left(obj, value, selector);
216 lv_obj_set_style_pad_right(obj, value, selector);
219static inline void lv_obj_set_style_pad_ver(
struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
221 lv_obj_set_style_pad_top(obj, value, selector);
222 lv_obj_set_style_pad_bottom(obj, value, selector);
225static inline void lv_obj_set_style_pad_gap(
struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
227 lv_obj_set_style_pad_row(obj, value, selector);
228 lv_obj_set_style_pad_column(obj, value, selector);
231static inline void lv_obj_set_style_size(
struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
233 lv_obj_set_style_width(obj, value, selector);
234 lv_obj_set_style_height(obj, value, selector);
237lv_text_align_t lv_obj_calculate_style_text_align(
const struct _lv_obj_t * obj, lv_part_t part,
const char * txt);
int32_t(* lv_anim_path_cb_t)(const struct _lv_anim_t *)
Definition lv_anim.h:46
@ LV_STATE_ANY
Definition lv_obj.h:57
@ LV_PART_ANY
Definition lv_obj.h:80
void _lv_obj_style_init(void)
void lv_obj_refresh_style(struct _lv_obj_t *obj, lv_part_t part, lv_style_prop_t prop)
void lv_obj_fade_in(struct _lv_obj_t *obj, uint32_t time, uint32_t delay)
void lv_obj_fade_out(struct _lv_obj_t *obj, uint32_t time, uint32_t delay)
bool lv_obj_remove_local_style_prop(struct _lv_obj_t *obj, lv_style_prop_t prop, lv_style_selector_t selector)
lv_style_value_t _lv_obj_style_apply_color_filter(const struct _lv_obj_t *obj, uint32_t part, lv_style_value_t v)
void lv_obj_set_local_style_prop(struct _lv_obj_t *obj, lv_style_prop_t prop, lv_style_value_t value, lv_style_selector_t selector)
lv_style_value_t lv_obj_get_style_prop(const struct _lv_obj_t *obj, lv_part_t part, lv_style_prop_t prop)
_lv_style_state_cmp_t _lv_obj_style_state_compare(struct _lv_obj_t *obj, lv_state_t state1, lv_state_t state2)
void lv_obj_report_style_change(lv_style_t *style)
void _lv_obj_style_create_transition(struct _lv_obj_t *obj, lv_part_t part, lv_state_t prev_state, lv_state_t new_state, const _lv_obj_style_transition_dsc_t *tr)
void lv_obj_enable_style_refresh(bool en)
lv_style_prop_t
Definition lv_style.h:178
Definition lv_obj_style.h:39
Definition lv_obj_style.h:46
Definition lv_style.h:318
Definition lv_style.h:167