1 2 /* 3 ********************************************************************** 4 * DO NOT EDIT 5 * This file is automatically generated by "style_api_gen.py" 6 ********************************************************************** 7 */ 8 9 10 #ifndef LV_STYLE_GEN_H 11 #define LV_STYLE_GEN_H 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 void lv_style_set_width(lv_style_t * style, int32_t value); 18 void lv_style_set_min_width(lv_style_t * style, int32_t value); 19 void lv_style_set_max_width(lv_style_t * style, int32_t value); 20 void lv_style_set_height(lv_style_t * style, int32_t value); 21 void lv_style_set_min_height(lv_style_t * style, int32_t value); 22 void lv_style_set_max_height(lv_style_t * style, int32_t value); 23 void lv_style_set_length(lv_style_t * style, int32_t value); 24 void lv_style_set_x(lv_style_t * style, int32_t value); 25 void lv_style_set_y(lv_style_t * style, int32_t value); 26 void lv_style_set_align(lv_style_t * style, lv_align_t value); 27 void lv_style_set_transform_width(lv_style_t * style, int32_t value); 28 void lv_style_set_transform_height(lv_style_t * style, int32_t value); 29 void lv_style_set_translate_x(lv_style_t * style, int32_t value); 30 void lv_style_set_translate_y(lv_style_t * style, int32_t value); 31 void lv_style_set_translate_radial(lv_style_t * style, int32_t value); 32 void lv_style_set_transform_scale_x(lv_style_t * style, int32_t value); 33 void lv_style_set_transform_scale_y(lv_style_t * style, int32_t value); 34 void lv_style_set_transform_rotation(lv_style_t * style, int32_t value); 35 void lv_style_set_transform_pivot_x(lv_style_t * style, int32_t value); 36 void lv_style_set_transform_pivot_y(lv_style_t * style, int32_t value); 37 void lv_style_set_transform_skew_x(lv_style_t * style, int32_t value); 38 void lv_style_set_transform_skew_y(lv_style_t * style, int32_t value); 39 void lv_style_set_pad_top(lv_style_t * style, int32_t value); 40 void lv_style_set_pad_bottom(lv_style_t * style, int32_t value); 41 void lv_style_set_pad_left(lv_style_t * style, int32_t value); 42 void lv_style_set_pad_right(lv_style_t * style, int32_t value); 43 void lv_style_set_pad_row(lv_style_t * style, int32_t value); 44 void lv_style_set_pad_column(lv_style_t * style, int32_t value); 45 void lv_style_set_pad_radial(lv_style_t * style, int32_t value); 46 void lv_style_set_margin_top(lv_style_t * style, int32_t value); 47 void lv_style_set_margin_bottom(lv_style_t * style, int32_t value); 48 void lv_style_set_margin_left(lv_style_t * style, int32_t value); 49 void lv_style_set_margin_right(lv_style_t * style, int32_t value); 50 void lv_style_set_bg_color(lv_style_t * style, lv_color_t value); 51 void lv_style_set_bg_opa(lv_style_t * style, lv_opa_t value); 52 void lv_style_set_bg_grad_color(lv_style_t * style, lv_color_t value); 53 void lv_style_set_bg_grad_dir(lv_style_t * style, lv_grad_dir_t value); 54 void lv_style_set_bg_main_stop(lv_style_t * style, int32_t value); 55 void lv_style_set_bg_grad_stop(lv_style_t * style, int32_t value); 56 void lv_style_set_bg_main_opa(lv_style_t * style, lv_opa_t value); 57 void lv_style_set_bg_grad_opa(lv_style_t * style, lv_opa_t value); 58 void lv_style_set_bg_grad(lv_style_t * style, const lv_grad_dsc_t * value); 59 void lv_style_set_bg_image_src(lv_style_t * style, const void * value); 60 void lv_style_set_bg_image_opa(lv_style_t * style, lv_opa_t value); 61 void lv_style_set_bg_image_recolor(lv_style_t * style, lv_color_t value); 62 void lv_style_set_bg_image_recolor_opa(lv_style_t * style, lv_opa_t value); 63 void lv_style_set_bg_image_tiled(lv_style_t * style, bool value); 64 void lv_style_set_border_color(lv_style_t * style, lv_color_t value); 65 void lv_style_set_border_opa(lv_style_t * style, lv_opa_t value); 66 void lv_style_set_border_width(lv_style_t * style, int32_t value); 67 void lv_style_set_border_side(lv_style_t * style, lv_border_side_t value); 68 void lv_style_set_border_post(lv_style_t * style, bool value); 69 void lv_style_set_outline_width(lv_style_t * style, int32_t value); 70 void lv_style_set_outline_color(lv_style_t * style, lv_color_t value); 71 void lv_style_set_outline_opa(lv_style_t * style, lv_opa_t value); 72 void lv_style_set_outline_pad(lv_style_t * style, int32_t value); 73 void lv_style_set_shadow_width(lv_style_t * style, int32_t value); 74 void lv_style_set_shadow_offset_x(lv_style_t * style, int32_t value); 75 void lv_style_set_shadow_offset_y(lv_style_t * style, int32_t value); 76 void lv_style_set_shadow_spread(lv_style_t * style, int32_t value); 77 void lv_style_set_shadow_color(lv_style_t * style, lv_color_t value); 78 void lv_style_set_shadow_opa(lv_style_t * style, lv_opa_t value); 79 void lv_style_set_image_opa(lv_style_t * style, lv_opa_t value); 80 void lv_style_set_image_recolor(lv_style_t * style, lv_color_t value); 81 void lv_style_set_image_recolor_opa(lv_style_t * style, lv_opa_t value); 82 void lv_style_set_line_width(lv_style_t * style, int32_t value); 83 void lv_style_set_line_dash_width(lv_style_t * style, int32_t value); 84 void lv_style_set_line_dash_gap(lv_style_t * style, int32_t value); 85 void lv_style_set_line_rounded(lv_style_t * style, bool value); 86 void lv_style_set_line_color(lv_style_t * style, lv_color_t value); 87 void lv_style_set_line_opa(lv_style_t * style, lv_opa_t value); 88 void lv_style_set_arc_width(lv_style_t * style, int32_t value); 89 void lv_style_set_arc_rounded(lv_style_t * style, bool value); 90 void lv_style_set_arc_color(lv_style_t * style, lv_color_t value); 91 void lv_style_set_arc_opa(lv_style_t * style, lv_opa_t value); 92 void lv_style_set_arc_image_src(lv_style_t * style, const void * value); 93 void lv_style_set_text_color(lv_style_t * style, lv_color_t value); 94 void lv_style_set_text_opa(lv_style_t * style, lv_opa_t value); 95 void lv_style_set_text_font(lv_style_t * style, const lv_font_t * value); 96 void lv_style_set_text_letter_space(lv_style_t * style, int32_t value); 97 void lv_style_set_text_line_space(lv_style_t * style, int32_t value); 98 void lv_style_set_text_decor(lv_style_t * style, lv_text_decor_t value); 99 void lv_style_set_text_align(lv_style_t * style, lv_text_align_t value); 100 void lv_style_set_radius(lv_style_t * style, int32_t value); 101 void lv_style_set_radial_offset(lv_style_t * style, int32_t value); 102 void lv_style_set_clip_corner(lv_style_t * style, bool value); 103 void lv_style_set_opa(lv_style_t * style, lv_opa_t value); 104 void lv_style_set_opa_layered(lv_style_t * style, lv_opa_t value); 105 void lv_style_set_color_filter_dsc(lv_style_t * style, const lv_color_filter_dsc_t * value); 106 void lv_style_set_color_filter_opa(lv_style_t * style, lv_opa_t value); 107 void lv_style_set_anim(lv_style_t * style, const lv_anim_t * value); 108 void lv_style_set_anim_duration(lv_style_t * style, uint32_t value); 109 void lv_style_set_transition(lv_style_t * style, const lv_style_transition_dsc_t * value); 110 void lv_style_set_blend_mode(lv_style_t * style, lv_blend_mode_t value); 111 void lv_style_set_layout(lv_style_t * style, uint16_t value); 112 void lv_style_set_base_dir(lv_style_t * style, lv_base_dir_t value); 113 void lv_style_set_bitmap_mask_src(lv_style_t * style, const void * value); 114 void lv_style_set_rotary_sensitivity(lv_style_t * style, uint32_t value); 115 #if LV_USE_FLEX 116 void lv_style_set_flex_flow(lv_style_t * style, lv_flex_flow_t value); 117 void lv_style_set_flex_main_place(lv_style_t * style, lv_flex_align_t value); 118 void lv_style_set_flex_cross_place(lv_style_t * style, lv_flex_align_t value); 119 void lv_style_set_flex_track_place(lv_style_t * style, lv_flex_align_t value); 120 void lv_style_set_flex_grow(lv_style_t * style, uint8_t value); 121 #endif /*LV_USE_FLEX*/ 122 123 #if LV_USE_GRID 124 void lv_style_set_grid_column_dsc_array(lv_style_t * style, const int32_t * value); 125 void lv_style_set_grid_column_align(lv_style_t * style, lv_grid_align_t value); 126 void lv_style_set_grid_row_dsc_array(lv_style_t * style, const int32_t * value); 127 void lv_style_set_grid_row_align(lv_style_t * style, lv_grid_align_t value); 128 void lv_style_set_grid_cell_column_pos(lv_style_t * style, int32_t value); 129 void lv_style_set_grid_cell_x_align(lv_style_t * style, lv_grid_align_t value); 130 void lv_style_set_grid_cell_column_span(lv_style_t * style, int32_t value); 131 void lv_style_set_grid_cell_row_pos(lv_style_t * style, int32_t value); 132 void lv_style_set_grid_cell_y_align(lv_style_t * style, lv_grid_align_t value); 133 void lv_style_set_grid_cell_row_span(lv_style_t * style, int32_t value); 134 #endif /*LV_USE_GRID*/ 135 136 137 #define LV_STYLE_CONST_WIDTH(val) \ 138 { \ 139 .prop = LV_STYLE_WIDTH, .value = { .num = (int32_t)val } \ 140 } 141 142 #define LV_STYLE_CONST_MIN_WIDTH(val) \ 143 { \ 144 .prop = LV_STYLE_MIN_WIDTH, .value = { .num = (int32_t)val } \ 145 } 146 147 #define LV_STYLE_CONST_MAX_WIDTH(val) \ 148 { \ 149 .prop = LV_STYLE_MAX_WIDTH, .value = { .num = (int32_t)val } \ 150 } 151 152 #define LV_STYLE_CONST_HEIGHT(val) \ 153 { \ 154 .prop = LV_STYLE_HEIGHT, .value = { .num = (int32_t)val } \ 155 } 156 157 #define LV_STYLE_CONST_MIN_HEIGHT(val) \ 158 { \ 159 .prop = LV_STYLE_MIN_HEIGHT, .value = { .num = (int32_t)val } \ 160 } 161 162 #define LV_STYLE_CONST_MAX_HEIGHT(val) \ 163 { \ 164 .prop = LV_STYLE_MAX_HEIGHT, .value = { .num = (int32_t)val } \ 165 } 166 167 #define LV_STYLE_CONST_LENGTH(val) \ 168 { \ 169 .prop = LV_STYLE_LENGTH, .value = { .num = (int32_t)val } \ 170 } 171 172 #define LV_STYLE_CONST_X(val) \ 173 { \ 174 .prop = LV_STYLE_X, .value = { .num = (int32_t)val } \ 175 } 176 177 #define LV_STYLE_CONST_Y(val) \ 178 { \ 179 .prop = LV_STYLE_Y, .value = { .num = (int32_t)val } \ 180 } 181 182 #define LV_STYLE_CONST_ALIGN(val) \ 183 { \ 184 .prop = LV_STYLE_ALIGN, .value = { .num = (int32_t)val } \ 185 } 186 187 #define LV_STYLE_CONST_TRANSFORM_WIDTH(val) \ 188 { \ 189 .prop = LV_STYLE_TRANSFORM_WIDTH, .value = { .num = (int32_t)val } \ 190 } 191 192 #define LV_STYLE_CONST_TRANSFORM_HEIGHT(val) \ 193 { \ 194 .prop = LV_STYLE_TRANSFORM_HEIGHT, .value = { .num = (int32_t)val } \ 195 } 196 197 #define LV_STYLE_CONST_TRANSLATE_X(val) \ 198 { \ 199 .prop = LV_STYLE_TRANSLATE_X, .value = { .num = (int32_t)val } \ 200 } 201 202 #define LV_STYLE_CONST_TRANSLATE_Y(val) \ 203 { \ 204 .prop = LV_STYLE_TRANSLATE_Y, .value = { .num = (int32_t)val } \ 205 } 206 207 #define LV_STYLE_CONST_TRANSLATE_RADIAL(val) \ 208 { \ 209 .prop = LV_STYLE_TRANSLATE_RADIAL, .value = { .num = (int32_t)val } \ 210 } 211 212 #define LV_STYLE_CONST_TRANSFORM_SCALE_X(val) \ 213 { \ 214 .prop = LV_STYLE_TRANSFORM_SCALE_X, .value = { .num = (int32_t)val } \ 215 } 216 217 #define LV_STYLE_CONST_TRANSFORM_SCALE_Y(val) \ 218 { \ 219 .prop = LV_STYLE_TRANSFORM_SCALE_Y, .value = { .num = (int32_t)val } \ 220 } 221 222 #define LV_STYLE_CONST_TRANSFORM_ROTATION(val) \ 223 { \ 224 .prop = LV_STYLE_TRANSFORM_ROTATION, .value = { .num = (int32_t)val } \ 225 } 226 227 #define LV_STYLE_CONST_TRANSFORM_PIVOT_X(val) \ 228 { \ 229 .prop = LV_STYLE_TRANSFORM_PIVOT_X, .value = { .num = (int32_t)val } \ 230 } 231 232 #define LV_STYLE_CONST_TRANSFORM_PIVOT_Y(val) \ 233 { \ 234 .prop = LV_STYLE_TRANSFORM_PIVOT_Y, .value = { .num = (int32_t)val } \ 235 } 236 237 #define LV_STYLE_CONST_TRANSFORM_SKEW_X(val) \ 238 { \ 239 .prop = LV_STYLE_TRANSFORM_SKEW_X, .value = { .num = (int32_t)val } \ 240 } 241 242 #define LV_STYLE_CONST_TRANSFORM_SKEW_Y(val) \ 243 { \ 244 .prop = LV_STYLE_TRANSFORM_SKEW_Y, .value = { .num = (int32_t)val } \ 245 } 246 247 #define LV_STYLE_CONST_PAD_TOP(val) \ 248 { \ 249 .prop = LV_STYLE_PAD_TOP, .value = { .num = (int32_t)val } \ 250 } 251 252 #define LV_STYLE_CONST_PAD_BOTTOM(val) \ 253 { \ 254 .prop = LV_STYLE_PAD_BOTTOM, .value = { .num = (int32_t)val } \ 255 } 256 257 #define LV_STYLE_CONST_PAD_LEFT(val) \ 258 { \ 259 .prop = LV_STYLE_PAD_LEFT, .value = { .num = (int32_t)val } \ 260 } 261 262 #define LV_STYLE_CONST_PAD_RIGHT(val) \ 263 { \ 264 .prop = LV_STYLE_PAD_RIGHT, .value = { .num = (int32_t)val } \ 265 } 266 267 #define LV_STYLE_CONST_PAD_ROW(val) \ 268 { \ 269 .prop = LV_STYLE_PAD_ROW, .value = { .num = (int32_t)val } \ 270 } 271 272 #define LV_STYLE_CONST_PAD_COLUMN(val) \ 273 { \ 274 .prop = LV_STYLE_PAD_COLUMN, .value = { .num = (int32_t)val } \ 275 } 276 277 #define LV_STYLE_CONST_PAD_RADIAL(val) \ 278 { \ 279 .prop = LV_STYLE_PAD_RADIAL, .value = { .num = (int32_t)val } \ 280 } 281 282 #define LV_STYLE_CONST_MARGIN_TOP(val) \ 283 { \ 284 .prop = LV_STYLE_MARGIN_TOP, .value = { .num = (int32_t)val } \ 285 } 286 287 #define LV_STYLE_CONST_MARGIN_BOTTOM(val) \ 288 { \ 289 .prop = LV_STYLE_MARGIN_BOTTOM, .value = { .num = (int32_t)val } \ 290 } 291 292 #define LV_STYLE_CONST_MARGIN_LEFT(val) \ 293 { \ 294 .prop = LV_STYLE_MARGIN_LEFT, .value = { .num = (int32_t)val } \ 295 } 296 297 #define LV_STYLE_CONST_MARGIN_RIGHT(val) \ 298 { \ 299 .prop = LV_STYLE_MARGIN_RIGHT, .value = { .num = (int32_t)val } \ 300 } 301 302 #define LV_STYLE_CONST_BG_COLOR(val) \ 303 { \ 304 .prop = LV_STYLE_BG_COLOR, .value = { .color = val } \ 305 } 306 307 #define LV_STYLE_CONST_BG_OPA(val) \ 308 { \ 309 .prop = LV_STYLE_BG_OPA, .value = { .num = (int32_t)val } \ 310 } 311 312 #define LV_STYLE_CONST_BG_GRAD_COLOR(val) \ 313 { \ 314 .prop = LV_STYLE_BG_GRAD_COLOR, .value = { .color = val } \ 315 } 316 317 #define LV_STYLE_CONST_BG_GRAD_DIR(val) \ 318 { \ 319 .prop = LV_STYLE_BG_GRAD_DIR, .value = { .num = (int32_t)val } \ 320 } 321 322 #define LV_STYLE_CONST_BG_MAIN_STOP(val) \ 323 { \ 324 .prop = LV_STYLE_BG_MAIN_STOP, .value = { .num = (int32_t)val } \ 325 } 326 327 #define LV_STYLE_CONST_BG_GRAD_STOP(val) \ 328 { \ 329 .prop = LV_STYLE_BG_GRAD_STOP, .value = { .num = (int32_t)val } \ 330 } 331 332 #define LV_STYLE_CONST_BG_MAIN_OPA(val) \ 333 { \ 334 .prop = LV_STYLE_BG_MAIN_OPA, .value = { .num = (int32_t)val } \ 335 } 336 337 #define LV_STYLE_CONST_BG_GRAD_OPA(val) \ 338 { \ 339 .prop = LV_STYLE_BG_GRAD_OPA, .value = { .num = (int32_t)val } \ 340 } 341 342 #define LV_STYLE_CONST_BG_GRAD(val) \ 343 { \ 344 .prop = LV_STYLE_BG_GRAD, .value = { .ptr = val } \ 345 } 346 347 #define LV_STYLE_CONST_BG_IMAGE_SRC(val) \ 348 { \ 349 .prop = LV_STYLE_BG_IMAGE_SRC, .value = { .ptr = val } \ 350 } 351 352 #define LV_STYLE_CONST_BG_IMAGE_OPA(val) \ 353 { \ 354 .prop = LV_STYLE_BG_IMAGE_OPA, .value = { .num = (int32_t)val } \ 355 } 356 357 #define LV_STYLE_CONST_BG_IMAGE_RECOLOR(val) \ 358 { \ 359 .prop = LV_STYLE_BG_IMAGE_RECOLOR, .value = { .color = val } \ 360 } 361 362 #define LV_STYLE_CONST_BG_IMAGE_RECOLOR_OPA(val) \ 363 { \ 364 .prop = LV_STYLE_BG_IMAGE_RECOLOR_OPA, .value = { .num = (int32_t)val } \ 365 } 366 367 #define LV_STYLE_CONST_BG_IMAGE_TILED(val) \ 368 { \ 369 .prop = LV_STYLE_BG_IMAGE_TILED, .value = { .num = (int32_t)val } \ 370 } 371 372 #define LV_STYLE_CONST_BORDER_COLOR(val) \ 373 { \ 374 .prop = LV_STYLE_BORDER_COLOR, .value = { .color = val } \ 375 } 376 377 #define LV_STYLE_CONST_BORDER_OPA(val) \ 378 { \ 379 .prop = LV_STYLE_BORDER_OPA, .value = { .num = (int32_t)val } \ 380 } 381 382 #define LV_STYLE_CONST_BORDER_WIDTH(val) \ 383 { \ 384 .prop = LV_STYLE_BORDER_WIDTH, .value = { .num = (int32_t)val } \ 385 } 386 387 #define LV_STYLE_CONST_BORDER_SIDE(val) \ 388 { \ 389 .prop = LV_STYLE_BORDER_SIDE, .value = { .num = (int32_t)val } \ 390 } 391 392 #define LV_STYLE_CONST_BORDER_POST(val) \ 393 { \ 394 .prop = LV_STYLE_BORDER_POST, .value = { .num = (int32_t)val } \ 395 } 396 397 #define LV_STYLE_CONST_OUTLINE_WIDTH(val) \ 398 { \ 399 .prop = LV_STYLE_OUTLINE_WIDTH, .value = { .num = (int32_t)val } \ 400 } 401 402 #define LV_STYLE_CONST_OUTLINE_COLOR(val) \ 403 { \ 404 .prop = LV_STYLE_OUTLINE_COLOR, .value = { .color = val } \ 405 } 406 407 #define LV_STYLE_CONST_OUTLINE_OPA(val) \ 408 { \ 409 .prop = LV_STYLE_OUTLINE_OPA, .value = { .num = (int32_t)val } \ 410 } 411 412 #define LV_STYLE_CONST_OUTLINE_PAD(val) \ 413 { \ 414 .prop = LV_STYLE_OUTLINE_PAD, .value = { .num = (int32_t)val } \ 415 } 416 417 #define LV_STYLE_CONST_SHADOW_WIDTH(val) \ 418 { \ 419 .prop = LV_STYLE_SHADOW_WIDTH, .value = { .num = (int32_t)val } \ 420 } 421 422 #define LV_STYLE_CONST_SHADOW_OFFSET_X(val) \ 423 { \ 424 .prop = LV_STYLE_SHADOW_OFFSET_X, .value = { .num = (int32_t)val } \ 425 } 426 427 #define LV_STYLE_CONST_SHADOW_OFFSET_Y(val) \ 428 { \ 429 .prop = LV_STYLE_SHADOW_OFFSET_Y, .value = { .num = (int32_t)val } \ 430 } 431 432 #define LV_STYLE_CONST_SHADOW_SPREAD(val) \ 433 { \ 434 .prop = LV_STYLE_SHADOW_SPREAD, .value = { .num = (int32_t)val } \ 435 } 436 437 #define LV_STYLE_CONST_SHADOW_COLOR(val) \ 438 { \ 439 .prop = LV_STYLE_SHADOW_COLOR, .value = { .color = val } \ 440 } 441 442 #define LV_STYLE_CONST_SHADOW_OPA(val) \ 443 { \ 444 .prop = LV_STYLE_SHADOW_OPA, .value = { .num = (int32_t)val } \ 445 } 446 447 #define LV_STYLE_CONST_IMAGE_OPA(val) \ 448 { \ 449 .prop = LV_STYLE_IMAGE_OPA, .value = { .num = (int32_t)val } \ 450 } 451 452 #define LV_STYLE_CONST_IMAGE_RECOLOR(val) \ 453 { \ 454 .prop = LV_STYLE_IMAGE_RECOLOR, .value = { .color = val } \ 455 } 456 457 #define LV_STYLE_CONST_IMAGE_RECOLOR_OPA(val) \ 458 { \ 459 .prop = LV_STYLE_IMAGE_RECOLOR_OPA, .value = { .num = (int32_t)val } \ 460 } 461 462 #define LV_STYLE_CONST_LINE_WIDTH(val) \ 463 { \ 464 .prop = LV_STYLE_LINE_WIDTH, .value = { .num = (int32_t)val } \ 465 } 466 467 #define LV_STYLE_CONST_LINE_DASH_WIDTH(val) \ 468 { \ 469 .prop = LV_STYLE_LINE_DASH_WIDTH, .value = { .num = (int32_t)val } \ 470 } 471 472 #define LV_STYLE_CONST_LINE_DASH_GAP(val) \ 473 { \ 474 .prop = LV_STYLE_LINE_DASH_GAP, .value = { .num = (int32_t)val } \ 475 } 476 477 #define LV_STYLE_CONST_LINE_ROUNDED(val) \ 478 { \ 479 .prop = LV_STYLE_LINE_ROUNDED, .value = { .num = (int32_t)val } \ 480 } 481 482 #define LV_STYLE_CONST_LINE_COLOR(val) \ 483 { \ 484 .prop = LV_STYLE_LINE_COLOR, .value = { .color = val } \ 485 } 486 487 #define LV_STYLE_CONST_LINE_OPA(val) \ 488 { \ 489 .prop = LV_STYLE_LINE_OPA, .value = { .num = (int32_t)val } \ 490 } 491 492 #define LV_STYLE_CONST_ARC_WIDTH(val) \ 493 { \ 494 .prop = LV_STYLE_ARC_WIDTH, .value = { .num = (int32_t)val } \ 495 } 496 497 #define LV_STYLE_CONST_ARC_ROUNDED(val) \ 498 { \ 499 .prop = LV_STYLE_ARC_ROUNDED, .value = { .num = (int32_t)val } \ 500 } 501 502 #define LV_STYLE_CONST_ARC_COLOR(val) \ 503 { \ 504 .prop = LV_STYLE_ARC_COLOR, .value = { .color = val } \ 505 } 506 507 #define LV_STYLE_CONST_ARC_OPA(val) \ 508 { \ 509 .prop = LV_STYLE_ARC_OPA, .value = { .num = (int32_t)val } \ 510 } 511 512 #define LV_STYLE_CONST_ARC_IMAGE_SRC(val) \ 513 { \ 514 .prop = LV_STYLE_ARC_IMAGE_SRC, .value = { .ptr = val } \ 515 } 516 517 #define LV_STYLE_CONST_TEXT_COLOR(val) \ 518 { \ 519 .prop = LV_STYLE_TEXT_COLOR, .value = { .color = val } \ 520 } 521 522 #define LV_STYLE_CONST_TEXT_OPA(val) \ 523 { \ 524 .prop = LV_STYLE_TEXT_OPA, .value = { .num = (int32_t)val } \ 525 } 526 527 #define LV_STYLE_CONST_TEXT_FONT(val) \ 528 { \ 529 .prop = LV_STYLE_TEXT_FONT, .value = { .ptr = val } \ 530 } 531 532 #define LV_STYLE_CONST_TEXT_LETTER_SPACE(val) \ 533 { \ 534 .prop = LV_STYLE_TEXT_LETTER_SPACE, .value = { .num = (int32_t)val } \ 535 } 536 537 #define LV_STYLE_CONST_TEXT_LINE_SPACE(val) \ 538 { \ 539 .prop = LV_STYLE_TEXT_LINE_SPACE, .value = { .num = (int32_t)val } \ 540 } 541 542 #define LV_STYLE_CONST_TEXT_DECOR(val) \ 543 { \ 544 .prop = LV_STYLE_TEXT_DECOR, .value = { .num = (int32_t)val } \ 545 } 546 547 #define LV_STYLE_CONST_TEXT_ALIGN(val) \ 548 { \ 549 .prop = LV_STYLE_TEXT_ALIGN, .value = { .num = (int32_t)val } \ 550 } 551 552 #define LV_STYLE_CONST_RADIUS(val) \ 553 { \ 554 .prop = LV_STYLE_RADIUS, .value = { .num = (int32_t)val } \ 555 } 556 557 #define LV_STYLE_CONST_RADIAL_OFFSET(val) \ 558 { \ 559 .prop = LV_STYLE_RADIAL_OFFSET, .value = { .num = (int32_t)val } \ 560 } 561 562 #define LV_STYLE_CONST_CLIP_CORNER(val) \ 563 { \ 564 .prop = LV_STYLE_CLIP_CORNER, .value = { .num = (int32_t)val } \ 565 } 566 567 #define LV_STYLE_CONST_OPA(val) \ 568 { \ 569 .prop = LV_STYLE_OPA, .value = { .num = (int32_t)val } \ 570 } 571 572 #define LV_STYLE_CONST_OPA_LAYERED(val) \ 573 { \ 574 .prop = LV_STYLE_OPA_LAYERED, .value = { .num = (int32_t)val } \ 575 } 576 577 #define LV_STYLE_CONST_COLOR_FILTER_DSC(val) \ 578 { \ 579 .prop = LV_STYLE_COLOR_FILTER_DSC, .value = { .ptr = val } \ 580 } 581 582 #define LV_STYLE_CONST_COLOR_FILTER_OPA(val) \ 583 { \ 584 .prop = LV_STYLE_COLOR_FILTER_OPA, .value = { .num = (int32_t)val } \ 585 } 586 587 #define LV_STYLE_CONST_ANIM(val) \ 588 { \ 589 .prop = LV_STYLE_ANIM, .value = { .ptr = val } \ 590 } 591 592 #define LV_STYLE_CONST_ANIM_DURATION(val) \ 593 { \ 594 .prop = LV_STYLE_ANIM_DURATION, .value = { .num = (int32_t)val } \ 595 } 596 597 #define LV_STYLE_CONST_TRANSITION(val) \ 598 { \ 599 .prop = LV_STYLE_TRANSITION, .value = { .ptr = val } \ 600 } 601 602 #define LV_STYLE_CONST_BLEND_MODE(val) \ 603 { \ 604 .prop = LV_STYLE_BLEND_MODE, .value = { .num = (int32_t)val } \ 605 } 606 607 #define LV_STYLE_CONST_LAYOUT(val) \ 608 { \ 609 .prop = LV_STYLE_LAYOUT, .value = { .num = (int32_t)val } \ 610 } 611 612 #define LV_STYLE_CONST_BASE_DIR(val) \ 613 { \ 614 .prop = LV_STYLE_BASE_DIR, .value = { .num = (int32_t)val } \ 615 } 616 617 #define LV_STYLE_CONST_BITMAP_MASK_SRC(val) \ 618 { \ 619 .prop = LV_STYLE_BITMAP_MASK_SRC, .value = { .ptr = val } \ 620 } 621 622 #define LV_STYLE_CONST_ROTARY_SENSITIVITY(val) \ 623 { \ 624 .prop = LV_STYLE_ROTARY_SENSITIVITY, .value = { .num = (int32_t)val } \ 625 } 626 #if LV_USE_FLEX 627 628 #define LV_STYLE_CONST_FLEX_FLOW(val) \ 629 { \ 630 .prop = LV_STYLE_FLEX_FLOW, .value = { .num = (int32_t)val } \ 631 } 632 633 #define LV_STYLE_CONST_FLEX_MAIN_PLACE(val) \ 634 { \ 635 .prop = LV_STYLE_FLEX_MAIN_PLACE, .value = { .num = (int32_t)val } \ 636 } 637 638 #define LV_STYLE_CONST_FLEX_CROSS_PLACE(val) \ 639 { \ 640 .prop = LV_STYLE_FLEX_CROSS_PLACE, .value = { .num = (int32_t)val } \ 641 } 642 643 #define LV_STYLE_CONST_FLEX_TRACK_PLACE(val) \ 644 { \ 645 .prop = LV_STYLE_FLEX_TRACK_PLACE, .value = { .num = (int32_t)val } \ 646 } 647 648 #define LV_STYLE_CONST_FLEX_GROW(val) \ 649 { \ 650 .prop = LV_STYLE_FLEX_GROW, .value = { .num = (int32_t)val } \ 651 } 652 #endif /*LV_USE_FLEX*/ 653 654 #if LV_USE_GRID 655 656 #define LV_STYLE_CONST_GRID_COLUMN_DSC_ARRAY(val) \ 657 { \ 658 .prop = LV_STYLE_GRID_COLUMN_DSC_ARRAY, .value = { .ptr = val } \ 659 } 660 661 #define LV_STYLE_CONST_GRID_COLUMN_ALIGN(val) \ 662 { \ 663 .prop = LV_STYLE_GRID_COLUMN_ALIGN, .value = { .num = (int32_t)val } \ 664 } 665 666 #define LV_STYLE_CONST_GRID_ROW_DSC_ARRAY(val) \ 667 { \ 668 .prop = LV_STYLE_GRID_ROW_DSC_ARRAY, .value = { .ptr = val } \ 669 } 670 671 #define LV_STYLE_CONST_GRID_ROW_ALIGN(val) \ 672 { \ 673 .prop = LV_STYLE_GRID_ROW_ALIGN, .value = { .num = (int32_t)val } \ 674 } 675 676 #define LV_STYLE_CONST_GRID_CELL_COLUMN_POS(val) \ 677 { \ 678 .prop = LV_STYLE_GRID_CELL_COLUMN_POS, .value = { .num = (int32_t)val } \ 679 } 680 681 #define LV_STYLE_CONST_GRID_CELL_X_ALIGN(val) \ 682 { \ 683 .prop = LV_STYLE_GRID_CELL_X_ALIGN, .value = { .num = (int32_t)val } \ 684 } 685 686 #define LV_STYLE_CONST_GRID_CELL_COLUMN_SPAN(val) \ 687 { \ 688 .prop = LV_STYLE_GRID_CELL_COLUMN_SPAN, .value = { .num = (int32_t)val } \ 689 } 690 691 #define LV_STYLE_CONST_GRID_CELL_ROW_POS(val) \ 692 { \ 693 .prop = LV_STYLE_GRID_CELL_ROW_POS, .value = { .num = (int32_t)val } \ 694 } 695 696 #define LV_STYLE_CONST_GRID_CELL_Y_ALIGN(val) \ 697 { \ 698 .prop = LV_STYLE_GRID_CELL_Y_ALIGN, .value = { .num = (int32_t)val } \ 699 } 700 701 #define LV_STYLE_CONST_GRID_CELL_ROW_SPAN(val) \ 702 { \ 703 .prop = LV_STYLE_GRID_CELL_ROW_SPAN, .value = { .num = (int32_t)val } \ 704 } 705 #endif /*LV_USE_GRID*/ 706 707 708 #ifdef __cplusplus 709 } /* extern "C" */ 710 #endif 711 712 #endif /* LV_STYLE_GEN_H */ 713