Home
last modified time | relevance | path

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

123456

/lvgl-3.7.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()
131 lv_draw_mask_angle_init(&mask_angle_param, center->x, center->y, start_angle, end_angle); in lv_draw_sw_arc()
147 q_dsc.center = center; in lv_draw_sw_arc()
183 round_area.x1 += center->x; in lv_draw_sw_arc()
184 round_area.x2 += center->x; in lv_draw_sw_arc()
[all …]
/lvgl-3.7.0/src/draw/nxp/vglite/
Dlv_draw_vglite_arc.c92 … int32_t start_angle, int32_t end_angle, const lv_point_t * center, bool cw);
106 lv_res_t lv_gpu_nxp_vglite_draw_arc(const lv_point_t * center, int32_t radius, int32_t start_angle,… in lv_gpu_nxp_vglite_draw_arc() argument
133 arc_path[pidx++] = center->x + cp_x; in lv_gpu_nxp_vglite_draw_arc()
134 arc_path[pidx++] = center->y + cp_y; in lv_gpu_nxp_vglite_draw_arc()
137 add_arc_path(arc_path, &pidx, radius, start_angle, end_angle, center, true); in lv_gpu_nxp_vglite_draw_arc()
145 arc_path[pidx++] = center->x + cp_x; in lv_gpu_nxp_vglite_draw_arc()
146 arc_path[pidx++] = center->y + cp_y; in lv_gpu_nxp_vglite_draw_arc()
152 arc_path[pidx++] = center->x + cp_x; in lv_gpu_nxp_vglite_draw_arc()
153 arc_path[pidx++] = center->y + cp_y; in lv_gpu_nxp_vglite_draw_arc()
160 lv_point_t round_center = {center->x + cp_x, center->y + cp_y}; in lv_gpu_nxp_vglite_draw_arc()
[all …]
/lvgl-3.7.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.7.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()
89 lv_draw_mask_angle_init(&mask_angle_param, center->x, center->y, start_angle, end_angle); in lv_draw_sdl_draw_arc()
97 get_cap_area((int16_t) start_angle, dsc->width, radius, center, &start_area); in lv_draw_sdl_draw_arc()
98 get_cap_area((int16_t) end_angle, dsc->width, radius, center, &end_area); in lv_draw_sdl_draw_arc()
204 … 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.7.0/src/widgets/
Dlv_arc.c42 static void get_center(const lv_obj_t * obj, lv_point_t * center, lv_coord_t * arc_r);
44 static void get_knob_area(lv_obj_t * arc, const lv_point_t * center, lv_coord_t r, lv_area_t * knob…
338 lv_point_t center; in lv_arc_align_obj_to_angle() local
340 get_center(obj, &center, &arc_r); in lv_arc_align_obj_to_angle()
359 lv_point_t center; in lv_arc_rotate_obj_to_angle() local
361 get_center(obj, &center, &arc_r); in lv_arc_rotate_obj_to_angle()
372 lv_coord_t pivot_x = obj_to_rotate->coords.x1 - center.x; in lv_arc_rotate_obj_to_angle()
373 lv_coord_t pivot_y = obj_to_rotate->coords.y1 - center.y; in lv_arc_rotate_obj_to_angle()
439 lv_point_t center; in lv_arc_event() local
441 get_center(obj, &center, &r); in lv_arc_event()
[all …]
/lvgl-3.7.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.7.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.7.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.7.0/examples/widgets/tileview/
Dlv_example_tileview_1.py12 label.center()
23 btn.center()
/lvgl-3.7.0/examples/widgets/menu/
Dlv_example_menu_2.py5 mbox1.center()
12 menu.center()
/lvgl-3.7.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">
150 lv_obj_center(label); /*Align the label to the center*/
172 label.center()
/lvgl-3.7.0/examples/styles/
Dlv_example_style_11.py33 label.center()
43 label.center()
/lvgl-3.7.0/demos/music/
Dlv_demo_music_main.c776 lv_point_t center; in spectrum_draw_event_cb() local
777 center.x = obj->coords.x1 + lv_obj_get_width(obj) / 2; in spectrum_draw_event_cb()
778 center.y = obj->coords.y1 + lv_obj_get_height(obj) / 2; in spectrum_draw_event_cb()
852 poly[0].x = center.x + x1_out; in spectrum_draw_event_cb()
853 poly[0].y = center.y + get_sin(di, v); in spectrum_draw_event_cb()
856 poly[1].x = center.x + x1_in; in spectrum_draw_event_cb()
857 poly[1].y = center.y + get_sin(di, r_in); in spectrum_draw_event_cb()
861 poly[2].x = center.x + x2_in; in spectrum_draw_event_cb()
862 poly[2].y = center.y + get_sin(di, r_in); in spectrum_draw_event_cb()
865 poly[3].x = center.x + x2_out; in spectrum_draw_event_cb()
[all …]
/lvgl-3.7.0/examples/get_started/
Dlv_example_get_started_2.py47 label.center()
61 label.center()

123456