/lvgl-latest/src/misc/ |
D | lv_style_gen.c | 3 void lv_style_set_width(lv_style_t * style, lv_coord_t value) in lv_style_set_width() argument 8 lv_style_set_prop(style, LV_STYLE_WIDTH, v); in lv_style_set_width() 11 void lv_style_set_min_width(lv_style_t * style, lv_coord_t value) in lv_style_set_min_width() argument 16 lv_style_set_prop(style, LV_STYLE_MIN_WIDTH, v); in lv_style_set_min_width() 19 void lv_style_set_max_width(lv_style_t * style, lv_coord_t value) in lv_style_set_max_width() argument 24 lv_style_set_prop(style, LV_STYLE_MAX_WIDTH, v); in lv_style_set_max_width() 27 void lv_style_set_height(lv_style_t * style, lv_coord_t value) in lv_style_set_height() argument 32 lv_style_set_prop(style, LV_STYLE_HEIGHT, v); in lv_style_set_height() 35 void lv_style_set_min_height(lv_style_t * style, lv_coord_t value) in lv_style_set_min_height() argument 40 lv_style_set_prop(style, LV_STYLE_MIN_HEIGHT, v); in lv_style_set_min_height() [all …]
|
D | lv_style.c | 27 static void lv_style_set_prop_internal(lv_style_t * style, lv_style_prop_t prop_and_meta, lv_style_… 151 void lv_style_init(lv_style_t * style) in lv_style_init() argument 154 if(style->sentinel == LV_STYLE_SENTINEL_VALUE && style->prop_cnt > 1) { in lv_style_init() 159 lv_memset_00(style, sizeof(lv_style_t)); in lv_style_init() 161 style->sentinel = LV_STYLE_SENTINEL_VALUE; in lv_style_init() 165 void lv_style_reset(lv_style_t * style) in lv_style_reset() argument 167 LV_ASSERT_STYLE(style); in lv_style_reset() 169 if(style->prop1 == LV_STYLE_PROP_ANY) { in lv_style_reset() 174 if(style->prop_cnt > 1) lv_mem_free(style->v_p.values_and_props); in lv_style_reset() 175 lv_memset_00(style, sizeof(lv_style_t)); in lv_style_reset() [all …]
|
D | lv_style_gen.h | 1 void lv_style_set_width(lv_style_t * style, lv_coord_t value); 2 void lv_style_set_min_width(lv_style_t * style, lv_coord_t value); 3 void lv_style_set_max_width(lv_style_t * style, lv_coord_t value); 4 void lv_style_set_height(lv_style_t * style, lv_coord_t value); 5 void lv_style_set_min_height(lv_style_t * style, lv_coord_t value); 6 void lv_style_set_max_height(lv_style_t * style, lv_coord_t value); 7 void lv_style_set_x(lv_style_t * style, lv_coord_t value); 8 void lv_style_set_y(lv_style_t * style, lv_coord_t value); 9 void lv_style_set_align(lv_style_t * style, lv_align_t value); 10 void lv_style_set_transform_width(lv_style_t * style, lv_coord_t value); [all …]
|
D | lv_style.h | 349 void lv_style_init(lv_style_t * style); 355 void lv_style_reset(lv_style_t * style); 383 bool lv_style_remove_prop(lv_style_t * style, lv_style_prop_t prop); 393 void lv_style_set_prop(lv_style_t * style, lv_style_prop_t prop, lv_style_value_t value); 402 void lv_style_set_prop_meta(lv_style_t * style, lv_style_prop_t prop, uint16_t meta); 413 lv_style_res_t lv_style_get_prop(const lv_style_t * style, lv_style_prop_t prop, lv_style_value_t *… 448 static inline lv_style_res_t lv_style_get_prop_inlined(const lv_style_t * style, lv_style_prop_t pr… in lv_style_get_prop_inlined() argument 451 if(style->prop1 == LV_STYLE_PROP_ANY) { in lv_style_get_prop_inlined() 454 for(i = 0; i < style->prop_cnt; i++) { in lv_style_get_prop_inlined() 455 const_prop = style->v_p.const_props + i; in lv_style_get_prop_inlined() [all …]
|
/lvgl-latest/examples/widgets/btn/ |
D | lv_example_btn_2.c | 10 static lv_style_t style; in lv_example_btn_2() local 11 lv_style_init(&style); in lv_example_btn_2() 13 lv_style_set_radius(&style, 3); in lv_example_btn_2() 15 lv_style_set_bg_opa(&style, LV_OPA_100); in lv_example_btn_2() 16 lv_style_set_bg_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_btn_2() 17 lv_style_set_bg_grad_color(&style, lv_palette_darken(LV_PALETTE_BLUE, 2)); in lv_example_btn_2() 18 lv_style_set_bg_grad_dir(&style, LV_GRAD_DIR_VER); in lv_example_btn_2() 20 lv_style_set_border_opa(&style, LV_OPA_40); in lv_example_btn_2() 21 lv_style_set_border_width(&style, 2); in lv_example_btn_2() 22 lv_style_set_border_color(&style, lv_palette_main(LV_PALETTE_GREY)); in lv_example_btn_2() [all …]
|
D | lv_example_btn_2.py | 6 style = lv.style_t() variable 7 style.init() 9 style.set_radius(3) 11 style.set_bg_opa(lv.OPA.COVER) 12 style.set_bg_color(lv.palette_main(lv.PALETTE.BLUE)) 13 style.set_bg_grad_color(lv.palette_darken(lv.PALETTE.BLUE, 2)) 14 style.set_bg_grad_dir(lv.GRAD_DIR.VER) 16 style.set_border_opa(lv.OPA._40) 17 style.set_border_width(2) 18 style.set_border_color(lv.palette_main(lv.PALETTE.GREY)) [all …]
|
/lvgl-latest/examples/styles/ |
D | lv_example_style_8.c | 9 static lv_style_t style; in lv_example_style_8() local 10 lv_style_init(&style); in lv_example_style_8() 12 lv_style_set_radius(&style, 5); in lv_example_style_8() 13 lv_style_set_bg_opa(&style, LV_OPA_COVER); in lv_example_style_8() 14 lv_style_set_bg_color(&style, lv_palette_lighten(LV_PALETTE_GREY, 2)); in lv_example_style_8() 15 lv_style_set_border_width(&style, 2); in lv_example_style_8() 16 lv_style_set_border_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_style_8() 17 lv_style_set_pad_all(&style, 10); in lv_example_style_8() 19 lv_style_set_text_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_style_8() 20 lv_style_set_text_letter_space(&style, 5); in lv_example_style_8() [all …]
|
D | lv_example_style_8.py | 5 style = lv.style_t() variable 6 style.init() 8 style.set_radius(5) 9 style.set_bg_opa(lv.OPA.COVER) 10 style.set_bg_color(lv.palette_lighten(lv.PALETTE.GREY, 3)) 11 style.set_border_width(2) 12 style.set_border_color(lv.palette_main(lv.PALETTE.BLUE)) 13 style.set_pad_all(10) 15 style.set_text_color(lv.palette_main(lv.PALETTE.BLUE)) 16 style.set_text_letter_space(5) [all …]
|
D | lv_example_style_6.c | 9 static lv_style_t style; in lv_example_style_6() local 10 lv_style_init(&style); in lv_example_style_6() 13 lv_style_set_radius(&style, 5); in lv_example_style_6() 14 lv_style_set_bg_opa(&style, LV_OPA_COVER); in lv_example_style_6() 15 lv_style_set_bg_color(&style, lv_palette_lighten(LV_PALETTE_GREY, 3)); in lv_example_style_6() 16 lv_style_set_border_width(&style, 2); in lv_example_style_6() 17 lv_style_set_border_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_style_6() 19 lv_style_set_img_recolor(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_style_6() 20 lv_style_set_img_recolor_opa(&style, LV_OPA_50); in lv_example_style_6() 21 lv_style_set_transform_angle(&style, 300); in lv_example_style_6() [all …]
|
D | lv_example_style_1.c | 9 static lv_style_t style; in lv_example_style_1() local 10 lv_style_init(&style); in lv_example_style_1() 11 lv_style_set_radius(&style, 5); in lv_example_style_1() 14 lv_style_set_width(&style, 150); in lv_example_style_1() 15 lv_style_set_height(&style, LV_SIZE_CONTENT); in lv_example_style_1() 17 lv_style_set_pad_ver(&style, 20); in lv_example_style_1() 18 lv_style_set_pad_left(&style, 5); in lv_example_style_1() 20 lv_style_set_x(&style, lv_pct(50)); in lv_example_style_1() 21 lv_style_set_y(&style, 80); in lv_example_style_1() 25 lv_obj_add_style(obj, &style, 0); in lv_example_style_1()
|
D | lv_example_style_3.c | 9 static lv_style_t style; in lv_example_style_3() local 10 lv_style_init(&style); in lv_example_style_3() 13 lv_style_set_radius(&style, 10); in lv_example_style_3() 14 lv_style_set_bg_opa(&style, LV_OPA_COVER); in lv_example_style_3() 15 lv_style_set_bg_color(&style, lv_palette_lighten(LV_PALETTE_GREY, 1)); in lv_example_style_3() 18 lv_style_set_border_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_style_3() 19 lv_style_set_border_width(&style, 5); in lv_example_style_3() 20 lv_style_set_border_opa(&style, LV_OPA_50); in lv_example_style_3() 21 lv_style_set_border_side(&style, LV_BORDER_SIDE_BOTTOM | LV_BORDER_SIDE_RIGHT); in lv_example_style_3() 25 lv_obj_add_style(obj, &style, 0); in lv_example_style_3()
|
D | lv_example_style_1.py | 4 style = lv.style_t() variable 5 style.init() 6 style.set_radius(5) 9 style.set_width(150) 10 style.set_height(lv.SIZE.CONTENT) 12 style.set_pad_ver(20) 13 style.set_pad_left(5) 15 style.set_x(lv.pct(50)) 16 style.set_y(80) 20 obj.add_style(style, 0)
|
D | lv_example_style_5.py | 5 style = lv.style_t() variable 6 style.init() 9 style.set_radius(5) 10 style.set_bg_opa(lv.OPA.COVER) 11 style.set_bg_color(lv.palette_lighten(lv.PALETTE.GREY, 1)) 14 style.set_shadow_width(8) 15 style.set_shadow_color(lv.palette_main(lv.PALETTE.BLUE)) 16 style.set_shadow_ofs_x(10) 17 style.set_shadow_ofs_y(20) 21 obj.add_style(style, 0)
|
D | lv_example_style_2.py | 4 style = lv.style_t() variable 5 style.init() 6 style.set_radius(5) 9 style.set_bg_opa(lv.OPA.COVER) 10 style.set_bg_color(lv.palette_lighten(lv.PALETTE.GREY, 1)) 11 style.set_bg_grad_color(lv.palette_main(lv.PALETTE.BLUE)) 12 style.set_bg_grad_dir(lv.GRAD_DIR.VER) 15 style.set_bg_main_stop(128) 16 style.set_bg_grad_stop(192) 20 obj.add_style(style, 0)
|
D | lv_example_style_3.py | 4 style = lv.style_t() variable 5 style.init() 8 style.set_radius(10) 9 style.set_bg_opa(lv.OPA.COVER) 10 style.set_bg_color(lv.palette_lighten(lv.PALETTE.GREY, 1)) 13 style.set_border_color(lv.palette_main(lv.PALETTE.BLUE)) 14 style.set_border_width(5) 15 style.set_border_opa(lv.OPA._50) 16 style.set_border_side(lv.BORDER_SIDE.BOTTOM | lv.BORDER_SIDE.RIGHT) 20 obj.add_style(style, 0)
|
D | lv_example_style_4.c | 9 static lv_style_t style; in lv_example_style_4() local 10 lv_style_init(&style); in lv_example_style_4() 13 lv_style_set_radius(&style, 5); in lv_example_style_4() 14 lv_style_set_bg_opa(&style, LV_OPA_COVER); in lv_example_style_4() 15 lv_style_set_bg_color(&style, lv_palette_lighten(LV_PALETTE_GREY, 1)); in lv_example_style_4() 18 lv_style_set_outline_width(&style, 2); in lv_example_style_4() 19 lv_style_set_outline_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_style_4() 20 lv_style_set_outline_pad(&style, 8); in lv_example_style_4() 24 lv_obj_add_style(obj, &style, 0); in lv_example_style_4()
|
D | lv_example_style_4.py | 5 style = lv.style_t() variable 6 style.init() 9 style.set_radius(5) 10 style.set_bg_opa(lv.OPA.COVER) 11 style.set_bg_color(lv.palette_lighten(lv.PALETTE.GREY, 1)) 14 style.set_outline_width(2) 15 style.set_outline_color(lv.palette_main(lv.PALETTE.BLUE)) 16 style.set_outline_pad(8) 20 obj.add_style(style, 0)
|
D | lv_example_style_5.c | 9 static lv_style_t style; in lv_example_style_5() local 10 lv_style_init(&style); in lv_example_style_5() 13 lv_style_set_radius(&style, 5); in lv_example_style_5() 14 lv_style_set_bg_opa(&style, LV_OPA_COVER); in lv_example_style_5() 15 lv_style_set_bg_color(&style, lv_palette_lighten(LV_PALETTE_GREY, 1)); in lv_example_style_5() 18 lv_style_set_shadow_width(&style, 55); in lv_example_style_5() 19 lv_style_set_shadow_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_style_5() 25 lv_obj_add_style(obj, &style, 0); in lv_example_style_5()
|
D | lv_example_style_6.py | 23 style = lv.style_t() variable 24 style.init() 27 style.set_radius(5) 28 style.set_bg_opa(lv.OPA.COVER) 29 style.set_bg_color(lv.palette_lighten(lv.PALETTE.GREY, 3)) 30 style.set_border_width(2) 31 style.set_border_color(lv.palette_main(lv.PALETTE.BLUE)) 33 style.set_img_recolor(lv.palette_main(lv.PALETTE.BLUE)) 34 style.set_img_recolor_opa(lv.OPA._50) 39 obj.add_style(style, 0)
|
/lvgl-latest/examples/scroll/ |
D | lv_example_scroll_4.c | 39 static lv_style_t style; in lv_example_scroll_4() local 40 lv_style_init(&style); in lv_example_scroll_4() 41 lv_style_set_width(&style, 4); /*Width of the scrollbar*/ in lv_example_scroll_4() 42 lv_style_set_pad_right(&style, 5); /*Space from the parallel side*/ in lv_example_scroll_4() 43 lv_style_set_pad_top(&style, 5); /*Space from the perpendicular side*/ in lv_example_scroll_4() 45 lv_style_set_radius(&style, 2); in lv_example_scroll_4() 46 lv_style_set_bg_opa(&style, LV_OPA_70); in lv_example_scroll_4() 47 lv_style_set_bg_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_scroll_4() 48 lv_style_set_border_color(&style, lv_palette_darken(LV_PALETTE_BLUE, 3)); in lv_example_scroll_4() 49 lv_style_set_border_width(&style, 2); in lv_example_scroll_4() [all …]
|
D | lv_example_scroll_4.py | 37 style = lv.style_t() variable 38 style.init() 39 style.set_width(4) # Width of the scrollbar 40 style.set_pad_right(5) # Space from the parallel side 41 style.set_pad_top(5) # Space from the perpendicular side 43 style.set_radius(2) 44 style.set_bg_opa(lv.OPA._70) 45 style.set_bg_color(lv.palette_main(lv.PALETTE.BLUE)) 46 style.set_border_color(lv.palette_darken(lv.PALETTE.BLUE, 3)) 47 style.set_border_width(2) [all …]
|
/lvgl-latest/examples/widgets/span/ |
D | lv_example_span_1.c | 9 static lv_style_t style; in lv_example_span_1() local 10 lv_style_init(&style); in lv_example_span_1() 11 lv_style_set_border_width(&style, 1); in lv_example_span_1() 12 lv_style_set_border_color(&style, lv_palette_main(LV_PALETTE_ORANGE)); in lv_example_span_1() 13 lv_style_set_pad_all(&style, 2); in lv_example_span_1() 19 lv_obj_add_style(spans, &style, 0); in lv_example_span_1() 28 lv_style_set_text_color(&span->style, lv_palette_main(LV_PALETTE_RED)); in lv_example_span_1() 29 lv_style_set_text_decor(&span->style, LV_TEXT_DECOR_UNDERLINE); in lv_example_span_1() 30 lv_style_set_text_opa(&span->style, LV_OPA_50); in lv_example_span_1() 35 lv_style_set_text_font(&span->style, &lv_font_montserrat_24); in lv_example_span_1() [all …]
|
D | lv_example_span_1.py | 4 style = lv.style_t() variable 5 style.init() 6 style.set_border_width(1) 7 style.set_border_color(lv.palette_main(lv.PALETTE.ORANGE)) 8 style.set_pad_all(2) 14 spans.add_style(style, 0) 23 span.style.set_text_color(lv.palette_main(lv.PALETTE.RED)) 24 span.style.set_text_decor(lv.TEXT_DECOR.STRIKETHROUGH | lv.TEXT_DECOR.UNDERLINE) 25 span.style.set_text_opa(lv.OPA._30) 32 span.style.set_text_color(lv.palette_main(lv.PALETTE.GREEN)) [all …]
|
/lvgl-latest/docs/overview/ |
D | style-props.md | 9 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Default</strong> Widget de… 10 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Inherited</strong> No</li> 11 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Layout</strong> Yes</li> 12 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Ext. draw</strong> No</li> 18 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Default</strong> 0</li> 19 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Inherited</strong> No</li> 20 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Layout</strong> Yes</li> 21 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Ext. draw</strong> No</li> 27 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Default</strong> LV_COORD_… 28 <li style='display:inline; margin-right: 20px; margin-left: 0px'><strong>Inherited</strong> No</li> [all …]
|
/lvgl-latest/tests/src/test_cases/ |
D | test_tiny_ttf.c | 25 static lv_style_t style; in test_tiny_ttf_rendering_test() local 26 lv_style_init(&style); in test_tiny_ttf_rendering_test() 27 lv_style_set_text_font(&style, font); in test_tiny_ttf_rendering_test() 28 lv_style_set_text_align(&style, LV_TEXT_ALIGN_CENTER); in test_tiny_ttf_rendering_test() 29 lv_style_set_bg_opa(&style, LV_OPA_COVER); in test_tiny_ttf_rendering_test() 30 lv_style_set_bg_color(&style, lv_color_hex(0xffaaaa)); in test_tiny_ttf_rendering_test() 34 lv_obj_add_style(label, &style, 0); in test_tiny_ttf_rendering_test()
|