Lines Matching refs:obj
25 static void apply_theme(lv_theme_t * th, lv_obj_t * obj);
26 static void apply_theme_recursion(lv_theme_t * th, lv_obj_t * obj);
40 lv_theme_t * lv_theme_get_from_obj(lv_obj_t * obj) in lv_theme_get_from_obj() argument
42 lv_display_t * disp = obj ? lv_obj_get_display(obj) : lv_display_get_default(); in lv_theme_get_from_obj()
46 void lv_theme_apply(lv_obj_t * obj) in lv_theme_apply() argument
48 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_apply()
51 lv_obj_remove_style_all(obj); in lv_theme_apply()
53 apply_theme_recursion(th, obj); /*Apply the theme including the base theme(s)*/ in lv_theme_apply()
66 const lv_font_t * lv_theme_get_font_small(lv_obj_t * obj) in lv_theme_get_font_small() argument
68 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_small()
72 const lv_font_t * lv_theme_get_font_normal(lv_obj_t * obj) in lv_theme_get_font_normal() argument
74 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_normal()
78 const lv_font_t * lv_theme_get_font_large(lv_obj_t * obj) in lv_theme_get_font_large() argument
80 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_font_large()
84 lv_color_t lv_theme_get_color_primary(lv_obj_t * obj) in lv_theme_get_color_primary() argument
86 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_color_primary()
90 lv_color_t lv_theme_get_color_secondary(lv_obj_t * obj) in lv_theme_get_color_secondary() argument
92 lv_theme_t * th = lv_theme_get_from_obj(obj); in lv_theme_get_color_secondary()
100 static void apply_theme(lv_theme_t * th, lv_obj_t * obj) in apply_theme() argument
102 if(th->parent) apply_theme(th->parent, obj); in apply_theme()
103 if(th->apply_cb) th->apply_cb(th, obj); in apply_theme()
106 static void apply_theme_recursion(lv_theme_t * th, lv_obj_t * obj) in apply_theme_recursion() argument
108 const lv_obj_class_t * original_class_p = obj->class_p; in apply_theme_recursion()
110 …if(obj->class_p->base_class && obj->class_p->theme_inheritable == LV_OBJ_CLASS_THEME_INHERITABLE_T… in apply_theme_recursion()
112 obj->class_p = obj->class_p->base_class; in apply_theme_recursion()
115 apply_theme_recursion(th, obj); in apply_theme_recursion()
119 obj->class_p = original_class_p; in apply_theme_recursion()
121 apply_theme(th, obj); in apply_theme_recursion()