Home
last modified time | relevance | path

Searched refs:center (Results 1 – 25 of 121) sorted by relevance

12345

/lvgl-3.4.0/src/draw/sw/
Dlv_draw_sw_arc.c25 const lv_point_t * center; member
60 …v_draw_ctx_t * draw_ctx, const lv_draw_arc_dsc_t * dsc, const lv_point_t * center, uint16_t radius, in lv_draw_sw_arc() argument
85 area_out.x1 = center->x - radius; in lv_draw_sw_arc()
86 area_out.y1 = center->y - radius; in lv_draw_sw_arc()
87 …area_out.x2 = center->x + radius - 1; /*-1 because the center already belongs to the left/bottom … in lv_draw_sw_arc()
88 area_out.y2 = center->y + radius - 1; in lv_draw_sw_arc()
127 lv_draw_mask_angle_init(&mask_angle_param, center->x, center->y, start_angle, end_angle); in lv_draw_sw_arc()
143 q_dsc.center = center; in lv_draw_sw_arc()
177 round_area.x1 += center->x; in lv_draw_sw_arc()
178 round_area.x2 += center->x; in lv_draw_sw_arc()
[all …]
/lvgl-3.4.0/examples/scroll/
Dlv_example_scroll_1.py7 panel.center()
13 label.center()
19 label.center()
25 label.center()
31 label.center()
37 label.center()
Dlv_example_scroll_2.py22 panel.center()
34 label.center()
/lvgl-3.4.0/src/draw/sdl/
Dlv_draw_sdl_arc.c41 … void get_cap_area(int16_t angle, lv_coord_t thickness, uint16_t radius, const lv_point_t * center,
47 …aw_sdl_draw_arc(lv_draw_ctx_t * draw_ctx, const lv_draw_arc_dsc_t * dsc, const lv_point_t * center, in lv_draw_sdl_draw_arc() argument
53 area_out.x1 = center->x - radius; in lv_draw_sdl_draw_arc()
54 area_out.y1 = center->y - radius; in lv_draw_sdl_draw_arc()
55 …area_out.x2 = center->x + radius - 1; /*-1 because the center already belongs to the left/bottom … in lv_draw_sdl_draw_arc()
56 area_out.y2 = center->y + radius - 1; in lv_draw_sdl_draw_arc()
90 lv_draw_mask_angle_init(&mask_angle_param, center->x, center->y, start_angle, end_angle); in lv_draw_sdl_draw_arc()
98 get_cap_area((int16_t) start_angle, dsc->width, radius, center, &start_area); in lv_draw_sdl_draw_arc()
99 get_cap_area((int16_t) end_angle, dsc->width, radius, center, &end_area); in lv_draw_sdl_draw_arc()
198 … void get_cap_area(int16_t angle, lv_coord_t thickness, uint16_t radius, const lv_point_t * center, in get_cap_area() argument
[all …]
/lvgl-3.4.0/examples/layouts/flex/
Dlv_example_flex_4.py6 cont.center()
15 label.center()
Dlv_example_flex_6.py9 cont.center()
18 label.center()
Dlv_example_flex_2.py12 cont.center()
21 label.center()
Dlv_example_flex_1.py24 label.center()
32 label.center()
Dlv_example_flex_5.py14 cont.center()
23 label.center()
/lvgl-3.4.0/src/widgets/
Dlv_arc.c38 static void get_center(lv_obj_t * obj, lv_point_t * center, lv_coord_t * arc_r);
39 static void get_knob_area(lv_obj_t * arc, const lv_point_t * center, lv_coord_t r, lv_area_t * knob…
380 lv_point_t center; in lv_arc_event() local
382 get_center(obj, &center, &r); in lv_arc_event()
384 p.x -= center.x; in lv_arc_event()
385 p.y -= center.y; in lv_arc_event()
563 lv_point_t center; in lv_arc_draw() local
565 get_center(obj, &center, &arc_r); in lv_arc_draw()
579 part_draw_dsc.p1 = &center; in lv_arc_draw()
584 …lv_draw_arc(draw_ctx, &arc_dsc, &center, part_draw_dsc.radius, arc->bg_angle_start + arc->rotation, in lv_arc_draw()
[all …]
/lvgl-3.4.0/examples/event/
Dlv_example_event_1.py10 btn.center()
15 label.center()
Dlv_example_event_2.py13 btn.center()
17 btn_label.center()
Dlv_example_event_3.py20 cont.center()
30 label.center()
/lvgl-3.4.0/examples/layouts/grid/
Dlv_example_grid_3.py20 cont.center()
35 label.center()
Dlv_example_grid_6.py10 cont.center()
26 label.center()
Dlv_example_grid_1.py13 cont.center()
28 label.center()
Dlv_example_grid_4.py16 cont.center()
31 label.center()
Dlv_example_grid_5.py18 cont.center()
30 label.center()
/lvgl-3.4.0/examples/widgets/tileview/
Dlv_example_tileview_1.py12 label.center()
23 btn.center()
/lvgl-3.4.0/examples/widgets/menu/
Dlv_example_menu_2.py5 mbox1.center()
12 menu.center()
/lvgl-3.4.0/
DREADME_zh.md1 <h1 align="center"> LVGL - Light and Versatile Graphics Library</h1>
2 <h2 align="center"> LVGL - 轻量级通用型图形库</h2>
6 <p align="center">
9 <p align="center">
14 <h4 align="center">
149 lv_obj_center(label); /*Align the label to the center*/
171 label.center()
/lvgl-3.4.0/examples/styles/
Dlv_example_style_11.py33 label.center()
43 label.center()
/lvgl-3.4.0/demos/music/
Dlv_demo_music_main.c746 lv_point_t center; in spectrum_draw_event_cb() local
747 center.x = obj->coords.x1 + lv_obj_get_width(obj) / 2; in spectrum_draw_event_cb()
748 center.y = obj->coords.y1 + lv_obj_get_height(obj) / 2; in spectrum_draw_event_cb()
820 poly[0].x = center.x + x1_out; in spectrum_draw_event_cb()
821 poly[0].y = center.y + get_sin(di, v); in spectrum_draw_event_cb()
824 poly[1].x = center.x + x1_in; in spectrum_draw_event_cb()
825 poly[1].y = center.y + get_sin(di, r_in); in spectrum_draw_event_cb()
829 poly[2].x = center.x + x2_in; in spectrum_draw_event_cb()
830 poly[2].y = center.y + get_sin(di, r_in); in spectrum_draw_event_cb()
833 poly[3].x = center.x + x2_out; in spectrum_draw_event_cb()
[all …]
/lvgl-3.4.0/examples/get_started/
Dlv_example_get_started_2.py47 label.center()
61 label.center()
/lvgl-3.4.0/examples/widgets/spinner/
Dlv_example_spinner_1.py4 spinner.center()

12345