Home
last modified time | relevance | path

Searched refs:style (Results 1 – 25 of 112) sorted by relevance

12345

/lvgl-3.4.0/src/misc/
Dlv_style_gen.c3 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 …]
Dlv_style.c40 void lv_style_init(lv_style_t * style) in lv_style_init() argument
43 if(style->sentinel == LV_STYLE_SENTINEL_VALUE && style->prop_cnt > 1) { in lv_style_init()
48 lv_memset_00(style, sizeof(lv_style_t)); in lv_style_init()
50 style->sentinel = LV_STYLE_SENTINEL_VALUE; in lv_style_init()
54 void lv_style_reset(lv_style_t * style) in lv_style_reset() argument
56 LV_ASSERT_STYLE(style); in lv_style_reset()
58 if(style->is_const) { in lv_style_reset()
63 if(style->prop_cnt > 1) lv_mem_free(style->v_p.values_and_props); in lv_style_reset()
64 lv_memset_00(style, sizeof(lv_style_t)); in lv_style_reset()
66 style->sentinel = LV_STYLE_SENTINEL_VALUE; in lv_style_reset()
[all …]
Dlv_style_gen.h1 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 …]
Dlv_style.h332 void lv_style_init(lv_style_t * style);
338 void lv_style_reset(lv_style_t * style);
361 bool lv_style_remove_prop(lv_style_t * style, lv_style_prop_t prop);
371 void lv_style_set_prop(lv_style_t * style, lv_style_prop_t prop, lv_style_value_t value);
382 lv_res_t lv_style_get_prop(const lv_style_t * style, lv_style_prop_t prop, lv_style_value_t * value…
395 static inline lv_res_t lv_style_get_prop_inlined(const lv_style_t * style, lv_style_prop_t prop, in lv_style_get_prop_inlined() argument
398 if(style->is_const) { in lv_style_get_prop_inlined()
400 … for(const_prop = style->v_p.const_props; const_prop->prop != LV_STYLE_PROP_INV; const_prop++) { in lv_style_get_prop_inlined()
409 if(style->prop_cnt == 0) return LV_RES_INV; in lv_style_get_prop_inlined()
411 if(style->prop_cnt > 1) { in lv_style_get_prop_inlined()
[all …]
/lvgl-3.4.0/examples/widgets/btn/
Dlv_example_btn_2.c10 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 …]
Dlv_example_btn_2.py6 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-3.4.0/examples/styles/
Dlv_example_style_8.c9 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 …]
Dlv_example_style_8.py5 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 …]
Dlv_example_style_6.c9 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 …]
Dlv_example_style_1.c9 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()
Dlv_example_style_3.c9 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()
Dlv_example_style_1.py4 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)
Dlv_example_style_5.py5 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)
Dlv_example_style_2.py4 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)
Dlv_example_style_4.c9 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()
Dlv_example_style_3.py4 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)
Dlv_example_style_4.py5 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)
Dlv_example_style_5.c9 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()
Dlv_example_style_6.py23 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-3.4.0/examples/scroll/
Dlv_example_scroll_4.c41 static lv_style_t style; in lv_example_scroll_4() local
42 lv_style_init(&style); in lv_example_scroll_4()
43 lv_style_set_width(&style, 4); /*Width of the scrollbar*/ in lv_example_scroll_4()
44 lv_style_set_pad_right(&style, 5); /*Space from the parallel side*/ in lv_example_scroll_4()
45 lv_style_set_pad_top(&style, 5); /*Space from the perpendicular side*/ in lv_example_scroll_4()
47 lv_style_set_radius(&style, 2); in lv_example_scroll_4()
48 lv_style_set_bg_opa(&style, LV_OPA_70); in lv_example_scroll_4()
49 lv_style_set_bg_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_scroll_4()
50 lv_style_set_border_color(&style, lv_palette_darken(LV_PALETTE_BLUE, 3)); in lv_example_scroll_4()
51 lv_style_set_border_width(&style, 2); in lv_example_scroll_4()
[all …]
Dlv_example_scroll_4.py37 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-3.4.0/examples/widgets/span/
Dlv_example_span_1.c9 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_STRIKETHROUGH | 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 …]
Dlv_example_span_1.py4 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-3.4.0/docs/overview/
Dstyle-props.md9 <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-3.4.0/src/core/
Dlv_obj_style.c49 static void report_style_change_core(void * style, lv_obj_t * obj);
76 void lv_obj_add_style(lv_obj_t * obj, lv_style_t * style, lv_style_selector_t selector) in lv_obj_add_style() argument
100 obj->styles[i].style = style; in lv_obj_add_style()
106 void lv_obj_remove_style(lv_obj_t * obj, lv_style_t * style, lv_style_selector_t selector) in lv_obj_remove_style() argument
111 if(style && style->prop_cnt == 0) prop = LV_STYLE_PROP_INV; in lv_obj_remove_style()
120 (style != NULL && style != obj->styles[i].style)) { in lv_obj_remove_style()
130 lv_style_reset(obj->styles[i].style); in lv_obj_remove_style()
131 lv_mem_free(obj->styles[i].style); in lv_obj_remove_style()
132 obj->styles[i].style = NULL; in lv_obj_remove_style()
153 void lv_obj_report_style_change(lv_style_t * style) in lv_obj_report_style_change() argument
[all …]

12345