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