/lvgl-3.5.0/src/core/ |
D | lv_obj_pos.c | 99 w = lv_obj_get_style_width(obj, LV_PART_MAIN); in lv_obj_refr_size() 120 lv_coord_t minw = lv_obj_get_style_min_width(obj, LV_PART_MAIN); in lv_obj_refr_size() 121 lv_coord_t maxw = lv_obj_get_style_max_width(obj, LV_PART_MAIN); in lv_obj_refr_size() 133 h = lv_obj_get_style_height(obj, LV_PART_MAIN); in lv_obj_refr_size() 154 lv_coord_t minh = lv_obj_get_style_min_height(obj, LV_PART_MAIN); in lv_obj_refr_size() 155 lv_coord_t maxh = lv_obj_get_style_max_height(obj, LV_PART_MAIN); in lv_obj_refr_size() 187 if(lv_obj_get_style_base_dir(obj, LV_PART_MAIN) == LV_BASE_DIR_RTL) { in lv_obj_refr_size() 251 lv_coord_t pleft = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in lv_obj_set_content_width() 252 lv_coord_t pright = lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in lv_obj_set_content_width() 253 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_set_content_width() [all …]
|
D | lv_obj.c | 410 obj->coords.y1 = parent->coords.y1 + lv_obj_get_style_pad_top(parent, LV_PART_MAIN) - st; in lv_obj_constructor() 412 obj->coords.x1 = parent->coords.x1 + lv_obj_get_style_pad_left(parent, LV_PART_MAIN) - sl; in lv_obj_constructor() 471 if(lv_obj_get_style_clip_corner(obj, LV_PART_MAIN)) { in lv_obj_draw() 477 lv_coord_t r = lv_obj_get_style_radius(obj, LV_PART_MAIN); in lv_obj_draw() 478 lv_coord_t w = lv_obj_get_style_transform_width(obj, LV_PART_MAIN); in lv_obj_draw() 479 lv_coord_t h = lv_obj_get_style_transform_height(obj, LV_PART_MAIN); in lv_obj_draw() 492 if(lv_obj_get_style_bg_opa(obj, LV_PART_MAIN) < LV_OPA_MAX) { in lv_obj_draw() 505 if(lv_obj_get_style_border_post(obj, LV_PART_MAIN)) { in lv_obj_draw() 509 lv_obj_init_draw_rect_dsc(obj, LV_PART_MAIN, &draw_dsc); in lv_obj_draw() 510 lv_coord_t w = lv_obj_get_style_transform_width(obj, LV_PART_MAIN); in lv_obj_draw() [all …]
|
D | lv_obj_draw.c | 42 if(part != LV_PART_MAIN) { in lv_obj_init_draw_rect_dsc() 55 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_rect_dsc() 184 if(part != LV_PART_MAIN) { in lv_obj_init_draw_rect_dsc() 200 if(part != LV_PART_MAIN) { in lv_obj_init_draw_label_dsc() 216 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_label_dsc() 222 draw_dsc->bidi_dir = lv_obj_get_style_base_dir(obj, LV_PART_MAIN); in lv_obj_init_draw_label_dsc() 233 if(part != LV_PART_MAIN) { in lv_obj_init_draw_img_dsc() 254 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_img_dsc() 263 if(part != LV_PART_MAIN) { in lv_obj_init_draw_line_dsc() 288 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_line_dsc() [all …]
|
D | lv_obj_scroll.c | 147 lv_coord_t pad_top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in lv_obj_get_scroll_bottom() 148 lv_coord_t pad_bottom = lv_obj_get_style_pad_bottom(obj, LV_PART_MAIN); in lv_obj_get_scroll_bottom() 149 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_get_scroll_bottom() 167 if(lv_obj_get_style_base_dir(obj, LV_PART_MAIN) != LV_BASE_DIR_RTL) { in lv_obj_get_scroll_left() 173 lv_coord_t pad_right = lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in lv_obj_get_scroll_left() 174 lv_coord_t pad_left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in lv_obj_get_scroll_left() 175 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_obj_get_scroll_left() 210 if(lv_obj_get_style_base_dir(obj, LV_PART_MAIN) == LV_BASE_DIR_RTL) { in lv_obj_get_scroll_right() 225 lv_coord_t pad_right = lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in lv_obj_get_scroll_right() 226 lv_coord_t pad_left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in lv_obj_get_scroll_right() [all …]
|
/lvgl-3.5.0/tests/src/test_cases/ |
D | test_style.c | 78 lv_obj_set_style_text_color(parent, lv_color_hex(0xff0000), LV_PART_MAIN); in test_inherit_meta() 79 …bj_set_local_style_prop_meta(child, LV_STYLE_TEXT_COLOR, LV_STYLE_PROP_META_INHERIT, LV_PART_MAIN); in test_inherit_meta() 80 …EQUAL_HEX(lv_color_hex(0xff0000).full, lv_obj_get_style_text_color(grandchild, LV_PART_MAIN).full); in test_inherit_meta() 100 lv_obj_set_style_text_color(parent, lv_color_hex(0xff0000), LV_PART_MAIN); in test_inherit_meta_with_lower_precedence_style() 104 …bj_set_local_style_prop_meta(child, LV_STYLE_TEXT_COLOR, LV_STYLE_PROP_META_INHERIT, LV_PART_MAIN); in test_inherit_meta_with_lower_precedence_style() 105 lv_obj_add_style(child, &style, LV_PART_MAIN); in test_inherit_meta_with_lower_precedence_style() 106 …EQUAL_HEX(lv_color_hex(0xff0000).full, lv_obj_get_style_text_color(grandchild, LV_PART_MAIN).full); in test_inherit_meta_with_lower_precedence_style()
|
D | test_bar.c | 60 lv_obj_add_style(bar, &bar_style, LV_PART_MAIN); in test_bar_should_update_indicator_right_coordinate_based_on_bar_value() 74 lv_coord_t sides_padding = lv_obj_get_style_pad_left(bar, LV_PART_MAIN); in test_bar_should_update_indicator_right_coordinate_based_on_bar_value() 75 sides_padding += lv_obj_get_style_pad_right(bar, LV_PART_MAIN); in test_bar_should_update_indicator_right_coordinate_based_on_bar_value() 115 lv_obj_add_style(bar, &bar_style, LV_PART_MAIN); in test_bar_rtl_should_update_indicator_left_coordinate_based_on_bar_value() 130 lv_coord_t right_padding = lv_obj_get_style_pad_right(bar, LV_PART_MAIN); in test_bar_rtl_should_update_indicator_left_coordinate_based_on_bar_value() 164 lv_obj_add_style(bar, &bar_style, LV_PART_MAIN); in test_bar_indicator_area_should_get_smaller_when_padding_is_increased()
|
D | test_textarea.c | 51 lv_coord_t left_padding = lv_obj_get_style_pad_left(txt_ptr->label, LV_PART_MAIN); in test_textarea_should_update_label_style_with_one_line_enabled() 52 lv_coord_t right_padding = lv_obj_get_style_pad_right(txt_ptr->label, LV_PART_MAIN); in test_textarea_should_update_label_style_with_one_line_enabled() 58 TEST_ASSERT_EQUAL_UINT16(lv_pct(100), lv_obj_get_style_min_width(txt_ptr->label, LV_PART_MAIN)); in test_textarea_should_update_label_style_with_one_line_enabled()
|
D | test_line.c | 58 lv_coord_t line_width = lv_obj_get_style_line_width(line, LV_PART_MAIN); in test_line_size_should_be_updated_after_adding_points() 87 lv_obj_set_style_line_width(line, final_extra_draw_size, LV_PART_MAIN); in test_line_should_update_extra_draw_size_based_on_style()
|
/lvgl-3.5.0/src/extra/layouts/flex/ |
D | lv_flex.c | 215 lv_flex_flow_t flow = lv_obj_get_style_flex_flow(cont, LV_PART_MAIN); in flex_update() 219 f.main_place = lv_obj_get_style_flex_main_place(cont, LV_PART_MAIN); in flex_update() 220 f.cross_place = lv_obj_get_style_flex_cross_place(cont, LV_PART_MAIN); in flex_update() 221 f.track_place = lv_obj_get_style_flex_track_place(cont, LV_PART_MAIN); in flex_update() 223 bool rtl = lv_obj_get_style_base_dir(cont, LV_PART_MAIN) == LV_BASE_DIR_RTL ? true : false; in flex_update() 224 …lv_coord_t track_gap = !f.row ? lv_obj_get_style_pad_column(cont, LV_PART_MAIN) : lv_obj_get_style… in flex_update() 225 … LV_PART_MAIN); in flex_update() 226 …lv_coord_t item_gap = f.row ? lv_obj_get_style_pad_column(cont, LV_PART_MAIN) : lv_obj_get_style_p… in flex_update() 227 … LV_PART_MAIN); in flex_update() 229 lv_coord_t border_width = lv_obj_get_style_border_width(cont, LV_PART_MAIN); in flex_update() [all …]
|
/lvgl-3.5.0/src/widgets/ |
D | lv_checkbox.c | 163 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_checkbox_event() 165 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_checkbox_event() 166 lv_coord_t letter_space = lv_obj_get_style_text_letter_space(obj, LV_PART_MAIN); in lv_checkbox_event() 171 lv_coord_t bg_colp = lv_obj_get_style_pad_column(obj, LV_PART_MAIN); in lv_checkbox_event() 199 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_checkbox_draw() 202 lv_coord_t bg_border = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_checkbox_draw() 203 lv_coord_t bg_topp = lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + bg_border; in lv_checkbox_draw() 204 lv_coord_t bg_leftp = lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + bg_border; in lv_checkbox_draw() 205 lv_coord_t bg_colp = lv_obj_get_style_pad_column(obj, LV_PART_MAIN); in lv_checkbox_draw() 243 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_checkbox_draw() [all …]
|
D | lv_label.c | 293 lv_text_align_t align = lv_obj_calculate_style_text_align(obj, LV_PART_MAIN, txt); in lv_label_get_letter_pos() 317 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_label_get_letter_pos() 318 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_get_letter_pos() 319 lv_coord_t letter_space = lv_obj_get_style_text_letter_space(obj, LV_PART_MAIN); in lv_label_get_letter_pos() 326 …if(lv_obj_get_style_width(obj, LV_PART_MAIN) == LV_SIZE_CONTENT && !obj->w_layout) flag |= LV_TEXT… in lv_label_get_letter_pos() 351 lv_base_dir_t base_dir = lv_obj_get_style_base_dir(obj, LV_PART_MAIN); in lv_label_get_letter_pos() 407 pos.x = pos_in->x - lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in lv_label_get_letter_on() 408 pos.y = pos_in->y - lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in lv_label_get_letter_on() 416 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_label_get_letter_on() 417 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_label_get_letter_on() [all …]
|
D | lv_roller.c | 195 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_roller_set_visible_row_count() 196 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_roller_set_visible_row_count() 197 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_roller_set_visible_row_count() 495 const lv_font_t * normal_label_font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in draw_main() 504 lv_coord_t bwidth = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_main() 505 lv_coord_t pleft = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in draw_main() 506 lv_coord_t pright = lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in draw_main() 532 lv_obj_init_draw_label_dsc(roller, LV_PART_MAIN, &label_draw_dsc); in draw_label() 577 const lv_font_t * font_main = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in get_sel_area() 581 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in get_sel_area() [all …]
|
D | lv_switch.c | 154 lv_coord_t bg_left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in draw_main() 155 lv_coord_t bg_right = lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in draw_main() 156 lv_coord_t bg_top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in draw_main() 157 lv_coord_t bg_bottom = lv_obj_get_style_pad_bottom(obj, LV_PART_MAIN); in draw_main() 188 if(LV_BASE_DIR_RTL == lv_obj_get_style_base_dir(obj, LV_PART_MAIN)) { in draw_main() 243 uint32_t anim_dur_full = lv_obj_get_style_anim_time(obj, LV_PART_MAIN); in lv_switch_trigger_anim()
|
D | lv_bar.c | 253 lv_coord_t transf_w = lv_obj_get_style_transform_width(obj, LV_PART_MAIN); in draw_indic() 254 lv_coord_t transf_h = lv_obj_get_style_transform_height(obj, LV_PART_MAIN); in draw_indic() 268 lv_coord_t bg_left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in draw_indic() 269 lv_coord_t bg_right = lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in draw_indic() 270 lv_coord_t bg_top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in draw_indic() 271 lv_coord_t bg_bottom = lv_obj_get_style_pad_bottom(obj, LV_PART_MAIN); in draw_indic() 339 lv_base_dir_t base_dir = lv_obj_get_style_base_dir(obj, LV_PART_MAIN); in draw_indic() 420 lv_coord_t bg_radius = lv_obj_get_style_radius(obj, LV_PART_MAIN); in draw_indic() 530 lv_coord_t bg_left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in lv_bar_event() 531 lv_coord_t bg_right = lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in lv_bar_event() [all …]
|
D | lv_btnmatrix.c | 104 lv_base_dir_t base_dir = lv_obj_get_style_base_dir(obj, LV_PART_MAIN); in lv_btnmatrix_set_map() 107 lv_coord_t pleft = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in lv_btnmatrix_set_map() 108 lv_coord_t ptop = lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in lv_btnmatrix_set_map() 109 lv_coord_t prow = lv_obj_get_style_pad_row(obj, LV_PART_MAIN); in lv_btnmatrix_set_map() 110 lv_coord_t pcol = lv_obj_get_style_pad_column(obj, LV_PART_MAIN); in lv_btnmatrix_set_map() 583 lv_coord_t col_gap = lv_obj_get_style_pad_column(obj, LV_PART_MAIN); in lv_btnmatrix_event() 611 lv_coord_t col_gap = lv_obj_get_style_pad_column(obj, LV_PART_MAIN); in lv_btnmatrix_event() 679 lv_coord_t ptop = lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in draw_main() 680 lv_coord_t pbottom = lv_obj_get_style_pad_bottom(obj, LV_PART_MAIN); in draw_main() 681 lv_coord_t pleft = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in draw_main() [all …]
|
D | lv_arc.c | 150 else if(new_delta < old_delta) inv_arc_area(obj, arc->bg_angle_start, start, LV_PART_MAIN); in lv_arc_set_bg_start_angle() 151 else if(old_delta < new_delta) inv_arc_area(obj, start, arc->bg_angle_start, LV_PART_MAIN); in lv_arc_set_bg_start_angle() 172 else if(new_delta < old_delta) inv_arc_area(obj, end, arc->bg_angle_end, LV_PART_MAIN); in lv_arc_set_bg_end_angle() 173 else if(old_delta < new_delta) inv_arc_area(obj, arc->bg_angle_end, end, LV_PART_MAIN); in lv_arc_set_bg_end_angle() 576 lv_coord_t w = lv_obj_get_style_arc_width(obj, LV_PART_MAIN); in lv_arc_event() 592 lv_coord_t bg_left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN); in lv_arc_event() 593 lv_coord_t bg_right = lv_obj_get_style_pad_right(obj, LV_PART_MAIN); in lv_arc_event() 594 lv_coord_t bg_top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN); in lv_arc_event() 595 lv_coord_t bg_bottom = lv_obj_get_style_pad_bottom(obj, LV_PART_MAIN); in lv_arc_event() 633 lv_obj_init_draw_arc_dsc(obj, LV_PART_MAIN, &arc_dsc); in lv_arc_draw() [all …]
|
D | lv_img.c | 139 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_img_set_src() 140 lv_coord_t letter_space = lv_obj_get_style_text_letter_space(obj, LV_PART_MAIN); in lv_img_set_src() 141 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_img_set_src() 539 if(lv_obj_get_style_img_opa(obj, LV_PART_MAIN) != LV_OPA_COVER) { in draw_img() 575 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_img() 576 lv_coord_t pleft = lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; in draw_img() 577 lv_coord_t pright = lv_obj_get_style_pad_right(obj, LV_PART_MAIN) + border_width; in draw_img() 578 lv_coord_t ptop = lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + border_width; in draw_img() 579 lv_coord_t pbottom = lv_obj_get_style_pad_bottom(obj, LV_PART_MAIN) + border_width; in draw_img() 640 lv_obj_init_draw_img_dsc(obj, LV_PART_MAIN, &img_dsc); in draw_img() [all …]
|
D | lv_line.c | 139 lv_coord_t line_width = lv_obj_get_style_line_width(obj, LV_PART_MAIN); in lv_line_event() 158 lv_coord_t line_width = lv_obj_get_style_line_width(obj, LV_PART_MAIN); in lv_line_event() 178 lv_obj_init_draw_line_dsc(obj, LV_PART_MAIN, &line_dsc); in lv_line_event()
|
D | lv_dropdown.c | 472 lv_coord_t border_width = lv_obj_get_style_border_width(dropdown->list, LV_PART_MAIN); in lv_dropdown_open() 473 lv_coord_t top = lv_obj_get_style_pad_top(dropdown->list, LV_PART_MAIN) + border_width; in lv_dropdown_open() 474 lv_coord_t bottom = lv_obj_get_style_pad_bottom(dropdown->list, LV_PART_MAIN) + border_width; in lv_dropdown_open() 527 … lv_text_align_t align = lv_obj_calculate_style_text_align(label, LV_PART_MAIN, dropdown->options); in lv_dropdown_open() 694 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in lv_dropdown_event() 779 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_main() 780 lv_coord_t left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; in draw_main() 781 lv_coord_t right = lv_obj_get_style_pad_right(obj, LV_PART_MAIN) + border_width; in draw_main() 782 lv_coord_t top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + border_width; in draw_main() 799 if(lv_obj_get_style_base_dir(obj, LV_PART_MAIN) == LV_BASE_DIR_RTL) symbol_to_left = true; in draw_main() [all …]
|
/lvgl-3.5.0/examples/anim/ |
D | lv_example_anim_3.c | 44 lv_obj_set_style_pad_all(cont, 2, LV_PART_MAIN); in lv_example_anim_3() 45 lv_obj_set_style_pad_column(cont, 10, LV_PART_MAIN); in lv_example_anim_3() 46 lv_obj_set_style_pad_row(cont, 10, LV_PART_MAIN); in lv_example_anim_3() 55 int32_t end = lv_obj_get_style_width(cont, LV_PART_MAIN) - in lv_example_anim_3() 56 lv_obj_get_style_width(ginfo.anim_obj, LV_PART_MAIN) - 10; in lv_example_anim_3() 88 lv_obj_set_style_translate_x(var, v, LV_PART_MAIN); in anim_x_cb() 126 lv_obj_set_style_bg_color(ginfo.anim_obj, lv_palette_main(LV_PALETTE_RED), LV_PART_MAIN); in page_obj_init() 155 lv_obj_set_style_pad_all(ginfo.chart, 0, LV_PART_MAIN); in page_obj_init()
|
/lvgl-3.5.0/src/extra/layouts/grid/ |
D | lv_grid.c | 361 lv_coord_t border_widt = lv_obj_get_style_border_width(cont, LV_PART_MAIN); in grid_update() 362 lv_coord_t pad_left = lv_obj_get_style_pad_left(cont, LV_PART_MAIN) + border_widt; in grid_update() 363 lv_coord_t pad_top = lv_obj_get_style_pad_top(cont, LV_PART_MAIN) + border_widt; in grid_update() 374 lv_coord_t w_set = lv_obj_get_style_width(cont, LV_PART_MAIN); in grid_update() 375 lv_coord_t h_set = lv_obj_get_style_height(cont, LV_PART_MAIN); in grid_update() 401 lv_coord_t col_gap = lv_obj_get_style_pad_column(cont, LV_PART_MAIN); in calc() 402 lv_coord_t row_gap = lv_obj_get_style_pad_row(cont, LV_PART_MAIN); in calc() 404 bool rev = lv_obj_get_style_base_dir(cont, LV_PART_MAIN) == LV_BASE_DIR_RTL ? true : false; in calc() 406 lv_coord_t w_set = lv_obj_get_style_width(cont, LV_PART_MAIN); in calc() 407 lv_coord_t h_set = lv_obj_get_style_height(cont, LV_PART_MAIN); in calc() [all …]
|
/lvgl-3.5.0/src/extra/widgets/chart/ |
D | lv_chart.c | 298 … LV_PART_MAIN) * chart->zoom_x) >> 8; /*Gap between the column on ~adjacent X*/ in lv_chart_get_point_pos_by_id() 313 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in lv_chart_get_point_pos_by_id() 314 p_out->x += lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; in lv_chart_get_point_pos_by_id() 321 p_out->y += lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + border_width; in lv_chart_get_point_pos_by_id() 773 lv_coord_t border_width = lv_obj_get_style_border_width(obj, LV_PART_MAIN); in draw_div_lines() 774 lv_coord_t pad_left = lv_obj_get_style_pad_left(obj, LV_PART_MAIN) + border_width; in draw_div_lines() 775 lv_coord_t pad_top = lv_obj_get_style_pad_top(obj, LV_PART_MAIN) + border_width; in draw_div_lines() 781 lv_obj_init_draw_line_dsc(obj, LV_PART_MAIN, &line_dsc); in draw_div_lines() 785 part_draw_dsc.part = LV_PART_MAIN; in draw_div_lines() 794 lv_opa_t border_opa = lv_obj_get_style_border_opa(obj, LV_PART_MAIN); in draw_div_lines() [all …]
|
/lvgl-3.5.0/src/extra/widgets/span/ |
D | lv_span.c | 180 lv_obj_set_style_text_align(obj, align, LV_PART_MAIN); in lv_spangroup_set_align() 276 return lv_obj_get_style_text_align(obj, LV_PART_MAIN); in lv_spangroup_get_align() 317 if(lv_obj_get_style_width(obj, LV_PART_MAIN) == LV_SIZE_CONTENT) { in lv_spangroup_refr_mode() 325 if(lv_obj_get_style_width(obj, LV_PART_MAIN) == LV_SIZE_CONTENT) { in lv_spangroup_refr_mode() 328 if(lv_obj_get_style_height(obj, LV_PART_MAIN) == LV_SIZE_CONTENT) { in lv_spangroup_refr_mode() 329 lv_coord_t width = lv_obj_get_style_width(obj, LV_PART_MAIN); in lv_spangroup_refr_mode() 401 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in lv_spangroup_get_expand_height() 652 font = lv_obj_get_style_text_font(par, LV_PART_MAIN); in lv_span_get_style_text_font() 666 letter_space = lv_obj_get_style_text_letter_space(par, LV_PART_MAIN); in lv_span_get_style_text_letter_space() 679 value.color = lv_obj_get_style_text_color(par, LV_PART_MAIN); in lv_span_get_style_text_color() [all …]
|
/lvgl-3.5.0/examples/widgets/roller/ |
D | lv_example_roller_3.c | 18 const lv_font_t * font = lv_obj_get_style_text_font(obj, LV_PART_MAIN); in mask_event_cb() 19 lv_coord_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN); in mask_event_cb()
|
/lvgl-3.5.0/examples/styles/ |
D | lv_example_style_12.c | 19 lv_obj_set_style_bg_color(obj, lv_palette_main(LV_PALETTE_ORANGE), LV_PART_MAIN); in lv_example_style_12()
|