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