1 void lv_style_set_width(lv_style_t * style, lv_coord_t value);
2 void lv_style_set_min_width(lv_style_t * style, lv_coord_t value);
3 void lv_style_set_max_width(lv_style_t * style, lv_coord_t value);
4 void lv_style_set_height(lv_style_t * style, lv_coord_t value);
5 void lv_style_set_min_height(lv_style_t * style, lv_coord_t value);
6 void lv_style_set_max_height(lv_style_t * style, lv_coord_t value);
7 void lv_style_set_x(lv_style_t * style, lv_coord_t value);
8 void lv_style_set_y(lv_style_t * style, lv_coord_t value);
9 void lv_style_set_align(lv_style_t * style, lv_align_t value);
10 void lv_style_set_transform_width(lv_style_t * style, lv_coord_t value);
11 void lv_style_set_transform_height(lv_style_t * style, lv_coord_t value);
12 void lv_style_set_translate_x(lv_style_t * style, lv_coord_t value);
13 void lv_style_set_translate_y(lv_style_t * style, lv_coord_t value);
14 void lv_style_set_transform_zoom(lv_style_t * style, lv_coord_t value);
15 void lv_style_set_transform_angle(lv_style_t * style, lv_coord_t value);
16 void lv_style_set_transform_pivot_x(lv_style_t * style, lv_coord_t value);
17 void lv_style_set_transform_pivot_y(lv_style_t * style, lv_coord_t value);
18 void lv_style_set_pad_top(lv_style_t * style, lv_coord_t value);
19 void lv_style_set_pad_bottom(lv_style_t * style, lv_coord_t value);
20 void lv_style_set_pad_left(lv_style_t * style, lv_coord_t value);
21 void lv_style_set_pad_right(lv_style_t * style, lv_coord_t value);
22 void lv_style_set_pad_row(lv_style_t * style, lv_coord_t value);
23 void lv_style_set_pad_column(lv_style_t * style, lv_coord_t value);
24 void lv_style_set_bg_color(lv_style_t * style, lv_color_t value);
25 void lv_style_set_bg_opa(lv_style_t * style, lv_opa_t value);
26 void lv_style_set_bg_grad_color(lv_style_t * style, lv_color_t value);
27 void lv_style_set_bg_grad_dir(lv_style_t * style, lv_grad_dir_t value);
28 void lv_style_set_bg_main_stop(lv_style_t * style, lv_coord_t value);
29 void lv_style_set_bg_grad_stop(lv_style_t * style, lv_coord_t value);
30 void lv_style_set_bg_grad(lv_style_t * style, const lv_grad_dsc_t * value);
31 void lv_style_set_bg_dither_mode(lv_style_t * style, lv_dither_mode_t value);
32 void lv_style_set_bg_img_src(lv_style_t * style, const void * value);
33 void lv_style_set_bg_img_opa(lv_style_t * style, lv_opa_t value);
34 void lv_style_set_bg_img_recolor(lv_style_t * style, lv_color_t value);
35 void lv_style_set_bg_img_recolor_opa(lv_style_t * style, lv_opa_t value);
36 void lv_style_set_bg_img_tiled(lv_style_t * style, bool value);
37 void lv_style_set_border_color(lv_style_t * style, lv_color_t value);
38 void lv_style_set_border_opa(lv_style_t * style, lv_opa_t value);
39 void lv_style_set_border_width(lv_style_t * style, lv_coord_t value);
40 void lv_style_set_border_side(lv_style_t * style, lv_border_side_t value);
41 void lv_style_set_border_post(lv_style_t * style, bool value);
42 void lv_style_set_outline_width(lv_style_t * style, lv_coord_t value);
43 void lv_style_set_outline_color(lv_style_t * style, lv_color_t value);
44 void lv_style_set_outline_opa(lv_style_t * style, lv_opa_t value);
45 void lv_style_set_outline_pad(lv_style_t * style, lv_coord_t value);
46 void lv_style_set_shadow_width(lv_style_t * style, lv_coord_t value);
47 void lv_style_set_shadow_ofs_x(lv_style_t * style, lv_coord_t value);
48 void lv_style_set_shadow_ofs_y(lv_style_t * style, lv_coord_t value);
49 void lv_style_set_shadow_spread(lv_style_t * style, lv_coord_t value);
50 void lv_style_set_shadow_color(lv_style_t * style, lv_color_t value);
51 void lv_style_set_shadow_opa(lv_style_t * style, lv_opa_t value);
52 void lv_style_set_img_opa(lv_style_t * style, lv_opa_t value);
53 void lv_style_set_img_recolor(lv_style_t * style, lv_color_t value);
54 void lv_style_set_img_recolor_opa(lv_style_t * style, lv_opa_t value);
55 void lv_style_set_line_width(lv_style_t * style, lv_coord_t value);
56 void lv_style_set_line_dash_width(lv_style_t * style, lv_coord_t value);
57 void lv_style_set_line_dash_gap(lv_style_t * style, lv_coord_t value);
58 void lv_style_set_line_rounded(lv_style_t * style, bool value);
59 void lv_style_set_line_color(lv_style_t * style, lv_color_t value);
60 void lv_style_set_line_opa(lv_style_t * style, lv_opa_t value);
61 void lv_style_set_arc_width(lv_style_t * style, lv_coord_t value);
62 void lv_style_set_arc_rounded(lv_style_t * style, bool value);
63 void lv_style_set_arc_color(lv_style_t * style, lv_color_t value);
64 void lv_style_set_arc_opa(lv_style_t * style, lv_opa_t value);
65 void lv_style_set_arc_img_src(lv_style_t * style, const void * value);
66 void lv_style_set_text_color(lv_style_t * style, lv_color_t value);
67 void lv_style_set_text_opa(lv_style_t * style, lv_opa_t value);
68 void lv_style_set_text_font(lv_style_t * style, const lv_font_t * value);
69 void lv_style_set_text_letter_space(lv_style_t * style, lv_coord_t value);
70 void lv_style_set_text_line_space(lv_style_t * style, lv_coord_t value);
71 void lv_style_set_text_decor(lv_style_t * style, lv_text_decor_t value);
72 void lv_style_set_text_align(lv_style_t * style, lv_text_align_t value);
73 void lv_style_set_radius(lv_style_t * style, lv_coord_t value);
74 void lv_style_set_clip_corner(lv_style_t * style, bool value);
75 void lv_style_set_opa(lv_style_t * style, lv_opa_t value);
76 void lv_style_set_color_filter_dsc(lv_style_t * style, const lv_color_filter_dsc_t * value);
77 void lv_style_set_color_filter_opa(lv_style_t * style, lv_opa_t value);
78 void lv_style_set_anim(lv_style_t * style, const lv_anim_t * value);
79 void lv_style_set_anim_time(lv_style_t * style, uint32_t value);
80 void lv_style_set_anim_speed(lv_style_t * style, uint32_t value);
81 void lv_style_set_transition(lv_style_t * style, const lv_style_transition_dsc_t * value);
82 void lv_style_set_blend_mode(lv_style_t * style, lv_blend_mode_t value);
83 void lv_style_set_layout(lv_style_t * style, uint16_t value);
84 void lv_style_set_base_dir(lv_style_t * style, lv_base_dir_t value);
85 
86 #define LV_STYLE_CONST_WIDTH(val) \
87     { \
88         .prop = LV_STYLE_WIDTH, .value = { .num = (int32_t)val } \
89     }
90 
91 #define LV_STYLE_CONST_MIN_WIDTH(val) \
92     { \
93         .prop = LV_STYLE_MIN_WIDTH, .value = { .num = (int32_t)val } \
94     }
95 
96 #define LV_STYLE_CONST_MAX_WIDTH(val) \
97     { \
98         .prop = LV_STYLE_MAX_WIDTH, .value = { .num = (int32_t)val } \
99     }
100 
101 #define LV_STYLE_CONST_HEIGHT(val) \
102     { \
103         .prop = LV_STYLE_HEIGHT, .value = { .num = (int32_t)val } \
104     }
105 
106 #define LV_STYLE_CONST_MIN_HEIGHT(val) \
107     { \
108         .prop = LV_STYLE_MIN_HEIGHT, .value = { .num = (int32_t)val } \
109     }
110 
111 #define LV_STYLE_CONST_MAX_HEIGHT(val) \
112     { \
113         .prop = LV_STYLE_MAX_HEIGHT, .value = { .num = (int32_t)val } \
114     }
115 
116 #define LV_STYLE_CONST_X(val) \
117     { \
118         .prop = LV_STYLE_X, .value = { .num = (int32_t)val } \
119     }
120 
121 #define LV_STYLE_CONST_Y(val) \
122     { \
123         .prop = LV_STYLE_Y, .value = { .num = (int32_t)val } \
124     }
125 
126 #define LV_STYLE_CONST_ALIGN(val) \
127     { \
128         .prop = LV_STYLE_ALIGN, .value = { .num = (int32_t)val } \
129     }
130 
131 #define LV_STYLE_CONST_TRANSFORM_WIDTH(val) \
132     { \
133         .prop = LV_STYLE_TRANSFORM_WIDTH, .value = { .num = (int32_t)val } \
134     }
135 
136 #define LV_STYLE_CONST_TRANSFORM_HEIGHT(val) \
137     { \
138         .prop = LV_STYLE_TRANSFORM_HEIGHT, .value = { .num = (int32_t)val } \
139     }
140 
141 #define LV_STYLE_CONST_TRANSLATE_X(val) \
142     { \
143         .prop = LV_STYLE_TRANSLATE_X, .value = { .num = (int32_t)val } \
144     }
145 
146 #define LV_STYLE_CONST_TRANSLATE_Y(val) \
147     { \
148         .prop = LV_STYLE_TRANSLATE_Y, .value = { .num = (int32_t)val } \
149     }
150 
151 #define LV_STYLE_CONST_TRANSFORM_ZOOM(val) \
152     { \
153         .prop = LV_STYLE_TRANSFORM_ZOOM, .value = { .num = (int32_t)val } \
154     }
155 
156 #define LV_STYLE_CONST_TRANSFORM_ANGLE(val) \
157     { \
158         .prop = LV_STYLE_TRANSFORM_ANGLE, .value = { .num = (int32_t)val } \
159     }
160 
161 #define LV_STYLE_CONST_TRANSFORM_PIVOT_X(val) \
162     { \
163         .prop = LV_STYLE_TRANSFORM_PIVOT_X, .value = { .num = (int32_t)val } \
164     }
165 
166 #define LV_STYLE_CONST_TRANSFORM_PIVOT_Y(val) \
167     { \
168         .prop = LV_STYLE_TRANSFORM_PIVOT_Y, .value = { .num = (int32_t)val } \
169     }
170 
171 #define LV_STYLE_CONST_PAD_TOP(val) \
172     { \
173         .prop = LV_STYLE_PAD_TOP, .value = { .num = (int32_t)val } \
174     }
175 
176 #define LV_STYLE_CONST_PAD_BOTTOM(val) \
177     { \
178         .prop = LV_STYLE_PAD_BOTTOM, .value = { .num = (int32_t)val } \
179     }
180 
181 #define LV_STYLE_CONST_PAD_LEFT(val) \
182     { \
183         .prop = LV_STYLE_PAD_LEFT, .value = { .num = (int32_t)val } \
184     }
185 
186 #define LV_STYLE_CONST_PAD_RIGHT(val) \
187     { \
188         .prop = LV_STYLE_PAD_RIGHT, .value = { .num = (int32_t)val } \
189     }
190 
191 #define LV_STYLE_CONST_PAD_ROW(val) \
192     { \
193         .prop = LV_STYLE_PAD_ROW, .value = { .num = (int32_t)val } \
194     }
195 
196 #define LV_STYLE_CONST_PAD_COLUMN(val) \
197     { \
198         .prop = LV_STYLE_PAD_COLUMN, .value = { .num = (int32_t)val } \
199     }
200 
201 #define LV_STYLE_CONST_BG_COLOR(val) \
202     { \
203         .prop = LV_STYLE_BG_COLOR, .value = { .color = val } \
204     }
205 
206 #define LV_STYLE_CONST_BG_OPA(val) \
207     { \
208         .prop = LV_STYLE_BG_OPA, .value = { .num = (int32_t)val } \
209     }
210 
211 #define LV_STYLE_CONST_BG_GRAD_COLOR(val) \
212     { \
213         .prop = LV_STYLE_BG_GRAD_COLOR, .value = { .color = val } \
214     }
215 
216 #define LV_STYLE_CONST_BG_GRAD_DIR(val) \
217     { \
218         .prop = LV_STYLE_BG_GRAD_DIR, .value = { .num = (int32_t)val } \
219     }
220 
221 #define LV_STYLE_CONST_BG_MAIN_STOP(val) \
222     { \
223         .prop = LV_STYLE_BG_MAIN_STOP, .value = { .num = (int32_t)val } \
224     }
225 
226 #define LV_STYLE_CONST_BG_GRAD_STOP(val) \
227     { \
228         .prop = LV_STYLE_BG_GRAD_STOP, .value = { .num = (int32_t)val } \
229     }
230 
231 #define LV_STYLE_CONST_BG_GRAD(val) \
232     { \
233         .prop = LV_STYLE_BG_GRAD, .value = { .ptr = val } \
234     }
235 
236 #define LV_STYLE_CONST_BG_DITHER_MODE(val) \
237     { \
238         .prop = LV_STYLE_BG_DITHER_MODE, .value = { .num = (int32_t)val } \
239     }
240 
241 #define LV_STYLE_CONST_BG_IMG_SRC(val) \
242     { \
243         .prop = LV_STYLE_BG_IMG_SRC, .value = { .ptr = val } \
244     }
245 
246 #define LV_STYLE_CONST_BG_IMG_OPA(val) \
247     { \
248         .prop = LV_STYLE_BG_IMG_OPA, .value = { .num = (int32_t)val } \
249     }
250 
251 #define LV_STYLE_CONST_BG_IMG_RECOLOR(val) \
252     { \
253         .prop = LV_STYLE_BG_IMG_RECOLOR, .value = { .color = val } \
254     }
255 
256 #define LV_STYLE_CONST_BG_IMG_RECOLOR_OPA(val) \
257     { \
258         .prop = LV_STYLE_BG_IMG_RECOLOR_OPA, .value = { .num = (int32_t)val } \
259     }
260 
261 #define LV_STYLE_CONST_BG_IMG_TILED(val) \
262     { \
263         .prop = LV_STYLE_BG_IMG_TILED, .value = { .num = (int32_t)val } \
264     }
265 
266 #define LV_STYLE_CONST_BORDER_COLOR(val) \
267     { \
268         .prop = LV_STYLE_BORDER_COLOR, .value = { .color = val } \
269     }
270 
271 #define LV_STYLE_CONST_BORDER_OPA(val) \
272     { \
273         .prop = LV_STYLE_BORDER_OPA, .value = { .num = (int32_t)val } \
274     }
275 
276 #define LV_STYLE_CONST_BORDER_WIDTH(val) \
277     { \
278         .prop = LV_STYLE_BORDER_WIDTH, .value = { .num = (int32_t)val } \
279     }
280 
281 #define LV_STYLE_CONST_BORDER_SIDE(val) \
282     { \
283         .prop = LV_STYLE_BORDER_SIDE, .value = { .num = (int32_t)val } \
284     }
285 
286 #define LV_STYLE_CONST_BORDER_POST(val) \
287     { \
288         .prop = LV_STYLE_BORDER_POST, .value = { .num = (int32_t)val } \
289     }
290 
291 #define LV_STYLE_CONST_OUTLINE_WIDTH(val) \
292     { \
293         .prop = LV_STYLE_OUTLINE_WIDTH, .value = { .num = (int32_t)val } \
294     }
295 
296 #define LV_STYLE_CONST_OUTLINE_COLOR(val) \
297     { \
298         .prop = LV_STYLE_OUTLINE_COLOR, .value = { .color = val } \
299     }
300 
301 #define LV_STYLE_CONST_OUTLINE_OPA(val) \
302     { \
303         .prop = LV_STYLE_OUTLINE_OPA, .value = { .num = (int32_t)val } \
304     }
305 
306 #define LV_STYLE_CONST_OUTLINE_PAD(val) \
307     { \
308         .prop = LV_STYLE_OUTLINE_PAD, .value = { .num = (int32_t)val } \
309     }
310 
311 #define LV_STYLE_CONST_SHADOW_WIDTH(val) \
312     { \
313         .prop = LV_STYLE_SHADOW_WIDTH, .value = { .num = (int32_t)val } \
314     }
315 
316 #define LV_STYLE_CONST_SHADOW_OFS_X(val) \
317     { \
318         .prop = LV_STYLE_SHADOW_OFS_X, .value = { .num = (int32_t)val } \
319     }
320 
321 #define LV_STYLE_CONST_SHADOW_OFS_Y(val) \
322     { \
323         .prop = LV_STYLE_SHADOW_OFS_Y, .value = { .num = (int32_t)val } \
324     }
325 
326 #define LV_STYLE_CONST_SHADOW_SPREAD(val) \
327     { \
328         .prop = LV_STYLE_SHADOW_SPREAD, .value = { .num = (int32_t)val } \
329     }
330 
331 #define LV_STYLE_CONST_SHADOW_COLOR(val) \
332     { \
333         .prop = LV_STYLE_SHADOW_COLOR, .value = { .color = val } \
334     }
335 
336 #define LV_STYLE_CONST_SHADOW_OPA(val) \
337     { \
338         .prop = LV_STYLE_SHADOW_OPA, .value = { .num = (int32_t)val } \
339     }
340 
341 #define LV_STYLE_CONST_IMG_OPA(val) \
342     { \
343         .prop = LV_STYLE_IMG_OPA, .value = { .num = (int32_t)val } \
344     }
345 
346 #define LV_STYLE_CONST_IMG_RECOLOR(val) \
347     { \
348         .prop = LV_STYLE_IMG_RECOLOR, .value = { .color = val } \
349     }
350 
351 #define LV_STYLE_CONST_IMG_RECOLOR_OPA(val) \
352     { \
353         .prop = LV_STYLE_IMG_RECOLOR_OPA, .value = { .num = (int32_t)val } \
354     }
355 
356 #define LV_STYLE_CONST_LINE_WIDTH(val) \
357     { \
358         .prop = LV_STYLE_LINE_WIDTH, .value = { .num = (int32_t)val } \
359     }
360 
361 #define LV_STYLE_CONST_LINE_DASH_WIDTH(val) \
362     { \
363         .prop = LV_STYLE_LINE_DASH_WIDTH, .value = { .num = (int32_t)val } \
364     }
365 
366 #define LV_STYLE_CONST_LINE_DASH_GAP(val) \
367     { \
368         .prop = LV_STYLE_LINE_DASH_GAP, .value = { .num = (int32_t)val } \
369     }
370 
371 #define LV_STYLE_CONST_LINE_ROUNDED(val) \
372     { \
373         .prop = LV_STYLE_LINE_ROUNDED, .value = { .num = (int32_t)val } \
374     }
375 
376 #define LV_STYLE_CONST_LINE_COLOR(val) \
377     { \
378         .prop = LV_STYLE_LINE_COLOR, .value = { .color = val } \
379     }
380 
381 #define LV_STYLE_CONST_LINE_OPA(val) \
382     { \
383         .prop = LV_STYLE_LINE_OPA, .value = { .num = (int32_t)val } \
384     }
385 
386 #define LV_STYLE_CONST_ARC_WIDTH(val) \
387     { \
388         .prop = LV_STYLE_ARC_WIDTH, .value = { .num = (int32_t)val } \
389     }
390 
391 #define LV_STYLE_CONST_ARC_ROUNDED(val) \
392     { \
393         .prop = LV_STYLE_ARC_ROUNDED, .value = { .num = (int32_t)val } \
394     }
395 
396 #define LV_STYLE_CONST_ARC_COLOR(val) \
397     { \
398         .prop = LV_STYLE_ARC_COLOR, .value = { .color = val } \
399     }
400 
401 #define LV_STYLE_CONST_ARC_OPA(val) \
402     { \
403         .prop = LV_STYLE_ARC_OPA, .value = { .num = (int32_t)val } \
404     }
405 
406 #define LV_STYLE_CONST_ARC_IMG_SRC(val) \
407     { \
408         .prop = LV_STYLE_ARC_IMG_SRC, .value = { .ptr = val } \
409     }
410 
411 #define LV_STYLE_CONST_TEXT_COLOR(val) \
412     { \
413         .prop = LV_STYLE_TEXT_COLOR, .value = { .color = val } \
414     }
415 
416 #define LV_STYLE_CONST_TEXT_OPA(val) \
417     { \
418         .prop = LV_STYLE_TEXT_OPA, .value = { .num = (int32_t)val } \
419     }
420 
421 #define LV_STYLE_CONST_TEXT_FONT(val) \
422     { \
423         .prop = LV_STYLE_TEXT_FONT, .value = { .ptr = val } \
424     }
425 
426 #define LV_STYLE_CONST_TEXT_LETTER_SPACE(val) \
427     { \
428         .prop = LV_STYLE_TEXT_LETTER_SPACE, .value = { .num = (int32_t)val } \
429     }
430 
431 #define LV_STYLE_CONST_TEXT_LINE_SPACE(val) \
432     { \
433         .prop = LV_STYLE_TEXT_LINE_SPACE, .value = { .num = (int32_t)val } \
434     }
435 
436 #define LV_STYLE_CONST_TEXT_DECOR(val) \
437     { \
438         .prop = LV_STYLE_TEXT_DECOR, .value = { .num = (int32_t)val } \
439     }
440 
441 #define LV_STYLE_CONST_TEXT_ALIGN(val) \
442     { \
443         .prop = LV_STYLE_TEXT_ALIGN, .value = { .num = (int32_t)val } \
444     }
445 
446 #define LV_STYLE_CONST_RADIUS(val) \
447     { \
448         .prop = LV_STYLE_RADIUS, .value = { .num = (int32_t)val } \
449     }
450 
451 #define LV_STYLE_CONST_CLIP_CORNER(val) \
452     { \
453         .prop = LV_STYLE_CLIP_CORNER, .value = { .num = (int32_t)val } \
454     }
455 
456 #define LV_STYLE_CONST_OPA(val) \
457     { \
458         .prop = LV_STYLE_OPA, .value = { .num = (int32_t)val } \
459     }
460 
461 #define LV_STYLE_CONST_COLOR_FILTER_DSC(val) \
462     { \
463         .prop = LV_STYLE_COLOR_FILTER_DSC, .value = { .ptr = val } \
464     }
465 
466 #define LV_STYLE_CONST_COLOR_FILTER_OPA(val) \
467     { \
468         .prop = LV_STYLE_COLOR_FILTER_OPA, .value = { .num = (int32_t)val } \
469     }
470 
471 #define LV_STYLE_CONST_ANIM(val) \
472     { \
473         .prop = LV_STYLE_ANIM, .value = { .ptr = val } \
474     }
475 
476 #define LV_STYLE_CONST_ANIM_TIME(val) \
477     { \
478         .prop = LV_STYLE_ANIM_TIME, .value = { .num = (int32_t)val } \
479     }
480 
481 #define LV_STYLE_CONST_ANIM_SPEED(val) \
482     { \
483         .prop = LV_STYLE_ANIM_SPEED, .value = { .num = (int32_t)val } \
484     }
485 
486 #define LV_STYLE_CONST_TRANSITION(val) \
487     { \
488         .prop = LV_STYLE_TRANSITION, .value = { .ptr = val } \
489     }
490 
491 #define LV_STYLE_CONST_BLEND_MODE(val) \
492     { \
493         .prop = LV_STYLE_BLEND_MODE, .value = { .num = (int32_t)val } \
494     }
495 
496 #define LV_STYLE_CONST_LAYOUT(val) \
497     { \
498         .prop = LV_STYLE_LAYOUT, .value = { .num = (int32_t)val } \
499     }
500 
501 #define LV_STYLE_CONST_BASE_DIR(val) \
502     { \
503         .prop = LV_STYLE_BASE_DIR, .value = { .num = (int32_t)val } \
504     }
505