Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 178) sorted by relevance

12345678

/lvgl-latest/src/draw/vg_lite/
Dlv_vg_lite_path.c35 #define PATH_CURRENT_PTR(PATH) ((uint8_t*)(PATH)->base.path + (PATH)->base.path_length)
91 lv_vg_lite_path_t * path = lv_malloc_zeroed(sizeof(lv_vg_lite_path_t)); in lv_vg_lite_path_create() local
92 LV_ASSERT_MALLOC(path); in lv_vg_lite_path_create()
93 path->format_len = lv_vg_lite_path_format_len(data_format); in lv_vg_lite_path_create()
95 &path->base, in lv_vg_lite_path_create()
103 return path; in lv_vg_lite_path_create()
106 void lv_vg_lite_path_destroy(lv_vg_lite_path_t * path) in lv_vg_lite_path_destroy() argument
109 LV_ASSERT_NULL(path); in lv_vg_lite_path_destroy()
110 if(path->base.path != NULL) { in lv_vg_lite_path_destroy()
111 lv_free(path->base.path); in lv_vg_lite_path_destroy()
[all …]
Dlv_draw_vg_lite_border.c35 static vg_lite_fill_t path_append_inner_rect(lv_vg_lite_path_t * path,
73 lv_vg_lite_path_t * path = lv_vg_lite_path_get(u, VG_LITE_FP32); in lv_draw_vg_lite_border() local
74 lv_vg_lite_path_set_quality(path, dsc->radius == 0 ? VG_LITE_LOW : VG_LITE_HIGH); in lv_draw_vg_lite_border()
75 lv_vg_lite_path_set_bounding_box_area(path, &clip_area); in lv_draw_vg_lite_border()
78 lv_vg_lite_path_append_rect(path, in lv_draw_vg_lite_border()
84 … vg_lite_fill_t fill_rule = path_append_inner_rect(path, dsc, coords->x1, coords->y1, w, h, r_out); in lv_draw_vg_lite_border()
86 lv_vg_lite_path_end(path); in lv_draw_vg_lite_border()
92 vg_lite_path_t * vg_lite_path = lv_vg_lite_path_get_path(path); in lv_draw_vg_lite_border()
108 lv_vg_lite_path_drop(u, path); in lv_draw_vg_lite_border()
116 static vg_lite_fill_t path_append_inner_rect(lv_vg_lite_path_t * path, in path_append_inner_rect() argument
[all …]
Dlv_vg_lite_path.h61 void lv_vg_lite_path_destroy(lv_vg_lite_path_t * path);
65 void lv_vg_lite_path_drop(lv_draw_vg_lite_unit_t * unit, lv_vg_lite_path_t * path);
67 void lv_vg_lite_path_reset(lv_vg_lite_path_t * path, vg_lite_format_t data_format);
69 void lv_vg_lite_path_set_bounding_box_area(lv_vg_lite_path_t * path, const lv_area_t * area);
71 void lv_vg_lite_path_set_bounding_box(lv_vg_lite_path_t * path,
75 void lv_vg_lite_path_get_bounding_box(lv_vg_lite_path_t * path,
79 bool lv_vg_lite_path_update_bounding_box(lv_vg_lite_path_t * path);
81 void lv_vg_lite_path_set_transform(lv_vg_lite_path_t * path, const vg_lite_matrix_t * matrix);
83 void lv_vg_lite_path_set_quality(lv_vg_lite_path_t * path, vg_lite_quality_t quality);
85 vg_lite_path_t * lv_vg_lite_path_get_path(lv_vg_lite_path_t * path);
[all …]
Dlv_draw_vg_lite_line.c89 lv_vg_lite_path_t * path = lv_vg_lite_path_get(u, VG_LITE_FP32); in lv_draw_vg_lite_line() local
90 lv_vg_lite_path_set_bounding_box_area(path, &rel_clip_area); in lv_draw_vg_lite_line()
117 lv_vg_lite_path_move_to(path, head_start_x, head_start_y); in lv_draw_vg_lite_line()
125 lv_vg_lite_path_append_arc_right_angle(path, in lv_draw_vg_lite_line()
131 lv_vg_lite_path_append_arc_right_angle(path, in lv_draw_vg_lite_line()
137 lv_vg_lite_path_line_to(path, head_end_x, head_end_y); in lv_draw_vg_lite_line()
141 lv_vg_lite_path_line_to(path, tail_start_x, tail_start_y); in lv_draw_vg_lite_line()
147 lv_vg_lite_path_append_arc_right_angle(path, in lv_draw_vg_lite_line()
151 lv_vg_lite_path_append_arc_right_angle(path, in lv_draw_vg_lite_line()
157 lv_vg_lite_path_line_to(path, tail_end_x, tail_end_y); in lv_draw_vg_lite_line()
[all …]
Dlv_vg_lite_stroke.c45 lv_vg_lite_path_t * path; member
57 lv_vg_lite_path_t * path; member
135 struct _lv_vg_lite_path_t * path, in lv_vg_lite_stroke_get() argument
139 LV_ASSERT_NULL(path); in lv_vg_lite_stroke_get()
142 vg_lite_path_t * vg_path = lv_vg_lite_path_get_path(path); in lv_vg_lite_stroke_get()
159 search_key.lv.path = path; in lv_vg_lite_stroke_get()
187 return stroke_item->vg.path; in lv_vg_lite_stroke_get_path()
217 item->vg.path = lv_vg_lite_path_create(VG_LITE_FP32); in stroke_create_cb()
218 lv_vg_lite_path_append_path(item->vg.path, item->lv.path); in stroke_create_cb()
235 vg_lite_path_t * vg_path = lv_vg_lite_path_get_path(item->vg.path); in stroke_create_cb()
[all …]
Dlv_draw_vg_lite_arc.c85 lv_vg_lite_path_t * path = lv_vg_lite_path_get(u, VG_LITE_FP32); in lv_draw_vg_lite_arc() local
86 lv_vg_lite_path_set_bounding_box_area(path, &clip_area); in lv_draw_vg_lite_arc()
96 lv_vg_lite_path_append_circle(path, cx, cy, radius_out, radius_out); in lv_draw_vg_lite_arc()
100 lv_vg_lite_path_append_circle(path, cx, cy, radius_in, radius_in); in lv_draw_vg_lite_arc()
117 lv_vg_lite_path_move_to(path, start_x, start_y); in lv_draw_vg_lite_arc()
120 lv_vg_lite_path_append_arc(path, in lv_draw_vg_lite_arc()
128 lv_vg_lite_path_line_to(path, end_x, end_y); in lv_draw_vg_lite_arc()
131 lv_vg_lite_path_append_arc(path, in lv_draw_vg_lite_arc()
139 lv_vg_lite_path_close(path); in lv_draw_vg_lite_arc()
143 lv_vg_lite_path_append_arc(path, cx, cy, radius_out, start_angle, sweep_angle, true); in lv_draw_vg_lite_arc()
[all …]
Dlv_draw_vg_lite_triangle.c61 lv_vg_lite_path_t * path = lv_vg_lite_path_get(u, VG_LITE_FP32); in lv_draw_vg_lite_triangle() local
62 lv_vg_lite_path_set_bounding_box_area(path, &clip_area); in lv_draw_vg_lite_triangle()
63 lv_vg_lite_path_move_to(path, dsc->p[0].x, dsc->p[0].y); in lv_draw_vg_lite_triangle()
64 lv_vg_lite_path_line_to(path, dsc->p[1].x, dsc->p[1].y); in lv_draw_vg_lite_triangle()
65 lv_vg_lite_path_line_to(path, dsc->p[2].x, dsc->p[2].y); in lv_draw_vg_lite_triangle()
66 lv_vg_lite_path_close(path); in lv_draw_vg_lite_triangle()
67 lv_vg_lite_path_end(path); in lv_draw_vg_lite_triangle()
69 vg_lite_path_t * vg_lite_path = lv_vg_lite_path_get_path(path); in lv_draw_vg_lite_triangle()
105 lv_vg_lite_path_drop(u, path); in lv_draw_vg_lite_triangle()
Dlv_draw_vg_lite_fill.c62 lv_vg_lite_path_t * path = lv_vg_lite_path_get(u, VG_LITE_FP32); in lv_draw_vg_lite_fill() local
63 lv_vg_lite_path_set_quality(path, dsc->radius == 0 ? VG_LITE_LOW : VG_LITE_HIGH); in lv_draw_vg_lite_fill()
64 lv_vg_lite_path_set_bounding_box_area(path, &clip_area); in lv_draw_vg_lite_fill()
65 lv_vg_lite_path_append_rect(path, in lv_draw_vg_lite_fill()
69 lv_vg_lite_path_end(path); in lv_draw_vg_lite_fill()
71 vg_lite_path_t * vg_lite_path = lv_vg_lite_path_get_path(path); in lv_draw_vg_lite_fill()
105 lv_vg_lite_path_drop(u, path); in lv_draw_vg_lite_fill()
/lvgl-latest/src/draw/nema_gfx/
Dlv_nema_gfx_path.c67 nema_gfx_path->path = nema_vg_path_create(); in lv_nema_gfx_path_alloc()
81 if(nema_gfx_path->path != NULL) { in lv_nema_gfx_path_destroy()
82 nema_vg_path_destroy(nema_gfx_path->path); in lv_nema_gfx_path_destroy()
83 nema_gfx_path->path = NULL; in lv_nema_gfx_path_destroy()
103 void lv_nema_gfx_path_move_to(lv_nema_gfx_path_t * path, float x, float y) in lv_nema_gfx_path_move_to() argument
105 LV_ASSERT_NULL(path); in lv_nema_gfx_path_move_to()
106 LV_ASSERT(path->data_size > data_point + 1); in lv_nema_gfx_path_move_to()
107 LV_ASSERT(path->seg_size > seg_point); in lv_nema_gfx_path_move_to()
108 path->seg[seg_point++] = NEMA_VG_PRIM_MOVE; in lv_nema_gfx_path_move_to()
109 path->data[data_point++] = x; in lv_nema_gfx_path_move_to()
[all …]
/lvgl-latest/demos/vector_graphic/
Dlv_demo_vector_graphic.c26 static void draw_pattern(lv_vector_dsc_t * ctx, lv_vector_path_t * path) in draw_pattern() argument
28 lv_vector_path_clear(path); in draw_pattern()
32 lv_vector_path_move_to(path, &pts[0]); in draw_pattern()
33 lv_vector_path_line_to(path, &pts[1]); in draw_pattern()
34 lv_vector_path_quad_to(path, &pts[2], &pts[3]); in draw_pattern()
35 lv_vector_path_close(path); in draw_pattern()
48 lv_vector_dsc_add_path(ctx, path); // draw a path in draw_pattern()
51 static void draw_gradient(lv_vector_dsc_t * ctx, lv_vector_path_t * path) in draw_gradient() argument
53 lv_vector_path_clear(path); in draw_gradient()
57 lv_vector_path_move_to(path, &pts[0]); in draw_gradient()
[all …]
/lvgl-latest/tests/src/test_cases/draw/
Dtest_draw_vector.c26 lv_vector_path_t * path = lv_vector_path_create(LV_VECTOR_PATH_QUALITY_MEDIUM); in draw_shapes() local
30 lv_vector_path_clear(path); in draw_shapes()
31 lv_vector_path_append_rect(path, &rect1, 0, 0); in draw_shapes()
33 lv_vector_dsc_add_path(ctx, path); in draw_shapes()
35 lv_vector_path_clear(path); in draw_shapes()
36 lv_vector_path_append_rect(path, &rect1, 20, 20); in draw_shapes()
39 lv_vector_dsc_add_path(ctx, path); in draw_shapes()
42 lv_vector_path_clear(path); in draw_shapes()
43 lv_vector_path_append_circle(path, &pc, 50, 50); in draw_shapes()
46 lv_vector_dsc_add_path(ctx, path); in draw_shapes()
[all …]
/lvgl-latest/docs/
Dbuild.py274 base_path = os.path.abspath(os.path.dirname(__file__))
275 project_path = os.path.abspath(os.path.join(base_path, '..'))
276 examples_path = os.path.join(project_path, 'examples')
277 lvgl_src_path = os.path.join(project_path, 'src')
278 latex_output_path = os.path.join(temp_directory, 'out_latex')
279 pdf_src_file = os.path.join(latex_output_path, 'LVGL.pdf')
280 pdf_dst_file = os.path.join(temp_directory, 'LVGL.pdf')
282 html_dst_path = os.path.join(project_path, 'out_html')
389 if os.path.exists(html_dst_path):
412 c1 = os.path.exists(temp_directory)
[all …]
/lvgl-latest/scripts/gen_json/
Dget_sdl2.py13 file = os.path.join(p, file)
18 if os.path.isdir(file):
23 def get_sdl2(path, url=SDL2_URL): argument
52 zf.extract(z_item, path=path)
55 include_path = get_path('include', path)
56 lib_path = get_path('lib\\x64', path)
59 sdl_include_path = os.path.split(include_path)[0]
60 if not os.path.exists(os.path.join(sdl_include_path, 'SDL2')):
61 os.rename(include_path, os.path.join(sdl_include_path, 'SDL2'))
66 return os.path.abspath(sdl_include_path), dll_path
Dgen_json.py9 base_path = os.path.abspath(os.path.dirname(__file__))
10 sys.path.insert(0, base_path)
12 project_path = os.path.abspath(os.path.join(base_path, '..', '..'))
13 docs_path = os.path.join(project_path, 'docs')
14 sys.path.insert(0, docs_path)
31 lvgl_src_path = os.path.join(lvgl_path, 'src')
32 temp_lvgl = os.path.join(temp_directory, 'lvgl')
34 os.path.splitext(os.path.split(target_header)[-1])[0]
39 shutil.copytree(lvgl_src_path, os.path.join(temp_lvgl, 'src'))
40 shutil.copyfile(os.path.join(lvgl_path, 'lvgl.h'), os.path.join(temp_lvgl, 'lvgl.h'))
[all …]
Dcreate_fake_lib_c.py153 fake_libc_path = os.path.join(temp_dir, 'fake_libc_include')
157 head, tail = os.path.split(file)
158 file = os.path.join(fake_libc_path, file)
159 file_name = os.path.split(file)[-1]
163 pth = os.path.join(fake_libc_path, head)
164 if not os.path.exists(pth):
/lvgl-latest/env_support/rt-thread/
DSConscript9 cwd = GetCurrentDir() # get current dir path
16 def check_h_hpp_exists(path):
17 file_dirs = os.listdir(path)
19 if os.path.splitext(file_dir)[1] in ['.h', '.hpp']:
27 src = src + Glob(os.path.join(lvgl_src_cwd,'*.c'))
30 current_path = os.path.join(root, dir)
31 …if current_path == os.path.join(lvgl_src_cwd, 'libs', 'thorvg', 'rapidjson', 'msinttypes'): # excl…
33 src = src + Glob(os.path.join(current_path,'*.c')) # add all .c files
34 if check_h_hpp_exists(current_path): # add .h and .hpp path
43 current_path = os.path.join(root, dir)
[all …]
/lvgl-latest/src/draw/
Dlv_draw_vector.c53 lv_vector_path_t * path; member
98 void lv_matrix_transform_path(const lv_matrix_t * matrix, lv_vector_path_t * path) in lv_matrix_transform_path() argument
100 lv_fpoint_t * pt = lv_array_front(&path->points); in lv_matrix_transform_path()
101 uint32_t size = lv_array_size(&path->points); in lv_matrix_transform_path()
110 lv_vector_path_t * path = lv_malloc(sizeof(lv_vector_path_t)); in lv_vector_path_create() local
111 LV_ASSERT_MALLOC(path); in lv_vector_path_create()
112 lv_memzero(path, sizeof(lv_vector_path_t)); in lv_vector_path_create()
113 path->quality = quality; in lv_vector_path_create()
114 lv_array_init(&path->ops, 8, sizeof(lv_vector_path_op_t)); in lv_vector_path_create()
115 lv_array_init(&path->points, 8, sizeof(lv_fpoint_t)); in lv_vector_path_create()
[all …]
Dlv_draw_vector.h110 void lv_matrix_transform_path(const lv_matrix_t * matrix, lv_vector_path_t * path);
124 void lv_vector_path_copy(lv_vector_path_t * target_path, const lv_vector_path_t * path);
130 void lv_vector_path_clear(lv_vector_path_t * path);
136 void lv_vector_path_delete(lv_vector_path_t * path);
143 void lv_vector_path_move_to(lv_vector_path_t * path, const lv_fpoint_t * p);
150 void lv_vector_path_line_to(lv_vector_path_t * path, const lv_fpoint_t * p);
158 void lv_vector_path_quad_to(lv_vector_path_t * path, const lv_fpoint_t * p1, const lv_fpoint_t * p2…
167 void lv_vector_path_cubic_to(lv_vector_path_t * path, const lv_fpoint_t * p1, const lv_fpoint_t * p…
174 void lv_vector_path_close(lv_vector_path_t * path);
181 void lv_vector_path_get_bounding(const lv_vector_path_t * path, lv_area_t * area);
[all …]
/lvgl-latest/src/misc/
Dlv_fs.c38 static resolved_path_t lv_fs_resolve_path(const char * path);
76 lv_fs_res_t lv_fs_open(lv_fs_file_t * file_p, const char * path, lv_fs_mode_t mode) in lv_fs_open() argument
78 if(path == NULL) { in lv_fs_open()
83 resolved_path_t resolved_path = lv_fs_resolve_path(path); in lv_fs_open()
88 LV_LOG_WARN("Can't open file (%s): unknown driver letter", path); in lv_fs_open()
94 LV_LOG_WARN("Can't open file (%s): driver not ready", path); in lv_fs_open()
100 LV_LOG_WARN("Can't open file (%s): open function not exists", path); in lv_fs_open()
127 lv_fs_path_ex_t * path_ex = (lv_fs_path_ex_t *)path; in lv_fs_open()
145 void lv_fs_make_path_from_buffer(lv_fs_path_ex_t * path, char letter, const void * buf, uint32_t si… in lv_fs_make_path_from_buffer() argument
147 path->path[0] = letter; in lv_fs_make_path_from_buffer()
[all …]
/lvgl-latest/tests/
Dmain.py13 lvgl_test_dir = os.path.dirname(os.path.realpath(__file__))
14 lvgl_script_path = os.path.join(lvgl_test_dir, "../scripts")
15 sys.path.append(lvgl_script_path)
17 wayland_dir = os.path.join(lvgl_test_dir, "wayland_protocols")
18 wayland_protocols_dir = os.path.realpath("/usr/share/wayland-protocols")
74 return os.path.join(lvgl_test_dir, get_base_build_dir(options_name))
82 if not os.path.isdir(wayland_dir):
86 os.path.join(wayland_protocols_dir, "stable/xdg-shell/xdg-shell.xml"),
87 os.path.join(wayland_dir, "wayland_xdg_shell.h.original"),
92 os.path.join(wayland_protocols_dir, "stable/xdg-shell/xdg-shell.xml"),
[all …]
/lvgl-latest/examples/widgets/canvas/
Dlv_example_canvas_8.c28 lv_vector_path_t * path = lv_vector_path_create(LV_VECTOR_PATH_QUALITY_MEDIUM); in lv_example_canvas_8() local
31 lv_vector_path_move_to(path, &pts[0]); in lv_example_canvas_8()
32 lv_vector_path_line_to(path, &pts[1]); in lv_example_canvas_8()
33 lv_vector_path_line_to(path, &pts[2]); in lv_example_canvas_8()
34 lv_vector_path_close(path); in lv_example_canvas_8()
37 lv_vector_dsc_add_path(dsc, path); in lv_example_canvas_8()
40 lv_vector_path_delete(path); in lv_example_canvas_8()
/lvgl-latest/tests/unity/
Dunity_support.h17 # define TEST_ASSERT_EQUAL_SCREENSHOT(path) TEST_IGNORE_MESSAGE("Requires LV_COLOR_… argument
18 # define TEST_ASSERT_EQUAL_SCREENSHOT_MESSAGE(path, msg) TEST_PRINTF(msg); TEST_IGNORE_MESSAGE("… argument
21 # define TEST_ASSERT_EQUAL_SCREENSHOT(path) if(LV_HOR_RES != 800 || LV_VER_RES != 4… argument
24 TEST_ASSERT_MESSAGE(lv_test_assert_image_eq(path), path); \
27 # define TEST_ASSERT_EQUAL_SCREENSHOT_MESSAGE(path, msg) if(LV_HOR_RES != 800 || LV_VER_RES != … argument
31 TEST_ASSERT_MESSAGE(lv_test_assert_image_eq(path), msg); \
/lvgl-latest/scripts/gdb/
Dgdbinit.py2 from os import path
4 here = path.dirname(path.abspath(__file__))
7 if here not in sys.path:
8 sys.path.insert(0, here)
/lvgl-latest/src/libs/fsdrv/
Dlv_fs_uefi.c48 static void lv_fs_uefi_lvgl_path_to_uefi_path(CHAR16 * path);
49 static void lv_fs_uefi_uefi_path_to_lvgl_path(CHAR16 * path);
50 static bool lv_fs_uefi_is_dot_path(CONST CHAR16 * path);
57 static void * lv_fs_uefi_open_cb(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode);
64 static void * lv_fs_uefi_dir_open_cb(lv_fs_drv_t * drv, const char * path);
123 static void * lv_fs_uefi_open_cb(lv_fs_drv_t * drv, const char * path, lv_fs_mode_t mode) in lv_fs_uefi_open_cb() argument
146 if(lv_uefi_ascii_to_ucs2(path, path_ucs2, LV_FS_MAX_PATH_LENGTH + 1) == 0) { in lv_fs_uefi_open_cb()
170 LV_LOG_WARN("[lv_uefi] Unable to open file '%s'.", path); in lv_fs_uefi_open_cb()
318 static void * lv_fs_uefi_dir_open_cb(lv_fs_drv_t * drv, const char * path) in lv_fs_uefi_dir_open_cb() argument
342 if(path != NULL && path[0] != '\0') { in lv_fs_uefi_dir_open_cb()
[all …]
/lvgl-latest/scripts/
Dgenerate_lv_conf.py7 DIR_SCRIPTS = os.path.dirname(__file__)
8 REPO_ROOT = os.path.join(DIR_SCRIPTS, "..")
39 if os.path.isdir(args.template):
40 args.template = os.path.join(args.template, "lv_conf_template.h")
43 args.config = os.path.join(args.target, "lv_conf.h")
46 args.defaults = os.path.join(args.target, "lv_conf.defaults")
48 if not os.path.exists(args.template):
50 if not os.path.exists(args.config):
52 if not os.path.exists(args.defaults):
58 def parse_defaults(path: str):
[all …]

12345678