lv_obj_get_style_width(const struct _lv_obj_t * obj,uint32_t part)1 static inline lv_coord_t lv_obj_get_style_width(const struct _lv_obj_t * obj, uint32_t part)
2 {
3     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_WIDTH);
4     return (lv_coord_t)v.num;
5 }
6 
lv_obj_get_style_min_width(const struct _lv_obj_t * obj,uint32_t part)7 static inline lv_coord_t lv_obj_get_style_min_width(const struct _lv_obj_t * obj, uint32_t part)
8 {
9     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_WIDTH);
10     return (lv_coord_t)v.num;
11 }
12 
lv_obj_get_style_max_width(const struct _lv_obj_t * obj,uint32_t part)13 static inline lv_coord_t lv_obj_get_style_max_width(const struct _lv_obj_t * obj, uint32_t part)
14 {
15     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MAX_WIDTH);
16     return (lv_coord_t)v.num;
17 }
18 
lv_obj_get_style_height(const struct _lv_obj_t * obj,uint32_t part)19 static inline lv_coord_t lv_obj_get_style_height(const struct _lv_obj_t * obj, uint32_t part)
20 {
21     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_HEIGHT);
22     return (lv_coord_t)v.num;
23 }
24 
lv_obj_get_style_min_height(const struct _lv_obj_t * obj,uint32_t part)25 static inline lv_coord_t lv_obj_get_style_min_height(const struct _lv_obj_t * obj, uint32_t part)
26 {
27     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_HEIGHT);
28     return (lv_coord_t)v.num;
29 }
30 
lv_obj_get_style_max_height(const struct _lv_obj_t * obj,uint32_t part)31 static inline lv_coord_t lv_obj_get_style_max_height(const struct _lv_obj_t * obj, uint32_t part)
32 {
33     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MAX_HEIGHT);
34     return (lv_coord_t)v.num;
35 }
36 
lv_obj_get_style_x(const struct _lv_obj_t * obj,uint32_t part)37 static inline lv_coord_t lv_obj_get_style_x(const struct _lv_obj_t * obj, uint32_t part)
38 {
39     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_X);
40     return (lv_coord_t)v.num;
41 }
42 
lv_obj_get_style_y(const struct _lv_obj_t * obj,uint32_t part)43 static inline lv_coord_t lv_obj_get_style_y(const struct _lv_obj_t * obj, uint32_t part)
44 {
45     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_Y);
46     return (lv_coord_t)v.num;
47 }
48 
lv_obj_get_style_align(const struct _lv_obj_t * obj,uint32_t part)49 static inline lv_align_t lv_obj_get_style_align(const struct _lv_obj_t * obj, uint32_t part)
50 {
51     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ALIGN);
52     return (lv_align_t)v.num;
53 }
54 
lv_obj_get_style_transform_width(const struct _lv_obj_t * obj,uint32_t part)55 static inline lv_coord_t lv_obj_get_style_transform_width(const struct _lv_obj_t * obj, uint32_t part)
56 {
57     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSFORM_WIDTH);
58     return (lv_coord_t)v.num;
59 }
60 
lv_obj_get_style_transform_height(const struct _lv_obj_t * obj,uint32_t part)61 static inline lv_coord_t lv_obj_get_style_transform_height(const struct _lv_obj_t * obj, uint32_t part)
62 {
63     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSFORM_HEIGHT);
64     return (lv_coord_t)v.num;
65 }
66 
lv_obj_get_style_translate_x(const struct _lv_obj_t * obj,uint32_t part)67 static inline lv_coord_t lv_obj_get_style_translate_x(const struct _lv_obj_t * obj, uint32_t part)
68 {
69     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSLATE_X);
70     return (lv_coord_t)v.num;
71 }
72 
lv_obj_get_style_translate_y(const struct _lv_obj_t * obj,uint32_t part)73 static inline lv_coord_t lv_obj_get_style_translate_y(const struct _lv_obj_t * obj, uint32_t part)
74 {
75     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSLATE_Y);
76     return (lv_coord_t)v.num;
77 }
78 
lv_obj_get_style_transform_zoom(const struct _lv_obj_t * obj,uint32_t part)79 static inline lv_coord_t lv_obj_get_style_transform_zoom(const struct _lv_obj_t * obj, uint32_t part)
80 {
81     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSFORM_ZOOM);
82     return (lv_coord_t)v.num;
83 }
84 
lv_obj_get_style_transform_angle(const struct _lv_obj_t * obj,uint32_t part)85 static inline lv_coord_t lv_obj_get_style_transform_angle(const struct _lv_obj_t * obj, uint32_t part)
86 {
87     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSFORM_ANGLE);
88     return (lv_coord_t)v.num;
89 }
90 
lv_obj_get_style_transform_pivot_x(const struct _lv_obj_t * obj,uint32_t part)91 static inline lv_coord_t lv_obj_get_style_transform_pivot_x(const struct _lv_obj_t * obj, uint32_t part)
92 {
93     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSFORM_PIVOT_X);
94     return (lv_coord_t)v.num;
95 }
96 
lv_obj_get_style_transform_pivot_y(const struct _lv_obj_t * obj,uint32_t part)97 static inline lv_coord_t lv_obj_get_style_transform_pivot_y(const struct _lv_obj_t * obj, uint32_t part)
98 {
99     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSFORM_PIVOT_Y);
100     return (lv_coord_t)v.num;
101 }
102 
lv_obj_get_style_pad_top(const struct _lv_obj_t * obj,uint32_t part)103 static inline lv_coord_t lv_obj_get_style_pad_top(const struct _lv_obj_t * obj, uint32_t part)
104 {
105     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_PAD_TOP);
106     return (lv_coord_t)v.num;
107 }
108 
lv_obj_get_style_pad_bottom(const struct _lv_obj_t * obj,uint32_t part)109 static inline lv_coord_t lv_obj_get_style_pad_bottom(const struct _lv_obj_t * obj, uint32_t part)
110 {
111     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_PAD_BOTTOM);
112     return (lv_coord_t)v.num;
113 }
114 
lv_obj_get_style_pad_left(const struct _lv_obj_t * obj,uint32_t part)115 static inline lv_coord_t lv_obj_get_style_pad_left(const struct _lv_obj_t * obj, uint32_t part)
116 {
117     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_PAD_LEFT);
118     return (lv_coord_t)v.num;
119 }
120 
lv_obj_get_style_pad_right(const struct _lv_obj_t * obj,uint32_t part)121 static inline lv_coord_t lv_obj_get_style_pad_right(const struct _lv_obj_t * obj, uint32_t part)
122 {
123     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_PAD_RIGHT);
124     return (lv_coord_t)v.num;
125 }
126 
lv_obj_get_style_pad_row(const struct _lv_obj_t * obj,uint32_t part)127 static inline lv_coord_t lv_obj_get_style_pad_row(const struct _lv_obj_t * obj, uint32_t part)
128 {
129     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_PAD_ROW);
130     return (lv_coord_t)v.num;
131 }
132 
lv_obj_get_style_pad_column(const struct _lv_obj_t * obj,uint32_t part)133 static inline lv_coord_t lv_obj_get_style_pad_column(const struct _lv_obj_t * obj, uint32_t part)
134 {
135     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_PAD_COLUMN);
136     return (lv_coord_t)v.num;
137 }
138 
lv_obj_get_style_bg_color(const struct _lv_obj_t * obj,uint32_t part)139 static inline lv_color_t lv_obj_get_style_bg_color(const struct _lv_obj_t * obj, uint32_t part)
140 {
141     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_COLOR);
142     return v.color;
143 }
144 
lv_obj_get_style_bg_color_filtered(const struct _lv_obj_t * obj,uint32_t part)145 static inline lv_color_t lv_obj_get_style_bg_color_filtered(const struct _lv_obj_t * obj, uint32_t part)
146 {
147     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_BG_COLOR));
148     return v.color;
149 }
150 
lv_obj_get_style_bg_opa(const struct _lv_obj_t * obj,uint32_t part)151 static inline lv_opa_t lv_obj_get_style_bg_opa(const struct _lv_obj_t * obj, uint32_t part)
152 {
153     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_OPA);
154     return (lv_opa_t)v.num;
155 }
156 
lv_obj_get_style_bg_grad_color(const struct _lv_obj_t * obj,uint32_t part)157 static inline lv_color_t lv_obj_get_style_bg_grad_color(const struct _lv_obj_t * obj, uint32_t part)
158 {
159     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_GRAD_COLOR);
160     return v.color;
161 }
162 
lv_obj_get_style_bg_grad_color_filtered(const struct _lv_obj_t * obj,uint32_t part)163 static inline lv_color_t lv_obj_get_style_bg_grad_color_filtered(const struct _lv_obj_t * obj, uint32_t part)
164 {
165     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_BG_GRAD_COLOR));
166     return v.color;
167 }
168 
lv_obj_get_style_bg_grad_dir(const struct _lv_obj_t * obj,uint32_t part)169 static inline lv_grad_dir_t lv_obj_get_style_bg_grad_dir(const struct _lv_obj_t * obj, uint32_t part)
170 {
171     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_GRAD_DIR);
172     return (lv_grad_dir_t)v.num;
173 }
174 
lv_obj_get_style_bg_main_stop(const struct _lv_obj_t * obj,uint32_t part)175 static inline lv_coord_t lv_obj_get_style_bg_main_stop(const struct _lv_obj_t * obj, uint32_t part)
176 {
177     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_MAIN_STOP);
178     return (lv_coord_t)v.num;
179 }
180 
lv_obj_get_style_bg_grad_stop(const struct _lv_obj_t * obj,uint32_t part)181 static inline lv_coord_t lv_obj_get_style_bg_grad_stop(const struct _lv_obj_t * obj, uint32_t part)
182 {
183     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_GRAD_STOP);
184     return (lv_coord_t)v.num;
185 }
186 
lv_obj_get_style_bg_grad(const struct _lv_obj_t * obj,uint32_t part)187 static inline const lv_grad_dsc_t * lv_obj_get_style_bg_grad(const struct _lv_obj_t * obj, uint32_t part)
188 {
189     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_GRAD);
190     return (const lv_grad_dsc_t *)v.ptr;
191 }
192 
lv_obj_get_style_bg_dither_mode(const struct _lv_obj_t * obj,uint32_t part)193 static inline lv_dither_mode_t lv_obj_get_style_bg_dither_mode(const struct _lv_obj_t * obj, uint32_t part)
194 {
195     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_DITHER_MODE);
196     return (lv_dither_mode_t)v.num;
197 }
198 
lv_obj_get_style_bg_img_src(const struct _lv_obj_t * obj,uint32_t part)199 static inline const void * lv_obj_get_style_bg_img_src(const struct _lv_obj_t * obj, uint32_t part)
200 {
201     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_IMG_SRC);
202     return (const void *)v.ptr;
203 }
204 
lv_obj_get_style_bg_img_opa(const struct _lv_obj_t * obj,uint32_t part)205 static inline lv_opa_t lv_obj_get_style_bg_img_opa(const struct _lv_obj_t * obj, uint32_t part)
206 {
207     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_IMG_OPA);
208     return (lv_opa_t)v.num;
209 }
210 
lv_obj_get_style_bg_img_recolor(const struct _lv_obj_t * obj,uint32_t part)211 static inline lv_color_t lv_obj_get_style_bg_img_recolor(const struct _lv_obj_t * obj, uint32_t part)
212 {
213     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_IMG_RECOLOR);
214     return v.color;
215 }
216 
lv_obj_get_style_bg_img_recolor_filtered(const struct _lv_obj_t * obj,uint32_t part)217 static inline lv_color_t lv_obj_get_style_bg_img_recolor_filtered(const struct _lv_obj_t * obj, uint32_t part)
218 {
219     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_BG_IMG_RECOLOR));
220     return v.color;
221 }
222 
lv_obj_get_style_bg_img_recolor_opa(const struct _lv_obj_t * obj,uint32_t part)223 static inline lv_opa_t lv_obj_get_style_bg_img_recolor_opa(const struct _lv_obj_t * obj, uint32_t part)
224 {
225     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_IMG_RECOLOR_OPA);
226     return (lv_opa_t)v.num;
227 }
228 
lv_obj_get_style_bg_img_tiled(const struct _lv_obj_t * obj,uint32_t part)229 static inline bool lv_obj_get_style_bg_img_tiled(const struct _lv_obj_t * obj, uint32_t part)
230 {
231     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_IMG_TILED);
232     return (bool)v.num;
233 }
234 
lv_obj_get_style_border_color(const struct _lv_obj_t * obj,uint32_t part)235 static inline lv_color_t lv_obj_get_style_border_color(const struct _lv_obj_t * obj, uint32_t part)
236 {
237     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BORDER_COLOR);
238     return v.color;
239 }
240 
lv_obj_get_style_border_color_filtered(const struct _lv_obj_t * obj,uint32_t part)241 static inline lv_color_t lv_obj_get_style_border_color_filtered(const struct _lv_obj_t * obj, uint32_t part)
242 {
243     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_BORDER_COLOR));
244     return v.color;
245 }
246 
lv_obj_get_style_border_opa(const struct _lv_obj_t * obj,uint32_t part)247 static inline lv_opa_t lv_obj_get_style_border_opa(const struct _lv_obj_t * obj, uint32_t part)
248 {
249     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BORDER_OPA);
250     return (lv_opa_t)v.num;
251 }
252 
lv_obj_get_style_border_width(const struct _lv_obj_t * obj,uint32_t part)253 static inline lv_coord_t lv_obj_get_style_border_width(const struct _lv_obj_t * obj, uint32_t part)
254 {
255     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BORDER_WIDTH);
256     return (lv_coord_t)v.num;
257 }
258 
lv_obj_get_style_border_side(const struct _lv_obj_t * obj,uint32_t part)259 static inline lv_border_side_t lv_obj_get_style_border_side(const struct _lv_obj_t * obj, uint32_t part)
260 {
261     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BORDER_SIDE);
262     return (lv_border_side_t)v.num;
263 }
264 
lv_obj_get_style_border_post(const struct _lv_obj_t * obj,uint32_t part)265 static inline bool lv_obj_get_style_border_post(const struct _lv_obj_t * obj, uint32_t part)
266 {
267     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BORDER_POST);
268     return (bool)v.num;
269 }
270 
lv_obj_get_style_outline_width(const struct _lv_obj_t * obj,uint32_t part)271 static inline lv_coord_t lv_obj_get_style_outline_width(const struct _lv_obj_t * obj, uint32_t part)
272 {
273     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_OUTLINE_WIDTH);
274     return (lv_coord_t)v.num;
275 }
276 
lv_obj_get_style_outline_color(const struct _lv_obj_t * obj,uint32_t part)277 static inline lv_color_t lv_obj_get_style_outline_color(const struct _lv_obj_t * obj, uint32_t part)
278 {
279     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_OUTLINE_COLOR);
280     return v.color;
281 }
282 
lv_obj_get_style_outline_color_filtered(const struct _lv_obj_t * obj,uint32_t part)283 static inline lv_color_t lv_obj_get_style_outline_color_filtered(const struct _lv_obj_t * obj, uint32_t part)
284 {
285     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_OUTLINE_COLOR));
286     return v.color;
287 }
288 
lv_obj_get_style_outline_opa(const struct _lv_obj_t * obj,uint32_t part)289 static inline lv_opa_t lv_obj_get_style_outline_opa(const struct _lv_obj_t * obj, uint32_t part)
290 {
291     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_OUTLINE_OPA);
292     return (lv_opa_t)v.num;
293 }
294 
lv_obj_get_style_outline_pad(const struct _lv_obj_t * obj,uint32_t part)295 static inline lv_coord_t lv_obj_get_style_outline_pad(const struct _lv_obj_t * obj, uint32_t part)
296 {
297     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_OUTLINE_PAD);
298     return (lv_coord_t)v.num;
299 }
300 
lv_obj_get_style_shadow_width(const struct _lv_obj_t * obj,uint32_t part)301 static inline lv_coord_t lv_obj_get_style_shadow_width(const struct _lv_obj_t * obj, uint32_t part)
302 {
303     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_SHADOW_WIDTH);
304     return (lv_coord_t)v.num;
305 }
306 
lv_obj_get_style_shadow_ofs_x(const struct _lv_obj_t * obj,uint32_t part)307 static inline lv_coord_t lv_obj_get_style_shadow_ofs_x(const struct _lv_obj_t * obj, uint32_t part)
308 {
309     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_SHADOW_OFS_X);
310     return (lv_coord_t)v.num;
311 }
312 
lv_obj_get_style_shadow_ofs_y(const struct _lv_obj_t * obj,uint32_t part)313 static inline lv_coord_t lv_obj_get_style_shadow_ofs_y(const struct _lv_obj_t * obj, uint32_t part)
314 {
315     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_SHADOW_OFS_Y);
316     return (lv_coord_t)v.num;
317 }
318 
lv_obj_get_style_shadow_spread(const struct _lv_obj_t * obj,uint32_t part)319 static inline lv_coord_t lv_obj_get_style_shadow_spread(const struct _lv_obj_t * obj, uint32_t part)
320 {
321     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_SHADOW_SPREAD);
322     return (lv_coord_t)v.num;
323 }
324 
lv_obj_get_style_shadow_color(const struct _lv_obj_t * obj,uint32_t part)325 static inline lv_color_t lv_obj_get_style_shadow_color(const struct _lv_obj_t * obj, uint32_t part)
326 {
327     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_SHADOW_COLOR);
328     return v.color;
329 }
330 
lv_obj_get_style_shadow_color_filtered(const struct _lv_obj_t * obj,uint32_t part)331 static inline lv_color_t lv_obj_get_style_shadow_color_filtered(const struct _lv_obj_t * obj, uint32_t part)
332 {
333     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_SHADOW_COLOR));
334     return v.color;
335 }
336 
lv_obj_get_style_shadow_opa(const struct _lv_obj_t * obj,uint32_t part)337 static inline lv_opa_t lv_obj_get_style_shadow_opa(const struct _lv_obj_t * obj, uint32_t part)
338 {
339     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_SHADOW_OPA);
340     return (lv_opa_t)v.num;
341 }
342 
lv_obj_get_style_img_opa(const struct _lv_obj_t * obj,uint32_t part)343 static inline lv_opa_t lv_obj_get_style_img_opa(const struct _lv_obj_t * obj, uint32_t part)
344 {
345     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_IMG_OPA);
346     return (lv_opa_t)v.num;
347 }
348 
lv_obj_get_style_img_recolor(const struct _lv_obj_t * obj,uint32_t part)349 static inline lv_color_t lv_obj_get_style_img_recolor(const struct _lv_obj_t * obj, uint32_t part)
350 {
351     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_IMG_RECOLOR);
352     return v.color;
353 }
354 
lv_obj_get_style_img_recolor_filtered(const struct _lv_obj_t * obj,uint32_t part)355 static inline lv_color_t lv_obj_get_style_img_recolor_filtered(const struct _lv_obj_t * obj, uint32_t part)
356 {
357     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_IMG_RECOLOR));
358     return v.color;
359 }
360 
lv_obj_get_style_img_recolor_opa(const struct _lv_obj_t * obj,uint32_t part)361 static inline lv_opa_t lv_obj_get_style_img_recolor_opa(const struct _lv_obj_t * obj, uint32_t part)
362 {
363     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_IMG_RECOLOR_OPA);
364     return (lv_opa_t)v.num;
365 }
366 
lv_obj_get_style_line_width(const struct _lv_obj_t * obj,uint32_t part)367 static inline lv_coord_t lv_obj_get_style_line_width(const struct _lv_obj_t * obj, uint32_t part)
368 {
369     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_LINE_WIDTH);
370     return (lv_coord_t)v.num;
371 }
372 
lv_obj_get_style_line_dash_width(const struct _lv_obj_t * obj,uint32_t part)373 static inline lv_coord_t lv_obj_get_style_line_dash_width(const struct _lv_obj_t * obj, uint32_t part)
374 {
375     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_LINE_DASH_WIDTH);
376     return (lv_coord_t)v.num;
377 }
378 
lv_obj_get_style_line_dash_gap(const struct _lv_obj_t * obj,uint32_t part)379 static inline lv_coord_t lv_obj_get_style_line_dash_gap(const struct _lv_obj_t * obj, uint32_t part)
380 {
381     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_LINE_DASH_GAP);
382     return (lv_coord_t)v.num;
383 }
384 
lv_obj_get_style_line_rounded(const struct _lv_obj_t * obj,uint32_t part)385 static inline bool lv_obj_get_style_line_rounded(const struct _lv_obj_t * obj, uint32_t part)
386 {
387     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_LINE_ROUNDED);
388     return (bool)v.num;
389 }
390 
lv_obj_get_style_line_color(const struct _lv_obj_t * obj,uint32_t part)391 static inline lv_color_t lv_obj_get_style_line_color(const struct _lv_obj_t * obj, uint32_t part)
392 {
393     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_LINE_COLOR);
394     return v.color;
395 }
396 
lv_obj_get_style_line_color_filtered(const struct _lv_obj_t * obj,uint32_t part)397 static inline lv_color_t lv_obj_get_style_line_color_filtered(const struct _lv_obj_t * obj, uint32_t part)
398 {
399     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_LINE_COLOR));
400     return v.color;
401 }
402 
lv_obj_get_style_line_opa(const struct _lv_obj_t * obj,uint32_t part)403 static inline lv_opa_t lv_obj_get_style_line_opa(const struct _lv_obj_t * obj, uint32_t part)
404 {
405     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_LINE_OPA);
406     return (lv_opa_t)v.num;
407 }
408 
lv_obj_get_style_arc_width(const struct _lv_obj_t * obj,uint32_t part)409 static inline lv_coord_t lv_obj_get_style_arc_width(const struct _lv_obj_t * obj, uint32_t part)
410 {
411     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ARC_WIDTH);
412     return (lv_coord_t)v.num;
413 }
414 
lv_obj_get_style_arc_rounded(const struct _lv_obj_t * obj,uint32_t part)415 static inline bool lv_obj_get_style_arc_rounded(const struct _lv_obj_t * obj, uint32_t part)
416 {
417     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ARC_ROUNDED);
418     return (bool)v.num;
419 }
420 
lv_obj_get_style_arc_color(const struct _lv_obj_t * obj,uint32_t part)421 static inline lv_color_t lv_obj_get_style_arc_color(const struct _lv_obj_t * obj, uint32_t part)
422 {
423     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ARC_COLOR);
424     return v.color;
425 }
426 
lv_obj_get_style_arc_color_filtered(const struct _lv_obj_t * obj,uint32_t part)427 static inline lv_color_t lv_obj_get_style_arc_color_filtered(const struct _lv_obj_t * obj, uint32_t part)
428 {
429     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_ARC_COLOR));
430     return v.color;
431 }
432 
lv_obj_get_style_arc_opa(const struct _lv_obj_t * obj,uint32_t part)433 static inline lv_opa_t lv_obj_get_style_arc_opa(const struct _lv_obj_t * obj, uint32_t part)
434 {
435     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ARC_OPA);
436     return (lv_opa_t)v.num;
437 }
438 
lv_obj_get_style_arc_img_src(const struct _lv_obj_t * obj,uint32_t part)439 static inline const void * lv_obj_get_style_arc_img_src(const struct _lv_obj_t * obj, uint32_t part)
440 {
441     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ARC_IMG_SRC);
442     return (const void *)v.ptr;
443 }
444 
lv_obj_get_style_text_color(const struct _lv_obj_t * obj,uint32_t part)445 static inline lv_color_t lv_obj_get_style_text_color(const struct _lv_obj_t * obj, uint32_t part)
446 {
447     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TEXT_COLOR);
448     return v.color;
449 }
450 
lv_obj_get_style_text_color_filtered(const struct _lv_obj_t * obj,uint32_t part)451 static inline lv_color_t lv_obj_get_style_text_color_filtered(const struct _lv_obj_t * obj, uint32_t part)
452 {
453     lv_style_value_t v = _lv_obj_style_apply_color_filter(obj, part, lv_obj_get_style_prop(obj, part, LV_STYLE_TEXT_COLOR));
454     return v.color;
455 }
456 
lv_obj_get_style_text_opa(const struct _lv_obj_t * obj,uint32_t part)457 static inline lv_opa_t lv_obj_get_style_text_opa(const struct _lv_obj_t * obj, uint32_t part)
458 {
459     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TEXT_OPA);
460     return (lv_opa_t)v.num;
461 }
462 
lv_obj_get_style_text_font(const struct _lv_obj_t * obj,uint32_t part)463 static inline const lv_font_t * lv_obj_get_style_text_font(const struct _lv_obj_t * obj, uint32_t part)
464 {
465     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TEXT_FONT);
466     return (const lv_font_t *)v.ptr;
467 }
468 
lv_obj_get_style_text_letter_space(const struct _lv_obj_t * obj,uint32_t part)469 static inline lv_coord_t lv_obj_get_style_text_letter_space(const struct _lv_obj_t * obj, uint32_t part)
470 {
471     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TEXT_LETTER_SPACE);
472     return (lv_coord_t)v.num;
473 }
474 
lv_obj_get_style_text_line_space(const struct _lv_obj_t * obj,uint32_t part)475 static inline lv_coord_t lv_obj_get_style_text_line_space(const struct _lv_obj_t * obj, uint32_t part)
476 {
477     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TEXT_LINE_SPACE);
478     return (lv_coord_t)v.num;
479 }
480 
lv_obj_get_style_text_decor(const struct _lv_obj_t * obj,uint32_t part)481 static inline lv_text_decor_t lv_obj_get_style_text_decor(const struct _lv_obj_t * obj, uint32_t part)
482 {
483     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TEXT_DECOR);
484     return (lv_text_decor_t)v.num;
485 }
486 
lv_obj_get_style_text_align(const struct _lv_obj_t * obj,uint32_t part)487 static inline lv_text_align_t lv_obj_get_style_text_align(const struct _lv_obj_t * obj, uint32_t part)
488 {
489     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TEXT_ALIGN);
490     return (lv_text_align_t)v.num;
491 }
492 
lv_obj_get_style_radius(const struct _lv_obj_t * obj,uint32_t part)493 static inline lv_coord_t lv_obj_get_style_radius(const struct _lv_obj_t * obj, uint32_t part)
494 {
495     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_RADIUS);
496     return (lv_coord_t)v.num;
497 }
498 
lv_obj_get_style_clip_corner(const struct _lv_obj_t * obj,uint32_t part)499 static inline bool lv_obj_get_style_clip_corner(const struct _lv_obj_t * obj, uint32_t part)
500 {
501     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_CLIP_CORNER);
502     return (bool)v.num;
503 }
504 
lv_obj_get_style_opa(const struct _lv_obj_t * obj,uint32_t part)505 static inline lv_opa_t lv_obj_get_style_opa(const struct _lv_obj_t * obj, uint32_t part)
506 {
507     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_OPA);
508     return (lv_opa_t)v.num;
509 }
510 
lv_obj_get_style_opa_layered(const struct _lv_obj_t * obj,uint32_t part)511 static inline lv_opa_t lv_obj_get_style_opa_layered(const struct _lv_obj_t * obj, uint32_t part)
512 {
513     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_OPA_LAYERED);
514     return (lv_opa_t)v.num;
515 }
516 
lv_obj_get_style_color_filter_dsc(const struct _lv_obj_t * obj,uint32_t part)517 static inline const lv_color_filter_dsc_t * lv_obj_get_style_color_filter_dsc(const struct _lv_obj_t * obj, uint32_t part)
518 {
519     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_COLOR_FILTER_DSC);
520     return (const lv_color_filter_dsc_t *)v.ptr;
521 }
522 
lv_obj_get_style_color_filter_opa(const struct _lv_obj_t * obj,uint32_t part)523 static inline lv_opa_t lv_obj_get_style_color_filter_opa(const struct _lv_obj_t * obj, uint32_t part)
524 {
525     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_COLOR_FILTER_OPA);
526     return (lv_opa_t)v.num;
527 }
528 
lv_obj_get_style_anim(const struct _lv_obj_t * obj,uint32_t part)529 static inline const lv_anim_t * lv_obj_get_style_anim(const struct _lv_obj_t * obj, uint32_t part)
530 {
531     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ANIM);
532     return (const lv_anim_t *)v.ptr;
533 }
534 
lv_obj_get_style_anim_time(const struct _lv_obj_t * obj,uint32_t part)535 static inline uint32_t lv_obj_get_style_anim_time(const struct _lv_obj_t * obj, uint32_t part)
536 {
537     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ANIM_TIME);
538     return (uint32_t)v.num;
539 }
540 
lv_obj_get_style_anim_speed(const struct _lv_obj_t * obj,uint32_t part)541 static inline uint32_t lv_obj_get_style_anim_speed(const struct _lv_obj_t * obj, uint32_t part)
542 {
543     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ANIM_SPEED);
544     return (uint32_t)v.num;
545 }
546 
lv_obj_get_style_transition(const struct _lv_obj_t * obj,uint32_t part)547 static inline const lv_style_transition_dsc_t * lv_obj_get_style_transition(const struct _lv_obj_t * obj, uint32_t part)
548 {
549     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSITION);
550     return (const lv_style_transition_dsc_t *)v.ptr;
551 }
552 
lv_obj_get_style_blend_mode(const struct _lv_obj_t * obj,uint32_t part)553 static inline lv_blend_mode_t lv_obj_get_style_blend_mode(const struct _lv_obj_t * obj, uint32_t part)
554 {
555     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BLEND_MODE);
556     return (lv_blend_mode_t)v.num;
557 }
558 
lv_obj_get_style_layout(const struct _lv_obj_t * obj,uint32_t part)559 static inline uint16_t lv_obj_get_style_layout(const struct _lv_obj_t * obj, uint32_t part)
560 {
561     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_LAYOUT);
562     return (uint16_t)v.num;
563 }
564 
lv_obj_get_style_base_dir(const struct _lv_obj_t * obj,uint32_t part)565 static inline lv_base_dir_t lv_obj_get_style_base_dir(const struct _lv_obj_t * obj, uint32_t part)
566 {
567     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BASE_DIR);
568     return (lv_base_dir_t)v.num;
569 }
570 
571 void lv_obj_set_style_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
572 void lv_obj_set_style_min_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
573 void lv_obj_set_style_max_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
574 void lv_obj_set_style_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
575 void lv_obj_set_style_min_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
576 void lv_obj_set_style_max_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
577 void lv_obj_set_style_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
578 void lv_obj_set_style_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
579 void lv_obj_set_style_align(struct _lv_obj_t * obj, lv_align_t value, lv_style_selector_t selector);
580 void lv_obj_set_style_transform_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
581 void lv_obj_set_style_transform_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
582 void lv_obj_set_style_translate_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
583 void lv_obj_set_style_translate_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
584 void lv_obj_set_style_transform_zoom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
585 void lv_obj_set_style_transform_angle(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
586 void lv_obj_set_style_transform_pivot_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
587 void lv_obj_set_style_transform_pivot_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
588 void lv_obj_set_style_pad_top(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
589 void lv_obj_set_style_pad_bottom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
590 void lv_obj_set_style_pad_left(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
591 void lv_obj_set_style_pad_right(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
592 void lv_obj_set_style_pad_row(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
593 void lv_obj_set_style_pad_column(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
594 void lv_obj_set_style_bg_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
595 void lv_obj_set_style_bg_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
596 void lv_obj_set_style_bg_grad_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
597 void lv_obj_set_style_bg_grad_dir(struct _lv_obj_t * obj, lv_grad_dir_t value, lv_style_selector_t selector);
598 void lv_obj_set_style_bg_main_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
599 void lv_obj_set_style_bg_grad_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
600 void lv_obj_set_style_bg_grad(struct _lv_obj_t * obj, const lv_grad_dsc_t * value, lv_style_selector_t selector);
601 void lv_obj_set_style_bg_dither_mode(struct _lv_obj_t * obj, lv_dither_mode_t value, lv_style_selector_t selector);
602 void lv_obj_set_style_bg_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector);
603 void lv_obj_set_style_bg_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
604 void lv_obj_set_style_bg_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
605 void lv_obj_set_style_bg_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
606 void lv_obj_set_style_bg_img_tiled(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
607 void lv_obj_set_style_border_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
608 void lv_obj_set_style_border_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
609 void lv_obj_set_style_border_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
610 void lv_obj_set_style_border_side(struct _lv_obj_t * obj, lv_border_side_t value, lv_style_selector_t selector);
611 void lv_obj_set_style_border_post(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
612 void lv_obj_set_style_outline_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
613 void lv_obj_set_style_outline_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
614 void lv_obj_set_style_outline_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
615 void lv_obj_set_style_outline_pad(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
616 void lv_obj_set_style_shadow_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
617 void lv_obj_set_style_shadow_ofs_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
618 void lv_obj_set_style_shadow_ofs_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
619 void lv_obj_set_style_shadow_spread(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
620 void lv_obj_set_style_shadow_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
621 void lv_obj_set_style_shadow_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
622 void lv_obj_set_style_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
623 void lv_obj_set_style_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
624 void lv_obj_set_style_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
625 void lv_obj_set_style_line_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
626 void lv_obj_set_style_line_dash_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
627 void lv_obj_set_style_line_dash_gap(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
628 void lv_obj_set_style_line_rounded(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
629 void lv_obj_set_style_line_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
630 void lv_obj_set_style_line_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
631 void lv_obj_set_style_arc_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
632 void lv_obj_set_style_arc_rounded(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
633 void lv_obj_set_style_arc_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
634 void lv_obj_set_style_arc_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
635 void lv_obj_set_style_arc_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector);
636 void lv_obj_set_style_text_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
637 void lv_obj_set_style_text_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
638 void lv_obj_set_style_text_font(struct _lv_obj_t * obj, const lv_font_t * value, lv_style_selector_t selector);
639 void lv_obj_set_style_text_letter_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
640 void lv_obj_set_style_text_line_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
641 void lv_obj_set_style_text_decor(struct _lv_obj_t * obj, lv_text_decor_t value, lv_style_selector_t selector);
642 void lv_obj_set_style_text_align(struct _lv_obj_t * obj, lv_text_align_t value, lv_style_selector_t selector);
643 void lv_obj_set_style_radius(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
644 void lv_obj_set_style_clip_corner(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
645 void lv_obj_set_style_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
646 void lv_obj_set_style_opa_layered(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
647 void lv_obj_set_style_color_filter_dsc(struct _lv_obj_t * obj, const lv_color_filter_dsc_t * value, lv_style_selector_t selector);
648 void lv_obj_set_style_color_filter_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
649 void lv_obj_set_style_anim(struct _lv_obj_t * obj, const lv_anim_t * value, lv_style_selector_t selector);
650 void lv_obj_set_style_anim_time(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector);
651 void lv_obj_set_style_anim_speed(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector);
652 void lv_obj_set_style_transition(struct _lv_obj_t * obj, const lv_style_transition_dsc_t * value, lv_style_selector_t selector);
653 void lv_obj_set_style_blend_mode(struct _lv_obj_t * obj, lv_blend_mode_t value, lv_style_selector_t selector);
654 void lv_obj_set_style_layout(struct _lv_obj_t * obj, uint16_t value, lv_style_selector_t selector);
655 void lv_obj_set_style_base_dir(struct _lv_obj_t * obj, lv_base_dir_t value, lv_style_selector_t selector);
656