Home
last modified time | relevance | path

Searched refs:lv_obj_get_width (Results 1 – 25 of 28) sorted by relevance

12

/lvgl-3.7.0/src/core/
Dlv_obj_pos.c96 w = lv_obj_get_width(obj); in lv_obj_refr_size()
166 if(lv_obj_get_width(obj) == w && lv_obj_get_height(obj) == h) return false; in lv_obj_refr_size()
373 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
381 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
386 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
395 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
400 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
410 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
420 x = lv_obj_get_width(base) / 2 - lv_obj_get_width(obj) / 2; in lv_obj_align_to()
425 x = lv_obj_get_width(base) - lv_obj_get_width(obj); in lv_obj_align_to()
[all …]
Dlv_obj_pos.h280 lv_coord_t lv_obj_get_width(const struct _lv_obj_t * obj);
Dlv_obj_scroll.c198 self_w = self_w - (lv_obj_get_width(obj) - pad_right - pad_left - 2 * border_width); in lv_obj_get_scroll_left()
235 self_w = self_w - (lv_obj_get_width(obj) - pad_right - pad_left - 2 * border_width); in lv_obj_get_scroll_right()
500 lv_coord_t obj_w = lv_obj_get_width(obj); in lv_obj_get_scrollbar_area()
760 lv_coord_t parent_w = lv_obj_get_width(parent) - pleft - pright; in scroll_area_into_view()
Dlv_obj.c789 … lv_obj_scroll_to_x(obj, lv_obj_get_scroll_x(obj) + lv_obj_get_width(obj) / 4, anim_enable); in lv_obj_event()
796 … lv_obj_scroll_to_x(obj, lv_obj_get_scroll_x(obj) - lv_obj_get_width(obj) / 4, anim_enable); in lv_obj_event()
Dlv_obj_style.c347 lv_coord_t whalf = lv_obj_get_width(obj) / 2; in _lv_obj_style_create_transition()
/lvgl-3.7.0/tests/src/test_cases/
Dtest_textarea.c53 lv_coord_t line_width = lv_obj_get_width(txt_ptr->label); in test_textarea_should_update_label_style_with_one_line_enabled()
57 TEST_ASSERT_EQUAL_UINT16(expected_size, lv_obj_get_width(txt_ptr->label)); in test_textarea_should_update_label_style_with_one_line_enabled()
Dtest_slider.c37 lv_coord_t objw = lv_obj_get_width(slider); in test_textarea_should_have_valid_documented_default_values()
Dtest_dropdown.c67 TEST_ASSERT_EQUAL(200, lv_obj_get_width(lv_dropdown_get_list(dd1))); in test_dropdown_set_options()
/lvgl-3.7.0/src/widgets/
Dlv_img.c192 lv_coord_t w = lv_obj_get_width(obj); in lv_img_set_angle()
225 lv_coord_t w = lv_obj_get_width(obj); in lv_img_set_pivot()
261 lv_coord_t w = lv_obj_get_width(obj); in lv_img_set_zoom()
395 img->w = lv_obj_get_width(obj); in lv_img_constructor()
469 lv_coord_t w = lv_obj_get_width(obj); in lv_img_event()
483 if(img->w == lv_obj_get_width(obj) && img->h == lv_obj_get_height(obj) && in lv_img_event()
486 lv_coord_t w = lv_obj_get_width(obj); in lv_img_event()
557 …_lv_img_buf_get_transformed_area(&a, lv_obj_get_width(obj), lv_obj_get_height(obj), 0, img->zoom, … in draw_img()
571 lv_coord_t obj_w = lv_obj_get_width(obj); in draw_img()
Dlv_slider.c138 bool hor = lv_obj_get_width(obj) >= lv_obj_get_height(obj); in lv_slider_event()
204 const lv_coord_t w = lv_obj_get_width(obj); in lv_slider_event()
298 …lv_coord_t knob_size = LV_MIN(lv_obj_get_width(obj) + 2 * trans_w, lv_obj_get_height(obj) + 2 * tr… in lv_slider_event()
353 knob_size = lv_obj_get_width(obj); in draw_knob()
444 return lv_obj_get_width(obj) >= lv_obj_get_height(obj); in is_slider_horizontal()
Dlv_roller.c435 lv_coord_t label_w = lv_obj_get_width(label); in lv_roller_label_event()
481 lv_obj_get_width(obj), LV_TEXT_FLAG_EXPAND); in draw_main()
603 lv_obj_set_x(label, (lv_obj_get_content_width(obj) - lv_obj_get_width(label)) / 2); in refr_position()
606 lv_obj_set_x(label, lv_obj_get_content_width(obj) - lv_obj_get_width(label)); in refr_position()
Dlv_dropdown.c473 if(lv_obj_get_width(dropdown->list) <= lv_obj_get_width(dropdown_obj) && in lv_dropdown_open()
475 lv_obj_set_width(dropdown->list, lv_obj_get_width(dropdown_obj)); in lv_dropdown_open()
872 txt_area.x1 = obj->coords.x1 + (lv_obj_get_width(obj) - size.x) / 2; in draw_main()
Dlv_table.c1077 lv_coord_t w = lv_obj_get_width(obj); in get_cell_area()
1108 else if(a.x2 > lv_obj_get_width(obj)) { in scroll_to_selected_cell()
1109 lv_obj_scroll_by_bounded(obj, lv_obj_get_width(obj) - a.x2, 0, LV_ANIM_ON); in scroll_to_selected_cell()
Dlv_arc.c781 lv_coord_t r = (LV_MIN(lv_obj_get_width(obj) - left_bg - right_bg, in get_center()
/lvgl-3.7.0/src/extra/others/snapshot/
Dlv_snapshot.c64 lv_coord_t w = lv_obj_get_width(obj); in lv_snapshot_buf_size_needed()
106 lv_coord_t w = lv_obj_get_width(obj); in lv_snapshot_take_to_buf()
/lvgl-3.7.0/examples/anim/
Dlv_example_anim_1.c28 lv_anim_set_values(&a, lv_obj_get_x(label), -lv_obj_get_width(label)); in sw_event_cb()
/lvgl-3.7.0/src/extra/widgets/win/
Dlv_win.c95 lv_obj_set_size(obj, lv_obj_get_width(parent), lv_obj_get_height(parent)); in lv_win_constructor()
/lvgl-3.7.0/src/extra/widgets/colorwheel/
Dlv_colorwheel.c245 lv_coord_t w = lv_obj_get_width(obj); in draw_disc_grad()
381 if(lv_obj_get_width(obj) != lv_area_get_width(param) || in lv_colorwheel_event()
449 p.x = obj->coords.x1 + lv_obj_get_width(obj) / 2; in lv_colorwheel_event()
468 uint16_t w = lv_obj_get_width(obj); in lv_colorwheel_event()
551 lv_coord_t w = lv_obj_get_width(obj); in refr_knob_pos()
/lvgl-3.7.0/src/extra/layouts/grid/
Dlv_grid.c451 size = LV_MAX(size, lv_obj_get_width(item)); in calc_cols()
621 x = c->x[col_pos] + col_w - lv_obj_get_width(item); in item_repos()
648 if(lv_obj_get_width(item) != item_w || lv_obj_get_height(item) != item_h) { in item_repos()
663 lv_coord_t w = lv_obj_get_width(item); in item_repos()
/lvgl-3.7.0/src/extra/others/gridnav/
Dlv_gridnav.c128 lv_coord_t d = lv_obj_get_width(dsc->focused_obj) / 4; in gridnav_event_cb()
148 lv_coord_t d = lv_obj_get_width(dsc->focused_obj) / 4; in gridnav_event_cb()
/lvgl-3.7.0/src/extra/layouts/flex/
Dlv_flex.c324 lv_coord_t(*get_main_size)(const lv_obj_t *) = (f->row ? lv_obj_get_width : lv_obj_get_height); in find_track_end()
325 … lv_coord_t(*get_cross_size)(const lv_obj_t *) = (!f->row ? lv_obj_get_width : lv_obj_get_height); in find_track_end()
512 lv_coord_t w = lv_obj_get_width(item); in children_repos()
/lvgl-3.7.0/demos/benchmark/
Dlv_demo_benchmark.c688 …lv_obj_set_size(scene_bg, lv_obj_get_width(scr), lv_obj_get_height(scr) - subtitle->coords.y2 - LV… in benchmark_init()
1155 lv_obj_set_x(obj, rnd_next(0, lv_obj_get_width(scene_bg) - lv_obj_get_width(obj))); in fall_anim()
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.c784 lv_coord_t meter_w = lv_obj_get_width(meter1); in analytics_create()
1027 lv_coord_t max_w = lv_obj_get_width(lv_obj_get_parent(obj)) - LV_DPX(20); in color_changer_anim_cb()
1054 if(lv_obj_get_width(color_cont) < LV_HOR_RES / 2) { in color_changer_event_cb()
1081 if(lv_obj_get_width(color_cont) < LV_HOR_RES / 2) { in color_event_cb()
/lvgl-3.7.0/docs/widgets/core/
Dimg.md89 …nates of image objects won't change during transformation. That is `lv_obj_get_width/height/x/y()`…
/lvgl-3.7.0/demos/music/
Dlv_demo_music_main.c777 center.x = obj->coords.x1 + lv_obj_get_width(obj) / 2; in spectrum_draw_event_cb()

12