1 #include "lv_obj.h"
2
lv_obj_set_style_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)3 void lv_obj_set_style_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
4 {
5 lv_style_value_t v = {
6 .num = (int32_t)value
7 };
8 lv_obj_set_local_style_prop(obj, LV_STYLE_WIDTH, v, selector);
9 }
10
lv_obj_set_style_min_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)11 void lv_obj_set_style_min_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
12 {
13 lv_style_value_t v = {
14 .num = (int32_t)value
15 };
16 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_WIDTH, v, selector);
17 }
18
lv_obj_set_style_max_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)19 void lv_obj_set_style_max_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
20 {
21 lv_style_value_t v = {
22 .num = (int32_t)value
23 };
24 lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_WIDTH, v, selector);
25 }
26
lv_obj_set_style_height(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)27 void lv_obj_set_style_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
28 {
29 lv_style_value_t v = {
30 .num = (int32_t)value
31 };
32 lv_obj_set_local_style_prop(obj, LV_STYLE_HEIGHT, v, selector);
33 }
34
lv_obj_set_style_min_height(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)35 void lv_obj_set_style_min_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
36 {
37 lv_style_value_t v = {
38 .num = (int32_t)value
39 };
40 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_HEIGHT, v, selector);
41 }
42
lv_obj_set_style_max_height(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)43 void lv_obj_set_style_max_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
44 {
45 lv_style_value_t v = {
46 .num = (int32_t)value
47 };
48 lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_HEIGHT, v, selector);
49 }
50
lv_obj_set_style_x(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)51 void lv_obj_set_style_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
52 {
53 lv_style_value_t v = {
54 .num = (int32_t)value
55 };
56 lv_obj_set_local_style_prop(obj, LV_STYLE_X, v, selector);
57 }
58
lv_obj_set_style_y(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)59 void lv_obj_set_style_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
60 {
61 lv_style_value_t v = {
62 .num = (int32_t)value
63 };
64 lv_obj_set_local_style_prop(obj, LV_STYLE_Y, v, selector);
65 }
66
lv_obj_set_style_align(struct _lv_obj_t * obj,lv_align_t value,lv_style_selector_t selector)67 void lv_obj_set_style_align(struct _lv_obj_t * obj, lv_align_t value, lv_style_selector_t selector)
68 {
69 lv_style_value_t v = {
70 .num = (int32_t)value
71 };
72 lv_obj_set_local_style_prop(obj, LV_STYLE_ALIGN, v, selector);
73 }
74
lv_obj_set_style_transform_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)75 void lv_obj_set_style_transform_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
76 {
77 lv_style_value_t v = {
78 .num = (int32_t)value
79 };
80 lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_WIDTH, v, selector);
81 }
82
lv_obj_set_style_transform_height(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)83 void lv_obj_set_style_transform_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
84 {
85 lv_style_value_t v = {
86 .num = (int32_t)value
87 };
88 lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_HEIGHT, v, selector);
89 }
90
lv_obj_set_style_translate_x(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)91 void lv_obj_set_style_translate_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
92 {
93 lv_style_value_t v = {
94 .num = (int32_t)value
95 };
96 lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSLATE_X, v, selector);
97 }
98
lv_obj_set_style_translate_y(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)99 void lv_obj_set_style_translate_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
100 {
101 lv_style_value_t v = {
102 .num = (int32_t)value
103 };
104 lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSLATE_Y, v, selector);
105 }
106
lv_obj_set_style_transform_zoom(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)107 void lv_obj_set_style_transform_zoom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
108 {
109 lv_style_value_t v = {
110 .num = (int32_t)value
111 };
112 lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_ZOOM, v, selector);
113 }
114
lv_obj_set_style_transform_angle(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)115 void lv_obj_set_style_transform_angle(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
116 {
117 lv_style_value_t v = {
118 .num = (int32_t)value
119 };
120 lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_ANGLE, v, selector);
121 }
122
lv_obj_set_style_pad_top(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)123 void lv_obj_set_style_pad_top(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
124 {
125 lv_style_value_t v = {
126 .num = (int32_t)value
127 };
128 lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_TOP, v, selector);
129 }
130
lv_obj_set_style_pad_bottom(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)131 void lv_obj_set_style_pad_bottom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
132 {
133 lv_style_value_t v = {
134 .num = (int32_t)value
135 };
136 lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_BOTTOM, v, selector);
137 }
138
lv_obj_set_style_pad_left(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)139 void lv_obj_set_style_pad_left(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
140 {
141 lv_style_value_t v = {
142 .num = (int32_t)value
143 };
144 lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_LEFT, v, selector);
145 }
146
lv_obj_set_style_pad_right(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)147 void lv_obj_set_style_pad_right(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
148 {
149 lv_style_value_t v = {
150 .num = (int32_t)value
151 };
152 lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_RIGHT, v, selector);
153 }
154
lv_obj_set_style_pad_row(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)155 void lv_obj_set_style_pad_row(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
156 {
157 lv_style_value_t v = {
158 .num = (int32_t)value
159 };
160 lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_ROW, v, selector);
161 }
162
lv_obj_set_style_pad_column(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)163 void lv_obj_set_style_pad_column(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
164 {
165 lv_style_value_t v = {
166 .num = (int32_t)value
167 };
168 lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_COLUMN, v, selector);
169 }
170
lv_obj_set_style_bg_color(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)171 void lv_obj_set_style_bg_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
172 {
173 lv_style_value_t v = {
174 .color = value
175 };
176 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_COLOR, v, selector);
177 }
178
lv_obj_set_style_bg_color_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)179 void lv_obj_set_style_bg_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
180 {
181 lv_style_value_t v = {
182 .color = value
183 };
184 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_COLOR_FILTERED, v, selector);
185 }
186
lv_obj_set_style_bg_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)187 void lv_obj_set_style_bg_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
188 {
189 lv_style_value_t v = {
190 .num = (int32_t)value
191 };
192 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_OPA, v, selector);
193 }
194
lv_obj_set_style_bg_grad_color(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)195 void lv_obj_set_style_bg_grad_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
196 {
197 lv_style_value_t v = {
198 .color = value
199 };
200 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_COLOR, v, selector);
201 }
202
lv_obj_set_style_bg_grad_color_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)203 void lv_obj_set_style_bg_grad_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
204 {
205 lv_style_value_t v = {
206 .color = value
207 };
208 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_COLOR_FILTERED, v, selector);
209 }
210
lv_obj_set_style_bg_grad_dir(struct _lv_obj_t * obj,lv_grad_dir_t value,lv_style_selector_t selector)211 void lv_obj_set_style_bg_grad_dir(struct _lv_obj_t * obj, lv_grad_dir_t value, lv_style_selector_t selector)
212 {
213 lv_style_value_t v = {
214 .num = (int32_t)value
215 };
216 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_DIR, v, selector);
217 }
218
lv_obj_set_style_bg_main_stop(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)219 void lv_obj_set_style_bg_main_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
220 {
221 lv_style_value_t v = {
222 .num = (int32_t)value
223 };
224 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_MAIN_STOP, v, selector);
225 }
226
lv_obj_set_style_bg_grad_stop(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)227 void lv_obj_set_style_bg_grad_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
228 {
229 lv_style_value_t v = {
230 .num = (int32_t)value
231 };
232 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_STOP, v, selector);
233 }
234
lv_obj_set_style_bg_grad(struct _lv_obj_t * obj,const lv_grad_dsc_t * value,lv_style_selector_t selector)235 void lv_obj_set_style_bg_grad(struct _lv_obj_t * obj, const lv_grad_dsc_t * value, lv_style_selector_t selector)
236 {
237 lv_style_value_t v = {
238 .ptr = value
239 };
240 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD, v, selector);
241 }
242
lv_obj_set_style_bg_dither_mode(struct _lv_obj_t * obj,lv_dither_mode_t value,lv_style_selector_t selector)243 void lv_obj_set_style_bg_dither_mode(struct _lv_obj_t * obj, lv_dither_mode_t value, lv_style_selector_t selector)
244 {
245 lv_style_value_t v = {
246 .num = (int32_t)value
247 };
248 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_DITHER_MODE, v, selector);
249 }
250
lv_obj_set_style_bg_img_src(struct _lv_obj_t * obj,const void * value,lv_style_selector_t selector)251 void lv_obj_set_style_bg_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector)
252 {
253 lv_style_value_t v = {
254 .ptr = value
255 };
256 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_SRC, v, selector);
257 }
258
lv_obj_set_style_bg_img_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)259 void lv_obj_set_style_bg_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
260 {
261 lv_style_value_t v = {
262 .num = (int32_t)value
263 };
264 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_OPA, v, selector);
265 }
266
lv_obj_set_style_bg_img_recolor(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)267 void lv_obj_set_style_bg_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
268 {
269 lv_style_value_t v = {
270 .color = value
271 };
272 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_RECOLOR, v, selector);
273 }
274
lv_obj_set_style_bg_img_recolor_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)275 void lv_obj_set_style_bg_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
276 {
277 lv_style_value_t v = {
278 .color = value
279 };
280 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_RECOLOR_FILTERED, v, selector);
281 }
282
lv_obj_set_style_bg_img_recolor_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)283 void lv_obj_set_style_bg_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
284 {
285 lv_style_value_t v = {
286 .num = (int32_t)value
287 };
288 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_RECOLOR_OPA, v, selector);
289 }
290
lv_obj_set_style_bg_img_tiled(struct _lv_obj_t * obj,bool value,lv_style_selector_t selector)291 void lv_obj_set_style_bg_img_tiled(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector)
292 {
293 lv_style_value_t v = {
294 .num = (int32_t)value
295 };
296 lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_TILED, v, selector);
297 }
298
lv_obj_set_style_border_color(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)299 void lv_obj_set_style_border_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
300 {
301 lv_style_value_t v = {
302 .color = value
303 };
304 lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_COLOR, v, selector);
305 }
306
lv_obj_set_style_border_color_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)307 void lv_obj_set_style_border_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
308 {
309 lv_style_value_t v = {
310 .color = value
311 };
312 lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_COLOR_FILTERED, v, selector);
313 }
314
lv_obj_set_style_border_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)315 void lv_obj_set_style_border_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
316 {
317 lv_style_value_t v = {
318 .num = (int32_t)value
319 };
320 lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_OPA, v, selector);
321 }
322
lv_obj_set_style_border_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)323 void lv_obj_set_style_border_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
324 {
325 lv_style_value_t v = {
326 .num = (int32_t)value
327 };
328 lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_WIDTH, v, selector);
329 }
330
lv_obj_set_style_border_side(struct _lv_obj_t * obj,lv_border_side_t value,lv_style_selector_t selector)331 void lv_obj_set_style_border_side(struct _lv_obj_t * obj, lv_border_side_t value, lv_style_selector_t selector)
332 {
333 lv_style_value_t v = {
334 .num = (int32_t)value
335 };
336 lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_SIDE, v, selector);
337 }
338
lv_obj_set_style_border_post(struct _lv_obj_t * obj,bool value,lv_style_selector_t selector)339 void lv_obj_set_style_border_post(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector)
340 {
341 lv_style_value_t v = {
342 .num = (int32_t)value
343 };
344 lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_POST, v, selector);
345 }
346
lv_obj_set_style_outline_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)347 void lv_obj_set_style_outline_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
348 {
349 lv_style_value_t v = {
350 .num = (int32_t)value
351 };
352 lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_WIDTH, v, selector);
353 }
354
lv_obj_set_style_outline_color(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)355 void lv_obj_set_style_outline_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
356 {
357 lv_style_value_t v = {
358 .color = value
359 };
360 lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_COLOR, v, selector);
361 }
362
lv_obj_set_style_outline_color_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)363 void lv_obj_set_style_outline_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
364 {
365 lv_style_value_t v = {
366 .color = value
367 };
368 lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_COLOR_FILTERED, v, selector);
369 }
370
lv_obj_set_style_outline_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)371 void lv_obj_set_style_outline_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
372 {
373 lv_style_value_t v = {
374 .num = (int32_t)value
375 };
376 lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_OPA, v, selector);
377 }
378
lv_obj_set_style_outline_pad(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)379 void lv_obj_set_style_outline_pad(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
380 {
381 lv_style_value_t v = {
382 .num = (int32_t)value
383 };
384 lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_PAD, v, selector);
385 }
386
lv_obj_set_style_shadow_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)387 void lv_obj_set_style_shadow_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
388 {
389 lv_style_value_t v = {
390 .num = (int32_t)value
391 };
392 lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_WIDTH, v, selector);
393 }
394
lv_obj_set_style_shadow_ofs_x(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)395 void lv_obj_set_style_shadow_ofs_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
396 {
397 lv_style_value_t v = {
398 .num = (int32_t)value
399 };
400 lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_OFS_X, v, selector);
401 }
402
lv_obj_set_style_shadow_ofs_y(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)403 void lv_obj_set_style_shadow_ofs_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
404 {
405 lv_style_value_t v = {
406 .num = (int32_t)value
407 };
408 lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_OFS_Y, v, selector);
409 }
410
lv_obj_set_style_shadow_spread(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)411 void lv_obj_set_style_shadow_spread(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
412 {
413 lv_style_value_t v = {
414 .num = (int32_t)value
415 };
416 lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_SPREAD, v, selector);
417 }
418
lv_obj_set_style_shadow_color(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)419 void lv_obj_set_style_shadow_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
420 {
421 lv_style_value_t v = {
422 .color = value
423 };
424 lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_COLOR, v, selector);
425 }
426
lv_obj_set_style_shadow_color_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)427 void lv_obj_set_style_shadow_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
428 {
429 lv_style_value_t v = {
430 .color = value
431 };
432 lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_COLOR_FILTERED, v, selector);
433 }
434
lv_obj_set_style_shadow_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)435 void lv_obj_set_style_shadow_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
436 {
437 lv_style_value_t v = {
438 .num = (int32_t)value
439 };
440 lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_OPA, v, selector);
441 }
442
lv_obj_set_style_img_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)443 void lv_obj_set_style_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
444 {
445 lv_style_value_t v = {
446 .num = (int32_t)value
447 };
448 lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_OPA, v, selector);
449 }
450
lv_obj_set_style_img_recolor(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)451 void lv_obj_set_style_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
452 {
453 lv_style_value_t v = {
454 .color = value
455 };
456 lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_RECOLOR, v, selector);
457 }
458
lv_obj_set_style_img_recolor_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)459 void lv_obj_set_style_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
460 {
461 lv_style_value_t v = {
462 .color = value
463 };
464 lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_RECOLOR_FILTERED, v, selector);
465 }
466
lv_obj_set_style_img_recolor_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)467 void lv_obj_set_style_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
468 {
469 lv_style_value_t v = {
470 .num = (int32_t)value
471 };
472 lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_RECOLOR_OPA, v, selector);
473 }
474
lv_obj_set_style_line_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)475 void lv_obj_set_style_line_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
476 {
477 lv_style_value_t v = {
478 .num = (int32_t)value
479 };
480 lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_WIDTH, v, selector);
481 }
482
lv_obj_set_style_line_dash_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)483 void lv_obj_set_style_line_dash_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
484 {
485 lv_style_value_t v = {
486 .num = (int32_t)value
487 };
488 lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_DASH_WIDTH, v, selector);
489 }
490
lv_obj_set_style_line_dash_gap(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)491 void lv_obj_set_style_line_dash_gap(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
492 {
493 lv_style_value_t v = {
494 .num = (int32_t)value
495 };
496 lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_DASH_GAP, v, selector);
497 }
498
lv_obj_set_style_line_rounded(struct _lv_obj_t * obj,bool value,lv_style_selector_t selector)499 void lv_obj_set_style_line_rounded(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector)
500 {
501 lv_style_value_t v = {
502 .num = (int32_t)value
503 };
504 lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_ROUNDED, v, selector);
505 }
506
lv_obj_set_style_line_color(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)507 void lv_obj_set_style_line_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
508 {
509 lv_style_value_t v = {
510 .color = value
511 };
512 lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_COLOR, v, selector);
513 }
514
lv_obj_set_style_line_color_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)515 void lv_obj_set_style_line_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
516 {
517 lv_style_value_t v = {
518 .color = value
519 };
520 lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_COLOR_FILTERED, v, selector);
521 }
522
lv_obj_set_style_line_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)523 void lv_obj_set_style_line_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
524 {
525 lv_style_value_t v = {
526 .num = (int32_t)value
527 };
528 lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_OPA, v, selector);
529 }
530
lv_obj_set_style_arc_width(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)531 void lv_obj_set_style_arc_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
532 {
533 lv_style_value_t v = {
534 .num = (int32_t)value
535 };
536 lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_WIDTH, v, selector);
537 }
538
lv_obj_set_style_arc_rounded(struct _lv_obj_t * obj,bool value,lv_style_selector_t selector)539 void lv_obj_set_style_arc_rounded(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector)
540 {
541 lv_style_value_t v = {
542 .num = (int32_t)value
543 };
544 lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_ROUNDED, v, selector);
545 }
546
lv_obj_set_style_arc_color(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)547 void lv_obj_set_style_arc_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
548 {
549 lv_style_value_t v = {
550 .color = value
551 };
552 lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_COLOR, v, selector);
553 }
554
lv_obj_set_style_arc_color_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)555 void lv_obj_set_style_arc_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
556 {
557 lv_style_value_t v = {
558 .color = value
559 };
560 lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_COLOR_FILTERED, v, selector);
561 }
562
lv_obj_set_style_arc_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)563 void lv_obj_set_style_arc_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
564 {
565 lv_style_value_t v = {
566 .num = (int32_t)value
567 };
568 lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_OPA, v, selector);
569 }
570
lv_obj_set_style_arc_img_src(struct _lv_obj_t * obj,const void * value,lv_style_selector_t selector)571 void lv_obj_set_style_arc_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector)
572 {
573 lv_style_value_t v = {
574 .ptr = value
575 };
576 lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_IMG_SRC, v, selector);
577 }
578
lv_obj_set_style_text_color(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)579 void lv_obj_set_style_text_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
580 {
581 lv_style_value_t v = {
582 .color = value
583 };
584 lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_COLOR, v, selector);
585 }
586
lv_obj_set_style_text_color_filtered(struct _lv_obj_t * obj,lv_color_t value,lv_style_selector_t selector)587 void lv_obj_set_style_text_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector)
588 {
589 lv_style_value_t v = {
590 .color = value
591 };
592 lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_COLOR_FILTERED, v, selector);
593 }
594
lv_obj_set_style_text_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)595 void lv_obj_set_style_text_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
596 {
597 lv_style_value_t v = {
598 .num = (int32_t)value
599 };
600 lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_OPA, v, selector);
601 }
602
lv_obj_set_style_text_font(struct _lv_obj_t * obj,const lv_font_t * value,lv_style_selector_t selector)603 void lv_obj_set_style_text_font(struct _lv_obj_t * obj, const lv_font_t * value, lv_style_selector_t selector)
604 {
605 lv_style_value_t v = {
606 .ptr = value
607 };
608 lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_FONT, v, selector);
609 }
610
lv_obj_set_style_text_letter_space(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)611 void lv_obj_set_style_text_letter_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
612 {
613 lv_style_value_t v = {
614 .num = (int32_t)value
615 };
616 lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_LETTER_SPACE, v, selector);
617 }
618
lv_obj_set_style_text_line_space(struct _lv_obj_t * obj,lv_coord_t value,lv_style_selector_t selector)619 void lv_obj_set_style_text_line_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
620 {
621 lv_style_value_t v = {
622 .num = (int32_t)value
623 };
624 lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_LINE_SPACE, v, selector);
625 }
626
lv_obj_set_style_text_decor(struct _lv_obj_t * obj,lv_text_decor_t value,lv_style_selector_t selector)627 void lv_obj_set_style_text_decor(struct _lv_obj_t * obj, lv_text_decor_t value, lv_style_selector_t selector)
628 {
629 lv_style_value_t v = {
630 .num = (int32_t)value
631 };
632 lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_DECOR, v, selector);
633 }
634
lv_obj_set_style_text_align(struct _lv_obj_t * obj,lv_text_align_t value,lv_style_selector_t selector)635 void lv_obj_set_style_text_align(struct _lv_obj_t * obj, lv_text_align_t value, lv_style_selector_t selector)
636 {
637 lv_style_value_t v = {
638 .num = (int32_t)value
639 };
640 lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_ALIGN, v, selector);
641 }
642
lv_obj_set_style_radius(struct _lv_obj_t * obj,lv_coord_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 {
645 lv_style_value_t v = {
646 .num = (int32_t)value
647 };
648 lv_obj_set_local_style_prop(obj, LV_STYLE_RADIUS, v, selector);
649 }
650
lv_obj_set_style_clip_corner(struct _lv_obj_t * obj,bool value,lv_style_selector_t selector)651 void lv_obj_set_style_clip_corner(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector)
652 {
653 lv_style_value_t v = {
654 .num = (int32_t)value
655 };
656 lv_obj_set_local_style_prop(obj, LV_STYLE_CLIP_CORNER, v, selector);
657 }
658
lv_obj_set_style_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)659 void lv_obj_set_style_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
660 {
661 lv_style_value_t v = {
662 .num = (int32_t)value
663 };
664 lv_obj_set_local_style_prop(obj, LV_STYLE_OPA, v, selector);
665 }
666
lv_obj_set_style_color_filter_dsc(struct _lv_obj_t * obj,const lv_color_filter_dsc_t * value,lv_style_selector_t selector)667 void lv_obj_set_style_color_filter_dsc(struct _lv_obj_t * obj, const lv_color_filter_dsc_t * value,
668 lv_style_selector_t selector)
669 {
670 lv_style_value_t v = {
671 .ptr = value
672 };
673 lv_obj_set_local_style_prop(obj, LV_STYLE_COLOR_FILTER_DSC, v, selector);
674 }
675
lv_obj_set_style_color_filter_opa(struct _lv_obj_t * obj,lv_opa_t value,lv_style_selector_t selector)676 void lv_obj_set_style_color_filter_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector)
677 {
678 lv_style_value_t v = {
679 .num = (int32_t)value
680 };
681 lv_obj_set_local_style_prop(obj, LV_STYLE_COLOR_FILTER_OPA, v, selector);
682 }
683
lv_obj_set_style_anim_time(struct _lv_obj_t * obj,uint32_t value,lv_style_selector_t selector)684 void lv_obj_set_style_anim_time(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector)
685 {
686 lv_style_value_t v = {
687 .num = (int32_t)value
688 };
689 lv_obj_set_local_style_prop(obj, LV_STYLE_ANIM_TIME, v, selector);
690 }
691
lv_obj_set_style_anim_speed(struct _lv_obj_t * obj,uint32_t value,lv_style_selector_t selector)692 void lv_obj_set_style_anim_speed(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector)
693 {
694 lv_style_value_t v = {
695 .num = (int32_t)value
696 };
697 lv_obj_set_local_style_prop(obj, LV_STYLE_ANIM_SPEED, v, selector);
698 }
699
lv_obj_set_style_transition(struct _lv_obj_t * obj,const lv_style_transition_dsc_t * value,lv_style_selector_t selector)700 void lv_obj_set_style_transition(struct _lv_obj_t * obj, const lv_style_transition_dsc_t * value,
701 lv_style_selector_t selector)
702 {
703 lv_style_value_t v = {
704 .ptr = value
705 };
706 lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSITION, v, selector);
707 }
708
lv_obj_set_style_blend_mode(struct _lv_obj_t * obj,lv_blend_mode_t value,lv_style_selector_t selector)709 void lv_obj_set_style_blend_mode(struct _lv_obj_t * obj, lv_blend_mode_t value, lv_style_selector_t selector)
710 {
711 lv_style_value_t v = {
712 .num = (int32_t)value
713 };
714 lv_obj_set_local_style_prop(obj, LV_STYLE_BLEND_MODE, v, selector);
715 }
716
lv_obj_set_style_layout(struct _lv_obj_t * obj,uint16_t value,lv_style_selector_t selector)717 void lv_obj_set_style_layout(struct _lv_obj_t * obj, uint16_t value, lv_style_selector_t selector)
718 {
719 lv_style_value_t v = {
720 .num = (int32_t)value
721 };
722 lv_obj_set_local_style_prop(obj, LV_STYLE_LAYOUT, v, selector);
723 }
724
lv_obj_set_style_base_dir(struct _lv_obj_t * obj,lv_base_dir_t value,lv_style_selector_t selector)725 void lv_obj_set_style_base_dir(struct _lv_obj_t * obj, lv_base_dir_t value, lv_style_selector_t selector)
726 {
727 lv_style_value_t v = {
728 .num = (int32_t)value
729 };
730 lv_obj_set_local_style_prop(obj, LV_STYLE_BASE_DIR, v, selector);
731 }
732