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