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_pad_top(const struct _lv_obj_t * obj,uint32_t part)91 static inline lv_coord_t lv_obj_get_style_pad_top(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_PAD_TOP);
94     return (lv_coord_t)v.num;
95 }
96 
lv_obj_get_style_pad_bottom(const struct _lv_obj_t * obj,uint32_t part)97 static inline lv_coord_t lv_obj_get_style_pad_bottom(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_PAD_BOTTOM);
100     return (lv_coord_t)v.num;
101 }
102 
lv_obj_get_style_pad_left(const struct _lv_obj_t * obj,uint32_t part)103 static inline lv_coord_t lv_obj_get_style_pad_left(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_LEFT);
106     return (lv_coord_t)v.num;
107 }
108 
lv_obj_get_style_pad_right(const struct _lv_obj_t * obj,uint32_t part)109 static inline lv_coord_t lv_obj_get_style_pad_right(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_RIGHT);
112     return (lv_coord_t)v.num;
113 }
114 
lv_obj_get_style_pad_row(const struct _lv_obj_t * obj,uint32_t part)115 static inline lv_coord_t lv_obj_get_style_pad_row(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_ROW);
118     return (lv_coord_t)v.num;
119 }
120 
lv_obj_get_style_pad_column(const struct _lv_obj_t * obj,uint32_t part)121 static inline lv_coord_t lv_obj_get_style_pad_column(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_COLUMN);
124     return (lv_coord_t)v.num;
125 }
126 
lv_obj_get_style_bg_color(const struct _lv_obj_t * obj,uint32_t part)127 static inline lv_color_t lv_obj_get_style_bg_color(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_BG_COLOR);
130     return v.color;
131 }
132 
lv_obj_get_style_bg_color_filtered(const struct _lv_obj_t * obj,uint32_t part)133 static inline lv_color_t lv_obj_get_style_bg_color_filtered(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_BG_COLOR_FILTERED);
136     return v.color;
137 }
138 
lv_obj_get_style_bg_opa(const struct _lv_obj_t * obj,uint32_t part)139 static inline lv_opa_t lv_obj_get_style_bg_opa(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_OPA);
142     return (lv_opa_t)v.num;
143 }
144 
lv_obj_get_style_bg_grad_color(const struct _lv_obj_t * obj,uint32_t part)145 static inline lv_color_t lv_obj_get_style_bg_grad_color(const struct _lv_obj_t * obj, uint32_t part)
146 {
147     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_GRAD_COLOR);
148     return v.color;
149 }
150 
lv_obj_get_style_bg_grad_color_filtered(const struct _lv_obj_t * obj,uint32_t part)151 static inline lv_color_t lv_obj_get_style_bg_grad_color_filtered(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_GRAD_COLOR_FILTERED);
154     return v.color;
155 }
156 
lv_obj_get_style_bg_grad_dir(const struct _lv_obj_t * obj,uint32_t part)157 static inline lv_grad_dir_t lv_obj_get_style_bg_grad_dir(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_DIR);
160     return (lv_grad_dir_t)v.num;
161 }
162 
lv_obj_get_style_bg_main_stop(const struct _lv_obj_t * obj,uint32_t part)163 static inline lv_coord_t lv_obj_get_style_bg_main_stop(const struct _lv_obj_t * obj, uint32_t part)
164 {
165     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_MAIN_STOP);
166     return (lv_coord_t)v.num;
167 }
168 
lv_obj_get_style_bg_grad_stop(const struct _lv_obj_t * obj,uint32_t part)169 static inline lv_coord_t lv_obj_get_style_bg_grad_stop(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_STOP);
172     return (lv_coord_t)v.num;
173 }
174 
lv_obj_get_style_bg_grad(const struct _lv_obj_t * obj,uint32_t part)175 static inline const lv_grad_dsc_t * lv_obj_get_style_bg_grad(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_GRAD);
178     return (const lv_grad_dsc_t *)v.ptr;
179 }
180 
lv_obj_get_style_bg_dither_mode(const struct _lv_obj_t * obj,uint32_t part)181 static inline lv_dither_mode_t lv_obj_get_style_bg_dither_mode(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_DITHER_MODE);
184     return (lv_dither_mode_t)v.num;
185 }
186 
lv_obj_get_style_bg_img_src(const struct _lv_obj_t * obj,uint32_t part)187 static inline const void * lv_obj_get_style_bg_img_src(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_IMG_SRC);
190     return (const void *)v.ptr;
191 }
192 
lv_obj_get_style_bg_img_opa(const struct _lv_obj_t * obj,uint32_t part)193 static inline lv_opa_t lv_obj_get_style_bg_img_opa(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_IMG_OPA);
196     return (lv_opa_t)v.num;
197 }
198 
lv_obj_get_style_bg_img_recolor(const struct _lv_obj_t * obj,uint32_t part)199 static inline lv_color_t lv_obj_get_style_bg_img_recolor(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_RECOLOR);
202     return v.color;
203 }
204 
lv_obj_get_style_bg_img_recolor_filtered(const struct _lv_obj_t * obj,uint32_t part)205 static inline lv_color_t lv_obj_get_style_bg_img_recolor_filtered(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_RECOLOR_FILTERED);
208     return v.color;
209 }
210 
lv_obj_get_style_bg_img_recolor_opa(const struct _lv_obj_t * obj,uint32_t part)211 static inline lv_opa_t lv_obj_get_style_bg_img_recolor_opa(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_OPA);
214     return (lv_opa_t)v.num;
215 }
216 
lv_obj_get_style_bg_img_tiled(const struct _lv_obj_t * obj,uint32_t part)217 static inline bool lv_obj_get_style_bg_img_tiled(const struct _lv_obj_t * obj, uint32_t part)
218 {
219     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BG_IMG_TILED);
220     return (bool)v.num;
221 }
222 
lv_obj_get_style_border_color(const struct _lv_obj_t * obj,uint32_t part)223 static inline lv_color_t lv_obj_get_style_border_color(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_BORDER_COLOR);
226     return v.color;
227 }
228 
lv_obj_get_style_border_color_filtered(const struct _lv_obj_t * obj,uint32_t part)229 static inline lv_color_t lv_obj_get_style_border_color_filtered(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_BORDER_COLOR_FILTERED);
232     return v.color;
233 }
234 
lv_obj_get_style_border_opa(const struct _lv_obj_t * obj,uint32_t part)235 static inline lv_opa_t lv_obj_get_style_border_opa(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_OPA);
238     return (lv_opa_t)v.num;
239 }
240 
lv_obj_get_style_border_width(const struct _lv_obj_t * obj,uint32_t part)241 static inline lv_coord_t lv_obj_get_style_border_width(const struct _lv_obj_t * obj, uint32_t part)
242 {
243     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BORDER_WIDTH);
244     return (lv_coord_t)v.num;
245 }
246 
lv_obj_get_style_border_side(const struct _lv_obj_t * obj,uint32_t part)247 static inline lv_border_side_t lv_obj_get_style_border_side(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_SIDE);
250     return (lv_border_side_t)v.num;
251 }
252 
lv_obj_get_style_border_post(const struct _lv_obj_t * obj,uint32_t part)253 static inline bool lv_obj_get_style_border_post(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_POST);
256     return (bool)v.num;
257 }
258 
lv_obj_get_style_outline_width(const struct _lv_obj_t * obj,uint32_t part)259 static inline lv_coord_t lv_obj_get_style_outline_width(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_OUTLINE_WIDTH);
262     return (lv_coord_t)v.num;
263 }
264 
lv_obj_get_style_outline_color(const struct _lv_obj_t * obj,uint32_t part)265 static inline lv_color_t lv_obj_get_style_outline_color(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_OUTLINE_COLOR);
268     return v.color;
269 }
270 
lv_obj_get_style_outline_color_filtered(const struct _lv_obj_t * obj,uint32_t part)271 static inline lv_color_t lv_obj_get_style_outline_color_filtered(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_COLOR_FILTERED);
274     return v.color;
275 }
276 
lv_obj_get_style_outline_opa(const struct _lv_obj_t * obj,uint32_t part)277 static inline lv_opa_t lv_obj_get_style_outline_opa(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_OPA);
280     return (lv_opa_t)v.num;
281 }
282 
lv_obj_get_style_outline_pad(const struct _lv_obj_t * obj,uint32_t part)283 static inline lv_coord_t lv_obj_get_style_outline_pad(const struct _lv_obj_t * obj, uint32_t part)
284 {
285     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_OUTLINE_PAD);
286     return (lv_coord_t)v.num;
287 }
288 
lv_obj_get_style_shadow_width(const struct _lv_obj_t * obj,uint32_t part)289 static inline lv_coord_t lv_obj_get_style_shadow_width(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_SHADOW_WIDTH);
292     return (lv_coord_t)v.num;
293 }
294 
lv_obj_get_style_shadow_ofs_x(const struct _lv_obj_t * obj,uint32_t part)295 static inline lv_coord_t lv_obj_get_style_shadow_ofs_x(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_SHADOW_OFS_X);
298     return (lv_coord_t)v.num;
299 }
300 
lv_obj_get_style_shadow_ofs_y(const struct _lv_obj_t * obj,uint32_t part)301 static inline lv_coord_t lv_obj_get_style_shadow_ofs_y(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_OFS_Y);
304     return (lv_coord_t)v.num;
305 }
306 
lv_obj_get_style_shadow_spread(const struct _lv_obj_t * obj,uint32_t part)307 static inline lv_coord_t lv_obj_get_style_shadow_spread(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_SPREAD);
310     return (lv_coord_t)v.num;
311 }
312 
lv_obj_get_style_shadow_color(const struct _lv_obj_t * obj,uint32_t part)313 static inline lv_color_t lv_obj_get_style_shadow_color(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_COLOR);
316     return v.color;
317 }
318 
lv_obj_get_style_shadow_color_filtered(const struct _lv_obj_t * obj,uint32_t part)319 static inline lv_color_t lv_obj_get_style_shadow_color_filtered(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_COLOR_FILTERED);
322     return v.color;
323 }
324 
lv_obj_get_style_shadow_opa(const struct _lv_obj_t * obj,uint32_t part)325 static inline lv_opa_t lv_obj_get_style_shadow_opa(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_OPA);
328     return (lv_opa_t)v.num;
329 }
330 
lv_obj_get_style_img_opa(const struct _lv_obj_t * obj,uint32_t part)331 static inline lv_opa_t lv_obj_get_style_img_opa(const struct _lv_obj_t * obj, uint32_t part)
332 {
333     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_IMG_OPA);
334     return (lv_opa_t)v.num;
335 }
336 
lv_obj_get_style_img_recolor(const struct _lv_obj_t * obj,uint32_t part)337 static inline lv_color_t lv_obj_get_style_img_recolor(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_IMG_RECOLOR);
340     return v.color;
341 }
342 
lv_obj_get_style_img_recolor_filtered(const struct _lv_obj_t * obj,uint32_t part)343 static inline lv_color_t lv_obj_get_style_img_recolor_filtered(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_RECOLOR_FILTERED);
346     return v.color;
347 }
348 
lv_obj_get_style_img_recolor_opa(const struct _lv_obj_t * obj,uint32_t part)349 static inline lv_opa_t lv_obj_get_style_img_recolor_opa(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_OPA);
352     return (lv_opa_t)v.num;
353 }
354 
lv_obj_get_style_line_width(const struct _lv_obj_t * obj,uint32_t part)355 static inline lv_coord_t lv_obj_get_style_line_width(const struct _lv_obj_t * obj, uint32_t part)
356 {
357     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_LINE_WIDTH);
358     return (lv_coord_t)v.num;
359 }
360 
lv_obj_get_style_line_dash_width(const struct _lv_obj_t * obj,uint32_t part)361 static inline lv_coord_t lv_obj_get_style_line_dash_width(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_LINE_DASH_WIDTH);
364     return (lv_coord_t)v.num;
365 }
366 
lv_obj_get_style_line_dash_gap(const struct _lv_obj_t * obj,uint32_t part)367 static inline lv_coord_t lv_obj_get_style_line_dash_gap(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_DASH_GAP);
370     return (lv_coord_t)v.num;
371 }
372 
lv_obj_get_style_line_rounded(const struct _lv_obj_t * obj,uint32_t part)373 static inline bool lv_obj_get_style_line_rounded(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_ROUNDED);
376     return (bool)v.num;
377 }
378 
lv_obj_get_style_line_color(const struct _lv_obj_t * obj,uint32_t part)379 static inline lv_color_t lv_obj_get_style_line_color(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_COLOR);
382     return v.color;
383 }
384 
lv_obj_get_style_line_color_filtered(const struct _lv_obj_t * obj,uint32_t part)385 static inline lv_color_t lv_obj_get_style_line_color_filtered(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_COLOR_FILTERED);
388     return v.color;
389 }
390 
lv_obj_get_style_line_opa(const struct _lv_obj_t * obj,uint32_t part)391 static inline lv_opa_t lv_obj_get_style_line_opa(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_OPA);
394     return (lv_opa_t)v.num;
395 }
396 
lv_obj_get_style_arc_width(const struct _lv_obj_t * obj,uint32_t part)397 static inline lv_coord_t lv_obj_get_style_arc_width(const struct _lv_obj_t * obj, uint32_t part)
398 {
399     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ARC_WIDTH);
400     return (lv_coord_t)v.num;
401 }
402 
lv_obj_get_style_arc_rounded(const struct _lv_obj_t * obj,uint32_t part)403 static inline bool lv_obj_get_style_arc_rounded(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_ARC_ROUNDED);
406     return (bool)v.num;
407 }
408 
lv_obj_get_style_arc_color(const struct _lv_obj_t * obj,uint32_t part)409 static inline lv_color_t lv_obj_get_style_arc_color(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_COLOR);
412     return v.color;
413 }
414 
lv_obj_get_style_arc_color_filtered(const struct _lv_obj_t * obj,uint32_t part)415 static inline lv_color_t lv_obj_get_style_arc_color_filtered(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_COLOR_FILTERED);
418     return v.color;
419 }
420 
lv_obj_get_style_arc_opa(const struct _lv_obj_t * obj,uint32_t part)421 static inline lv_opa_t lv_obj_get_style_arc_opa(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_OPA);
424     return (lv_opa_t)v.num;
425 }
426 
lv_obj_get_style_arc_img_src(const struct _lv_obj_t * obj,uint32_t part)427 static inline const void * lv_obj_get_style_arc_img_src(const struct _lv_obj_t * obj, uint32_t part)
428 {
429     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ARC_IMG_SRC);
430     return (const void *)v.ptr;
431 }
432 
lv_obj_get_style_text_color(const struct _lv_obj_t * obj,uint32_t part)433 static inline lv_color_t lv_obj_get_style_text_color(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_TEXT_COLOR);
436     return v.color;
437 }
438 
lv_obj_get_style_text_color_filtered(const struct _lv_obj_t * obj,uint32_t part)439 static inline lv_color_t lv_obj_get_style_text_color_filtered(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_TEXT_COLOR_FILTERED);
442     return v.color;
443 }
444 
lv_obj_get_style_text_opa(const struct _lv_obj_t * obj,uint32_t part)445 static inline lv_opa_t lv_obj_get_style_text_opa(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_OPA);
448     return (lv_opa_t)v.num;
449 }
450 
lv_obj_get_style_text_font(const struct _lv_obj_t * obj,uint32_t part)451 static inline const lv_font_t * lv_obj_get_style_text_font(const struct _lv_obj_t * obj, uint32_t part)
452 {
453     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TEXT_FONT);
454     return (const lv_font_t *)v.ptr;
455 }
456 
lv_obj_get_style_text_letter_space(const struct _lv_obj_t * obj,uint32_t part)457 static inline lv_coord_t lv_obj_get_style_text_letter_space(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_LETTER_SPACE);
460     return (lv_coord_t)v.num;
461 }
462 
lv_obj_get_style_text_line_space(const struct _lv_obj_t * obj,uint32_t part)463 static inline lv_coord_t lv_obj_get_style_text_line_space(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_LINE_SPACE);
466     return (lv_coord_t)v.num;
467 }
468 
lv_obj_get_style_text_decor(const struct _lv_obj_t * obj,uint32_t part)469 static inline lv_text_decor_t lv_obj_get_style_text_decor(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_DECOR);
472     return (lv_text_decor_t)v.num;
473 }
474 
lv_obj_get_style_text_align(const struct _lv_obj_t * obj,uint32_t part)475 static inline lv_text_align_t lv_obj_get_style_text_align(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_ALIGN);
478     return (lv_text_align_t)v.num;
479 }
480 
lv_obj_get_style_radius(const struct _lv_obj_t * obj,uint32_t part)481 static inline lv_coord_t lv_obj_get_style_radius(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_RADIUS);
484     return (lv_coord_t)v.num;
485 }
486 
lv_obj_get_style_clip_corner(const struct _lv_obj_t * obj,uint32_t part)487 static inline bool lv_obj_get_style_clip_corner(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_CLIP_CORNER);
490     return (bool)v.num;
491 }
492 
lv_obj_get_style_opa(const struct _lv_obj_t * obj,uint32_t part)493 static inline lv_opa_t lv_obj_get_style_opa(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_OPA);
496     return (lv_opa_t)v.num;
497 }
498 
lv_obj_get_style_color_filter_dsc(const struct _lv_obj_t * obj,uint32_t part)499 static inline const lv_color_filter_dsc_t * lv_obj_get_style_color_filter_dsc(const struct _lv_obj_t * obj,
500                                                                               uint32_t part)
501 {
502     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_COLOR_FILTER_DSC);
503     return (const lv_color_filter_dsc_t *)v.ptr;
504 }
505 
lv_obj_get_style_color_filter_opa(const struct _lv_obj_t * obj,uint32_t part)506 static inline lv_opa_t lv_obj_get_style_color_filter_opa(const struct _lv_obj_t * obj, uint32_t part)
507 {
508     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_COLOR_FILTER_OPA);
509     return (lv_opa_t)v.num;
510 }
511 
lv_obj_get_style_anim_time(const struct _lv_obj_t * obj,uint32_t part)512 static inline uint32_t lv_obj_get_style_anim_time(const struct _lv_obj_t * obj, uint32_t part)
513 {
514     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ANIM_TIME);
515     return (uint32_t)v.num;
516 }
517 
lv_obj_get_style_anim_speed(const struct _lv_obj_t * obj,uint32_t part)518 static inline uint32_t lv_obj_get_style_anim_speed(const struct _lv_obj_t * obj, uint32_t part)
519 {
520     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_ANIM_SPEED);
521     return (uint32_t)v.num;
522 }
523 
lv_obj_get_style_transition(const struct _lv_obj_t * obj,uint32_t part)524 static inline const lv_style_transition_dsc_t * lv_obj_get_style_transition(const struct _lv_obj_t * obj, uint32_t part)
525 {
526     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_TRANSITION);
527     return (const lv_style_transition_dsc_t *)v.ptr;
528 }
529 
lv_obj_get_style_blend_mode(const struct _lv_obj_t * obj,uint32_t part)530 static inline lv_blend_mode_t lv_obj_get_style_blend_mode(const struct _lv_obj_t * obj, uint32_t part)
531 {
532     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BLEND_MODE);
533     return (lv_blend_mode_t)v.num;
534 }
535 
lv_obj_get_style_layout(const struct _lv_obj_t * obj,uint32_t part)536 static inline uint16_t lv_obj_get_style_layout(const struct _lv_obj_t * obj, uint32_t part)
537 {
538     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_LAYOUT);
539     return (uint16_t)v.num;
540 }
541 
lv_obj_get_style_base_dir(const struct _lv_obj_t * obj,uint32_t part)542 static inline lv_base_dir_t lv_obj_get_style_base_dir(const struct _lv_obj_t * obj, uint32_t part)
543 {
544     lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_BASE_DIR);
545     return (lv_base_dir_t)v.num;
546 }
547 
548 void lv_obj_set_style_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
549 void lv_obj_set_style_min_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
550 void lv_obj_set_style_max_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
551 void lv_obj_set_style_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
552 void lv_obj_set_style_min_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
553 void lv_obj_set_style_max_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
554 void lv_obj_set_style_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
555 void lv_obj_set_style_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
556 void lv_obj_set_style_align(struct _lv_obj_t * obj, lv_align_t value, lv_style_selector_t selector);
557 void lv_obj_set_style_transform_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
558 void lv_obj_set_style_transform_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
559 void lv_obj_set_style_translate_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
560 void lv_obj_set_style_translate_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
561 void lv_obj_set_style_transform_zoom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
562 void lv_obj_set_style_transform_angle(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
563 void lv_obj_set_style_pad_top(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
564 void lv_obj_set_style_pad_bottom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
565 void lv_obj_set_style_pad_left(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
566 void lv_obj_set_style_pad_right(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
567 void lv_obj_set_style_pad_row(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
568 void lv_obj_set_style_pad_column(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
569 void lv_obj_set_style_bg_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
570 void lv_obj_set_style_bg_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
571 void lv_obj_set_style_bg_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
572 void lv_obj_set_style_bg_grad_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
573 void lv_obj_set_style_bg_grad_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
574 void lv_obj_set_style_bg_grad_dir(struct _lv_obj_t * obj, lv_grad_dir_t value, lv_style_selector_t selector);
575 void lv_obj_set_style_bg_main_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
576 void lv_obj_set_style_bg_grad_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
577 void lv_obj_set_style_bg_grad(struct _lv_obj_t * obj, const lv_grad_dsc_t * value, lv_style_selector_t selector);
578 void lv_obj_set_style_bg_dither_mode(struct _lv_obj_t * obj, lv_dither_mode_t value, lv_style_selector_t selector);
579 void lv_obj_set_style_bg_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector);
580 void lv_obj_set_style_bg_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
581 void lv_obj_set_style_bg_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
582 void lv_obj_set_style_bg_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
583 void lv_obj_set_style_bg_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
584 void lv_obj_set_style_bg_img_tiled(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
585 void lv_obj_set_style_border_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
586 void lv_obj_set_style_border_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
587 void lv_obj_set_style_border_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
588 void lv_obj_set_style_border_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
589 void lv_obj_set_style_border_side(struct _lv_obj_t * obj, lv_border_side_t value, lv_style_selector_t selector);
590 void lv_obj_set_style_border_post(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
591 void lv_obj_set_style_outline_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
592 void lv_obj_set_style_outline_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
593 void lv_obj_set_style_outline_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
594 void lv_obj_set_style_outline_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
595 void lv_obj_set_style_outline_pad(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
596 void lv_obj_set_style_shadow_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
597 void lv_obj_set_style_shadow_ofs_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
598 void lv_obj_set_style_shadow_ofs_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
599 void lv_obj_set_style_shadow_spread(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
600 void lv_obj_set_style_shadow_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
601 void lv_obj_set_style_shadow_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
602 void lv_obj_set_style_shadow_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
603 void lv_obj_set_style_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
604 void lv_obj_set_style_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
605 void lv_obj_set_style_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
606 void lv_obj_set_style_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
607 void lv_obj_set_style_line_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
608 void lv_obj_set_style_line_dash_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
609 void lv_obj_set_style_line_dash_gap(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
610 void lv_obj_set_style_line_rounded(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
611 void lv_obj_set_style_line_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
612 void lv_obj_set_style_line_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
613 void lv_obj_set_style_line_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
614 void lv_obj_set_style_arc_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
615 void lv_obj_set_style_arc_rounded(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
616 void lv_obj_set_style_arc_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
617 void lv_obj_set_style_arc_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
618 void lv_obj_set_style_arc_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
619 void lv_obj_set_style_arc_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector);
620 void lv_obj_set_style_text_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
621 void lv_obj_set_style_text_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector);
622 void lv_obj_set_style_text_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
623 void lv_obj_set_style_text_font(struct _lv_obj_t * obj, const lv_font_t * value, lv_style_selector_t selector);
624 void lv_obj_set_style_text_letter_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
625 void lv_obj_set_style_text_line_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
626 void 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_align(struct _lv_obj_t * obj, lv_text_align_t value, lv_style_selector_t selector);
628 void lv_obj_set_style_radius(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
629 void lv_obj_set_style_clip_corner(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector);
630 void lv_obj_set_style_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
631 void lv_obj_set_style_color_filter_dsc(struct _lv_obj_t * obj, const lv_color_filter_dsc_t * value,
632                                        lv_style_selector_t selector);
633 void lv_obj_set_style_color_filter_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector);
634 void lv_obj_set_style_anim_time(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector);
635 void lv_obj_set_style_anim_speed(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector);
636 void lv_obj_set_style_transition(struct _lv_obj_t * obj, const lv_style_transition_dsc_t * value,
637                                  lv_style_selector_t selector);
638 void lv_obj_set_style_blend_mode(struct _lv_obj_t * obj, lv_blend_mode_t value, lv_style_selector_t selector);
639 void lv_obj_set_style_layout(struct _lv_obj_t * obj, uint16_t value, lv_style_selector_t selector);
640 void lv_obj_set_style_base_dir(struct _lv_obj_t * obj, lv_base_dir_t value, lv_style_selector_t selector);
641