/lvgl-latest/src/misc/ |
D | lv_style_gen.c | 13 void lv_style_set_width(lv_style_t * style, int32_t value) in lv_style_set_width() argument 18 lv_style_set_prop(style, LV_STYLE_WIDTH, v); in lv_style_set_width() 21 void lv_style_set_min_width(lv_style_t * style, int32_t value) in lv_style_set_min_width() argument 26 lv_style_set_prop(style, LV_STYLE_MIN_WIDTH, v); in lv_style_set_min_width() 29 void lv_style_set_max_width(lv_style_t * style, int32_t value) in lv_style_set_max_width() argument 34 lv_style_set_prop(style, LV_STYLE_MAX_WIDTH, v); in lv_style_set_max_width() 37 void lv_style_set_height(lv_style_t * style, int32_t value) in lv_style_set_height() argument 42 lv_style_set_prop(style, LV_STYLE_HEIGHT, v); in lv_style_set_height() 45 void lv_style_set_min_height(lv_style_t * style, int32_t value) in lv_style_set_min_height() argument 50 lv_style_set_prop(style, LV_STYLE_MIN_HEIGHT, v); in lv_style_set_min_height() [all …]
|
D | lv_style.h | 393 void lv_style_init(lv_style_t * style); 399 void lv_style_reset(lv_style_t * style); 406 static inline bool lv_style_is_const(const lv_style_t * style) in lv_style_is_const() argument 408 if(style->prop_cnt == 255) return true; in lv_style_is_const() 441 bool lv_style_remove_prop(lv_style_t * style, lv_style_prop_t prop); 451 void lv_style_set_prop(lv_style_t * style, lv_style_prop_t prop, lv_style_value_t value); 462 lv_style_res_t lv_style_get_prop(const lv_style_t * style, lv_style_prop_t prop, lv_style_value_t *… 500 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 503 if(lv_style_is_const(style)) { in lv_style_get_prop_inlined() 504 lv_style_const_prop_t * props = (lv_style_const_prop_t *)style->values_and_props; in lv_style_get_prop_inlined() [all …]
|
D | lv_style_gen.h | 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); [all …]
|
D | lv_style.c | 176 void lv_style_init(lv_style_t * style) in lv_style_init() argument 179 if(style->sentinel == LV_STYLE_SENTINEL_VALUE && style->prop_cnt > 1) { in lv_style_init() 184 lv_memzero(style, sizeof(lv_style_t)); in lv_style_init() 186 style->sentinel = LV_STYLE_SENTINEL_VALUE; in lv_style_init() 190 void lv_style_reset(lv_style_t * style) in lv_style_reset() argument 192 LV_ASSERT_STYLE(style); in lv_style_reset() 194 if(style->prop_cnt != 255) lv_free(style->values_and_props); in lv_style_reset() 195 lv_memzero(style, sizeof(lv_style_t)); in lv_style_reset() 197 style->sentinel = LV_STYLE_SENTINEL_VALUE; in lv_style_reset() 242 bool lv_style_remove_prop(lv_style_t * style, lv_style_prop_t prop) in lv_style_remove_prop() argument [all …]
|
/lvgl-latest/examples/widgets/button/ |
D | lv_example_button_2.c | 10 static lv_style_t style; in lv_example_button_2() local 11 lv_style_init(&style); in lv_example_button_2() 13 lv_style_set_radius(&style, 3); in lv_example_button_2() 15 lv_style_set_bg_opa(&style, LV_OPA_100); in lv_example_button_2() 16 lv_style_set_bg_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_button_2() 17 lv_style_set_bg_grad_color(&style, lv_palette_darken(LV_PALETTE_BLUE, 2)); in lv_example_button_2() 18 lv_style_set_bg_grad_dir(&style, LV_GRAD_DIR_VER); in lv_example_button_2() 20 lv_style_set_border_opa(&style, LV_OPA_40); in lv_example_button_2() 21 lv_style_set_border_width(&style, 2); in lv_example_button_2() 22 lv_style_set_border_color(&style, lv_palette_main(LV_PALETTE_GREY)); in lv_example_button_2() [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_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_image_recolor(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_style_6() 20 lv_style_set_image_recolor_opa(&style, LV_OPA_50); in lv_example_style_6() 21 lv_style_set_transform_rotation(&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_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_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() 23 lv_obj_add_style(obj, &style, 0); in lv_example_style_5()
|
D | lv_example_style_16.c | 37 static lv_style_t style; in lv_example_style_16() local 38 lv_style_init(&style); in lv_example_style_16() 39 lv_style_set_radius(&style, 500); in lv_example_style_16() 40 lv_style_set_bg_opa(&style, LV_OPA_COVER); in lv_example_style_16() 41 lv_style_set_shadow_color(&style, lv_color_black()); in lv_example_style_16() 42 lv_style_set_shadow_width(&style, 50); in lv_example_style_16() 43 lv_style_set_shadow_offset_x(&style, 20); in lv_example_style_16() 44 lv_style_set_shadow_offset_y(&style, 20); in lv_example_style_16() 45 lv_style_set_shadow_opa(&style, LV_OPA_50); in lv_example_style_16() 62 lv_style_set_bg_grad(&style, &grad); in lv_example_style_16() [all …]
|
D | lv_example_style_9.c | 9 static lv_style_t style; in lv_example_style_9() local 10 lv_style_init(&style); in lv_example_style_9() 12 lv_style_set_line_color(&style, lv_palette_main(LV_PALETTE_GREY)); in lv_example_style_9() 13 lv_style_set_line_width(&style, 6); in lv_example_style_9() 14 lv_style_set_line_rounded(&style, true); in lv_example_style_9() 18 lv_obj_add_style(obj, &style, 0); in lv_example_style_9()
|
D | lv_example_style_12.c | 9 static lv_style_t style; in lv_example_style_12() local 10 lv_style_init(&style); in lv_example_style_12() 11 lv_style_set_bg_color(&style, lv_palette_main(LV_PALETTE_GREEN)); in lv_example_style_12() 12 lv_style_set_border_color(&style, lv_palette_lighten(LV_PALETTE_GREEN, 3)); in lv_example_style_12() 13 lv_style_set_border_width(&style, 3); in lv_example_style_12() 16 lv_obj_add_style(obj, &style, 0); in lv_example_style_12()
|
D | lv_example_style_7.c | 9 static lv_style_t style; in lv_example_style_7() local 10 lv_style_init(&style); in lv_example_style_7() 12 lv_style_set_arc_color(&style, lv_palette_main(LV_PALETTE_RED)); in lv_example_style_7() 13 lv_style_set_arc_width(&style, 4); in lv_example_style_7() 17 lv_obj_add_style(obj, &style, 0); in lv_example_style_7()
|
D | lv_example_style_2.c | 9 static lv_style_t style; in lv_example_style_2() local 10 lv_style_init(&style); in lv_example_style_2() 11 lv_style_set_radius(&style, 5); in lv_example_style_2() 14 lv_style_set_bg_opa(&style, LV_OPA_COVER); in lv_example_style_2() 27 lv_style_set_bg_grad(&style, &grad); in lv_example_style_2() 31 lv_obj_add_style(obj, &style, 0); in lv_example_style_2()
|
/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_length(&style, 20); /*Length of the scrollbar*/ in lv_example_scroll_4() 43 lv_style_set_pad_right(&style, 5); /*Space from the parallel side*/ in lv_example_scroll_4() 44 lv_style_set_pad_top(&style, 5); /*Space from the perpendicular side*/ in lv_example_scroll_4() 46 lv_style_set_radius(&style, 2); in lv_example_scroll_4() 47 lv_style_set_bg_opa(&style, LV_OPA_70); in lv_example_scroll_4() 48 lv_style_set_bg_color(&style, lv_palette_main(LV_PALETTE_BLUE)); in lv_example_scroll_4() 49 lv_style_set_border_color(&style, lv_palette_darken(LV_PALETTE_BLUE, 3)); in lv_example_scroll_4() [all …]
|
/lvgl-latest/tests/src/test_cases/draw/ |
D | test_draw_label.c | 20 static lv_obj_t * label_create(const lv_font_t * font, lv_style_t * style, const char * text_base) in label_create() argument 26 if(style) lv_obj_add_style(label, style, 0); in label_create() 31 static void all_labels_create(const char * name, lv_style_t * style) in all_labels_create() argument 38 label_create(&test_font_montserrat_ascii_1bpp, style, "1bpp font"); in all_labels_create() 39 label_create(&test_font_montserrat_ascii_2bpp, style, "2bpp font"); in all_labels_create() 40 label_create(&test_font_montserrat_ascii_4bpp, style, "4bpp font"); in all_labels_create() 41 label_create(&test_font_montserrat_ascii_3bpp_compressed, style, "3bpp compressed font"); in all_labels_create() 55 static lv_style_t style; in test_draw_label_color() local 56 lv_style_init(&style); in test_draw_label_color() 57 lv_style_set_text_color(&style, lv_palette_main(LV_PALETTE_RED)); in test_draw_label_color() [all …]
|
/lvgl-latest/docs/details/base-widget/styles/ |
D | style-properties.rst | 20 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Default</strong> Wi… 21 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Inherited</strong> … 22 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Layout</strong> Yes… 23 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Ext. draw</strong> … 34 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Default</strong> 0<… 35 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Inherited</strong> … 36 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Layout</strong> Yes… 37 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Ext. draw</strong> … 48 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Default</strong> LV… 49 …<li style='display:inline-block; margin-right: 20px; margin-left: 0px'><strong>Inherited</strong> … [all …]
|
/lvgl-latest/src/core/ |
D | lv_obj_style.c | 58 static void report_style_change_core(void * style, lv_obj_t * obj); 68 static bool style_has_flag(const lv_style_t * style, uint32_t flag); 98 void lv_obj_add_style(lv_obj_t * obj, const lv_style_t * style, lv_style_selector_t selector) in lv_obj_add_style() argument 106 if(style && part == LV_PART_MAIN && style_has_flag(style, LV_STYLE_PROP_FLAG_TRANSFORM)) { in lv_obj_add_style() 111 lv_obj_remove_style(obj, style, selector); in lv_obj_add_style() 135 obj->styles[i].style = style; in lv_obj_add_style() 140 if(lv_style_is_const(style)) { in lv_obj_add_style() 141 lv_style_const_prop_t * props = style->values_and_props; in lv_obj_add_style() 147 …lv_style_prop_t * props = (lv_style_prop_t *)style->values_and_props + style->prop_cnt * sizeof(lv… in lv_obj_add_style() 148 for(i = 0; i < style->prop_cnt; i++) { in lv_obj_add_style() [all …]
|
/lvgl-latest/demos/flex_layout/ |
D | lv_demo_flex_layout_view.c | 27 static void obj_child_node_def_style_init(lv_style_t * style); 28 static void obj_child_node_checked_style_init(lv_style_t * style); 131 static void obj_child_node_def_style_init(lv_style_t * style) in obj_child_node_def_style_init() argument 133 lv_style_init(style); in obj_child_node_def_style_init() 134 lv_style_set_size(style, LV_PCT(45), LV_PCT(45)); in obj_child_node_def_style_init() 135 lv_style_set_flex_flow(style, LV_FLEX_FLOW_ROW); in obj_child_node_def_style_init() 136 lv_style_set_layout(style, LV_LAYOUT_FLEX); in obj_child_node_def_style_init() 137 lv_style_set_radius(style, 0); in obj_child_node_def_style_init() 140 static void obj_child_node_checked_style_init(lv_style_t * style) in obj_child_node_checked_style_init() argument 142 lv_style_init(style); in obj_child_node_checked_style_init() [all …]
|
/lvgl-latest/examples/libs/tiny_ttf/ |
D | lv_example_tiny_ttf_3.c | 19 static lv_style_t style; in lv_example_tiny_ttf_3() local 20 lv_style_init(&style); in lv_example_tiny_ttf_3() 22 lv_style_set_text_font(&style, font); in lv_example_tiny_ttf_3() 23 lv_style_set_text_align(&style, LV_TEXT_ALIGN_CENTER); in lv_example_tiny_ttf_3() 37 lv_obj_add_style(label, &style, 0); in lv_example_tiny_ttf_3() 42 lv_subject_add_observer(&subject_font, font_size_observer_cb, &style); in lv_example_tiny_ttf_3() 47 lv_style_t * style = lv_observer_get_user_data(observer); in font_size_observer_cb() local 49 lv_style_get_prop(style, LV_STYLE_TEXT_FONT, &v); in font_size_observer_cb() 55 lv_obj_report_style_change(style); in font_size_observer_cb()
|
/lvgl-latest/examples/widgets/image/ |
D | lv_example_image_4.c | 16 static lv_style_t style; in lv_example_image_4() local 17 lv_style_init(&style); in lv_example_image_4() 18 lv_style_set_bg_color(&style, lv_palette_main(LV_PALETTE_YELLOW)); in lv_example_image_4() 19 lv_style_set_bg_opa(&style, LV_OPA_COVER); in lv_example_image_4() 20 lv_style_set_image_recolor_opa(&style, LV_OPA_COVER); in lv_example_image_4() 21 lv_style_set_image_recolor(&style, lv_color_black()); in lv_example_image_4() 24 lv_obj_add_style(img, &style, 0); in lv_example_image_4()
|
/lvgl-latest/src/libs/thorvg/ |
D | tvgSvgSceneBuilder.cpp | 259 if (node->style->clipPath.applying) { in _applyComposition() 262 auto compNode = node->style->clipPath.node; in _applyComposition() 264 node->style->clipPath.applying = true; in _applyComposition() 281 node->style->clipPath.applying = false; in _applyComposition() 288 if (node->style->mask.applying) { in _applyComposition() 291 auto compNode = node->style->mask.node; in _applyComposition() 293 node->style->mask.applying = true; in _applyComposition() 311 node->style->mask.applying = false; in _applyComposition() 319 SvgStyleProperty* style = node->style; in _applyProperty() local 323 if (node->type == SvgNodeType::Doc || !node->style->display) return; in _applyProperty() [all …]
|
/lvgl-latest/examples/layouts/flex/ |
D | lv_example_flex_2.c | 9 static lv_style_t style; in lv_example_flex_2() local 10 lv_style_init(&style); in lv_example_flex_2() 11 lv_style_set_flex_flow(&style, LV_FLEX_FLOW_ROW_WRAP); in lv_example_flex_2() 12 lv_style_set_flex_main_place(&style, LV_FLEX_ALIGN_SPACE_EVENLY); in lv_example_flex_2() 13 lv_style_set_layout(&style, LV_LAYOUT_FLEX); in lv_example_flex_2() 18 lv_obj_add_style(cont, &style, 0); in lv_example_flex_2()
|