Home
last modified time | relevance | path

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

12

/lvgl-latest/tests/src/test_cases/widgets/
Dtest_win.c108 TEST_ASSERT_EQUAL(win_button_width, lv_obj_get_width(btn)); in test_win_add_button()
140 TEST_ASSERT_EQUAL(win_button_width, lv_obj_get_width(btn)); in test_win_add_multiple_elements()
150 TEST_ASSERT_EQUAL(win_button_width, lv_obj_get_width(btn)); in test_win_add_multiple_elements()
155 TEST_ASSERT_EQUAL(win_button_close_width, lv_obj_get_width(btn)); in test_win_add_multiple_elements()
Dtest_textarea.c54 int32_t line_width = lv_obj_get_width(txt_ptr->label); in test_textarea_should_update_label_style_with_one_line_enabled()
58 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.c38 int32_t objw = lv_obj_get_width(slider); in test_textarea_should_have_valid_documented_default_values()
/lvgl-latest/src/core/
Dlv_obj_pos.c102 w = lv_obj_get_width(obj); in lv_obj_refr_size()
164 if(lv_obj_get_width(obj) == w && lv_obj_get_height(obj) == h) return false; in lv_obj_refr_size()
357 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
367 x = lv_obj_get_content_width(base) / 2 - lv_obj_get_width(obj) / 2 + bleft; in lv_obj_align_to()
372 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + 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()
396 x = lv_obj_get_content_width(base) - lv_obj_get_width(obj) + bleft; in lv_obj_align_to()
406 x = lv_obj_get_width(base) / 2 - lv_obj_get_width(obj) / 2; in lv_obj_align_to()
411 x = lv_obj_get_width(base) - lv_obj_get_width(obj); in lv_obj_align_to()
[all …]
Dlv_obj_pos.h291 int32_t lv_obj_get_width(const lv_obj_t * obj);
Dlv_obj_scroll.c201 self_w = self_w - (lv_obj_get_width(obj) - space_right - space_left); in lv_obj_get_scroll_left()
239 self_w = self_w - (lv_obj_get_width(obj) - space_right - space_left); in lv_obj_get_scroll_right()
516 int32_t obj_w = lv_obj_get_width(obj); in lv_obj_get_scrollbar_area()
780 int32_t parent_w = lv_obj_get_width(parent) - sleft - sright; in scroll_area_into_view()
Dlv_obj.c83 .getter = lv_obj_get_width,
795 … lv_obj_scroll_to_x(obj, lv_obj_get_scroll_x(obj) + lv_obj_get_width(obj) / 4, anim_enable); in lv_obj_event()
802 … lv_obj_scroll_to_x(obj, lv_obj_get_scroll_x(obj) - lv_obj_get_width(obj) / 4, anim_enable); in lv_obj_event()
/lvgl-latest/src/others/snapshot/
Dlv_snapshot.c50 int32_t w = lv_obj_get_width(obj); in lv_snapshot_create_draw_buf()
63 int32_t w = lv_obj_get_width(obj); in lv_snapshot_reshape_draw_buf()
/lvgl-latest/src/widgets/image/
Dlv_image.c286 int32_t w = lv_obj_get_width(obj); in lv_image_set_rotation()
328 int32_t w = lv_obj_get_width(obj); in lv_image_set_pivot()
584 img->w = lv_obj_get_width(obj); in lv_image_constructor()
643 int32_t w = lv_obj_get_width(obj); in lv_image_event()
657 if(img->w == lv_obj_get_width(obj) && img->h == lv_obj_get_height(obj) && in lv_image_event()
661 int32_t w = lv_obj_get_width(obj); in lv_image_event()
728 …lv_image_buf_get_transformed_area(&a, lv_obj_get_width(obj), lv_obj_get_height(obj), 0, img->scale… in draw_image()
823 int32_t w = lv_obj_get_width(obj); in scale_update()
861 int32_t scale_x = lv_obj_get_width(obj) * LV_SCALE_NONE / img->w; in update_align()
/lvgl-latest/tests/src/test_cases/libs/
Dtest_freetype.c453 lv_obj_set_width(label0, lv_obj_get_width(lv_screen_active()) - 20); in test_freetype_bitmap_rendering_test()
459 lv_obj_set_width(label1, lv_obj_get_width(lv_screen_active()) - 20); in test_freetype_bitmap_rendering_test()
465 lv_obj_set_width(label2, lv_obj_get_width(lv_screen_active()) - 20); in test_freetype_bitmap_rendering_test()
475 lv_obj_set_width(label_emoji, lv_obj_get_width(lv_screen_active()) - 20); in test_freetype_bitmap_rendering_test()
/lvgl-latest/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()
Dlv_example_anim_4.c35 lv_anim_set_values(&a, lv_obj_get_x(label), -lv_obj_get_width(label)); in sw_event_cb()
/lvgl-latest/src/widgets/win/
Dlv_win.c97 lv_obj_set_size(obj, lv_obj_get_width(parent), lv_obj_get_height(parent)); in lv_win_constructor()
/lvgl-latest/src/widgets/slider/
Dlv_slider.c326 …int32_t knob_size = LV_MIN(lv_obj_get_width(obj) + 2 * trans_w, lv_obj_get_height(obj) + 2 * trans… in lv_slider_event()
389 knob_size = lv_obj_get_width(obj); in draw_knob()
463 …if(slider->bar.orientation == LV_BAR_ORIENTATION_AUTO) return lv_obj_get_width(obj) >= lv_obj_get_… in is_slider_horizontal()
570 const int32_t w = lv_obj_get_width(obj); in update_knob_pos()
/lvgl-latest/src/layouts/grid/
Dlv_grid.c321 size = LV_MAX(size, lv_obj_get_width(item)); in calc_cols()
512 …x = c->x[col_pos] + col_w - lv_obj_get_width(item) - lv_obj_get_style_margin_right(item, LV_PART_M… in item_repos()
540 if(lv_obj_get_width(item) != item_w || lv_obj_get_height(item) != item_h) { in item_repos()
555 int32_t w = lv_obj_get_width(item); in item_repos()
/lvgl-latest/demos/flex_layout/
Dlv_demo_flex_layout_ctrl_pad.c96 int32_t value = lv_obj_get_width(obj); in ctrl_pad_obj_update()
/lvgl-latest/src/others/gridnav/
Dlv_gridnav.c150 int32_t d = lv_obj_get_width(dsc->focused_obj) / 4; in gridnav_event_cb()
170 int32_t d = lv_obj_get_width(dsc->focused_obj) / 4; in gridnav_event_cb()
/lvgl-latest/src/widgets/roller/
Dlv_roller.c500 int32_t label_w = lv_obj_get_width(label); in lv_roller_label_event()
548 label_dsc.line_space, lv_obj_get_width(obj), LV_TEXT_FLAG_EXPAND); in draw_main()
679 x = (lv_obj_get_content_width(obj) - lv_obj_get_width(label)) / 2; in refr_position()
682 x = lv_obj_get_content_width(obj) - lv_obj_get_width(label); in refr_position()
/lvgl-latest/examples/others/observer/
Dlv_example_observer_4.c192 lv_obj_set_width(indicator, lv_obj_get_width(btn_act)); in indicator_observer_cb()
/lvgl-latest/src/libs/barcode/
Dlv_barcode.c146 buf_w = (barcode->direction == LV_DIR_HOR) ? barcode_w * scale : lv_obj_get_width(obj); in lv_barcode_update()
/lvgl-latest/src/widgets/line/
Dlv_line.c245 int32_t w = lv_obj_get_width(obj); in lv_line_event()
/lvgl-latest/src/widgets/switch/
Dlv_switch.c236 int32_t knob_size = lv_obj_get_width(obj); in draw_main()
/lvgl-latest/src/layouts/flex/
Dlv_flex.c453 int32_t w = lv_obj_get_width(item); in children_repos()
541 + lv_obj_get_width(obj) in lv_obj_get_width_with_margin()
/lvgl-latest/demos/multilang/
Dlv_demo_multilang.c272 int32_t w = lv_obj_get_width(cont); in scroll_event_cb()
/lvgl-latest/demos/widgets/
Dlv_demo_widgets.c677 scale_w = lv_obj_get_width(scale1); in analytics_create()
1101 int32_t max_w = lv_obj_get_width(lv_obj_get_parent(obj)) - LV_DPX(20); in color_changer_anim_cb()
1128 if(lv_obj_get_width(color_cont) < LV_HOR_RES / 2) { in color_changer_event_cb()
1155 if(lv_obj_get_width(color_cont) < LV_HOR_RES / 2) { in color_event_cb()
1629 int32_t width = lv_obj_get_width(scale3); in scale3_size_changed_event_cb()

12