Home
last modified time | relevance | path

Searched full:c (Results 1 – 25 of 1368) sorted by relevance

12345678910>>...55

/lvgl-latest/env_support/cmsis-pack/
DLVGL.lvgl.9.3.0-dev2.pack ... .c demos/benchmark/assets/lv_font_benchmark_montserrat_28_compr_az.c.c demos/benchmark/lv_demo_benchmark.c demos
DLVGL.lvgl.pdsc379 <file category="sourceC" name="src/lv_init.c" />
383 <file category="sourceC" name="src/core/lv_group.c" />
384 <file category="sourceC" name="src/core/lv_obj.c" />
385 <file category="sourceC" name="src/core/lv_obj_class.c" />
386 <file category="sourceC" name="src/core/lv_obj_draw.c" />
387 <file category="sourceC" name="src/core/lv_obj_event.c" />
388 <file category="sourceC" name="src/core/lv_obj_id_builtin.c" />
389 <file category="sourceC" name="src/core/lv_obj_pos.c" />
390 <file category="sourceC" name="src/core/lv_obj_property.c" />
391 <file category="sourceC" name="src/core/lv_obj_scroll.c" />
[all …]
/lvgl-latest/demos/high_res/
Dlv_demo_high_res_app_smart_home.c2 * @file lv_demo_high_res_app_smart_home.c
31 static void create_widget1(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
35 static void create_widget_charging(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
38 static void create_widget2(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
40 static void create_widget3(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
41 static void create_widget4(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
57 lv_demo_high_res_ctx_t * c = lv_obj_get_user_data(base_obj); in lv_demo_high_res_app_smart_home() local
66 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_smart_home()
67 &c->imgs[IMG_LIGHT_BG_SMART_HOME]); in lv_demo_high_res_app_smart_home()
73 lv_obj_set_style_pad_top(bg_cont, c->sz->gap[7], 0); in lv_demo_high_res_app_smart_home()
[all …]
Dlv_demo_high_res_app_thermostat.c2 * @file lv_demo_high_res_app_thermostat.c
33 static lv_obj_t * widget1_chart_label(lv_demo_high_res_ctx_t * c, lv_obj_t * parent, const char * t…
34 static void create_widget1(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
37 static lv_obj_t * create_widget2_value(lv_demo_high_res_ctx_t * c, lv_obj_t * parent, const char * …
39 static void create_widget2(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
40 static lv_obj_t * create_widget3_setting(lv_demo_high_res_ctx_t * c, lv_obj_t * parent, const lv_im…
46 static void create_widget3(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
62 lv_demo_high_res_ctx_t * c = lv_obj_get_user_data(base_obj); in lv_demo_high_res_app_thermostat() local
71 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_thermostat()
72 &c->imgs[IMG_LIGHT_BG_THERMOSTAT]); in lv_demo_high_res_app_thermostat()
[all …]
Dlv_demo_high_res_top_margin.c2 * @file lv_demo_high_res_top_margin.c
32 lv_demo_high_res_ctx_t * c);
37 static lv_obj_t * create_wifi(lv_obj_t * parent, lv_demo_high_res_ctx_t * c);
39 static lv_obj_t * create_perfmon(lv_obj_t * parent, lv_demo_high_res_ctx_t * c);
43 static lv_obj_t * create_settings(lv_obj_t * parent, lv_demo_high_res_ctx_t * c);
44 …bj_t * create_setting_label_cont(lv_obj_t * parent, const char * text, lv_demo_high_res_ctx_t * c);
64 lv_demo_high_res_ctx_t * c) in lv_demo_high_res_top_margin_create() argument
66 if(!c->top_margin_subjects_are_init) { in lv_demo_high_res_top_margin_create()
67 c->top_margin_subjects_are_init = true; in lv_demo_high_res_top_margin_create()
68 lv_subject_init_int(&c->top_margin_wifi_subject, 0); in lv_demo_high_res_top_margin_create()
[all …]
Dlv_demo_high_res_app_ev_charging.c2 * @file lv_demo_high_res_app_ev_charging.c
51 static void create_widget1(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
52 static lv_obj_t * widget2_chart_label(lv_demo_high_res_ctx_t * c, lv_obj_t * parent, const char * t…
53 static void create_widget2(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
54 static lv_obj_t * create_widget3_info(lv_demo_high_res_ctx_t * c, lv_obj_t * parent, const lv_image…
56 static void create_widget3(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
77 lv_demo_high_res_ctx_t * c = lv_obj_get_user_data(base_obj); in lv_demo_high_res_app_ev_charging() local
86 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_ev_charging()
87 &c->imgs[IMG_LIGHT_BG_EV_CHARGING]); in lv_demo_high_res_app_ev_charging()
92 lv_obj_set_style_pad_top(bg_cont, c->sz->gap[7], 0); in lv_demo_high_res_app_ev_charging()
[all …]
Dlv_demo_high_res_app_smart_meter.c2 * @file lv_demo_high_res_app_smart_meter.c
41 static lv_obj_t * create_widget1_part(lv_demo_high_res_ctx_t * c, lv_obj_t * parent, const char * t…
43 static void widget1_anim_height_range(lv_demo_high_res_ctx_t * c, int32_t * min, int32_t * max);
47 static void create_widget1(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
48 static lv_obj_t * widget23_chart_label(lv_demo_high_res_ctx_t * c, lv_obj_t * parent, const char * …
52 static void create_widget2(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
57 static lv_obj_t * create_widget3_stat(lv_demo_high_res_ctx_t * c, lv_obj_t * parent, const char * t…
59 static void create_widget3(lv_demo_high_res_ctx_t * c, lv_obj_t * widgets);
75 lv_demo_high_res_ctx_t * c = lv_obj_get_user_data(base_obj); in lv_demo_high_res_app_smart_meter() local
84 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_smart_meter()
[all …]
Dlv_demo_high_res_home.c2 * @file lv_demo_high_res_home.c
33 static void app_card_create(lv_demo_high_res_ctx_t * c, lv_obj_t * parent, const char * text,
55 lv_demo_high_res_ctx_t * c = lv_obj_get_user_data(base_obj); in lv_demo_high_res_home() local
64 …lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, &c->imgs… in lv_demo_high_res_home()
70 lv_obj_set_style_pad_top(bg_cont, c->sz->gap[7], 0); in lv_demo_high_res_home()
75c->sz == &lv_demo_high_res_sizes_all[SIZE_SM] ? c->sz->gap[9] : c->sz->gap[10], false, c); in lv_demo_high_res_home()
82 lv_obj_set_style_pad_left(info_area, c->sz->gap[10], 0); in lv_demo_high_res_home()
83 lv_obj_set_style_pad_right(info_area, c->sz->gap[10], 0); in lv_demo_high_res_home()
88 …lv_obj_t * date_and_time = lv_demo_high_res_simple_container_create(info_area, true, c->sz->gap[4], in lv_demo_high_res_home()
92 lv_obj_add_style(date, &c->fonts[FONT_HEADING_MD], 0); in lv_demo_high_res_home()
[all …]
Dlv_demo_high_res_util.c2 * @file lv_demo_high_res_util.c
159 lv_demo_high_res_ctx_t * c = lv_malloc_zeroed(sizeof(lv_demo_high_res_ctx_t)); in lv_demo_high_res_base_obj_create() local
160 LV_ASSERT_MALLOC(c); in lv_demo_high_res_base_obj_create()
162 lv_obj_set_user_data(base_obj, c); in lv_demo_high_res_base_obj_create()
185 c->sz = &lv_demo_high_res_sizes_all[size]; in lv_demo_high_res_base_obj_create()
263 c->imgs[i] = lv_demo_high_res_image_preload(path_buf, image_details[i].cf, LV_SCALE_NONE); in lv_demo_high_res_base_obj_create()
268 lv_style_init(&c->styles[i][j]); in lv_demo_high_res_base_obj_create()
273 lv_style_init(&c->fonts[i]); in lv_demo_high_res_base_obj_create()
275 c->sz->init_fonts_cb(c->fonts); in lv_demo_high_res_base_obj_create()
277 lv_subject_init_pointer(&c->th, (void *)&lv_demo_high_res_theme_dark); in lv_demo_high_res_base_obj_create()
[all …]
Dlv_demo_high_res_app_about.c2 * @file lv_demo_high_res_app_about.c
30 static lv_obj_t * create_button(lv_obj_t * parent, const void * img_src, lv_demo_high_res_ctx_t * c
52 lv_demo_high_res_ctx_t * c = lv_obj_get_user_data(base_obj); in lv_demo_high_res_app_about() local
61 lv_subject_add_observer_obj(&c->th, lv_demo_high_res_theme_observer_image_src_cb, bg_img, in lv_demo_high_res_app_about()
62 (void *)&c->imgs[IMG_LIGHT_BG_ABOUT]); in lv_demo_high_res_app_about()
67 lv_obj_set_style_pad_top(bg_cont, c->sz->gap[7], 0); in lv_demo_high_res_app_about()
68 lv_obj_set_style_pad_bottom(bg_cont, c->sz->gap[10], 0); in lv_demo_high_res_app_about()
69 lv_obj_set_style_pad_hor(bg_cont, c->sz->gap[10], 0); in lv_demo_high_res_app_about()
73 lv_obj_t * top_margin = lv_demo_high_res_top_margin_create(bg_cont, 0, true, c); in lv_demo_high_res_app_about()
77 …lv_obj_t * app_info = lv_demo_high_res_simple_container_create(bg_cont, true, c->sz->gap[4], LV_FL… in lv_demo_high_res_app_about()
[all …]
/lvgl-latest/src/libs/thorvg/rapidjson/
Dencodings.h3 // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
81 static void Put(OutputByteStream& os, Ch c);
147 #define RAPIDJSON_COPY() c = is.Take(); *codepoint = (*codepoint << 6) | (static_cast<unsigned char… in Decode()
148 #define RAPIDJSON_TRANS(mask) result &= ((GetRange(static_cast<unsigned char>(c)) & mask) != 0) in Decode()
150 typename InputStream::Ch c = is.Take(); in Decode() local
151 if (!(c & 0x80)) { in Decode()
152 *codepoint = static_cast<unsigned char>(c); in Decode()
156 unsigned char type = GetRange(static_cast<unsigned char>(c)); in Decode()
160 *codepoint = (0xFFu >> type) & static_cast<unsigned char>(c); in Decode()
180 #define RAPIDJSON_COPY() os.Put(c = is.Take()) in Validate()
[all …]
Ddocument.h3 // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
35 RAPIDJSON_DIAG_OFF(c++98-compat)
116 …But a compiler (IBM XL C/C++ for AIX) have reported to have problem with that so it moved as a nam…
126 //! Move constructor in C++11
133 //! Move assignment in C++11
173 of a GenericValue, see ISO/IEC 14882:2003(E) C++ standard, 24.1 [lib.iterator.requirements].
176 conversions from iterator values to \c NULL,
179 \note Define \c RAPIDJSON_NOMEMBERITERATORCLASS to fall back to a
181 the C++ <iterator> header.
215 //! Signed integer type (e.g. \c ptrdiff_t)
[all …]
Dpointer.h3 // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
212 … Helper function to enable support for common swap implementation pattern based on \c std::swap:
673 \tparam T Either \ref Type, \c int, \c unsigned, \c int64_t, \c uint64_t, \c bool
703 \tparam T Either \ref Type, \c int, \c unsigned, \c int64_t, \c uint64_t, \c bool
749 \tparam T Either \ref Type, \c int, \c unsigned, \c int64_t, \c uint64_t, \c bool
785 \tparam T Either \ref Type, \c int, \c unsigned, \c int64_t, \c uint64_t, \c bool
825 … \note Erasing with an empty pointer \c Pointer(""), i.e. the root, always fail and return false.
904 \param c The character (code unit) to be tested.
906 bool NeedPercentEncode(Ch c) const { in NeedPercentEncode() argument
907 …return !((c >= '0' && c <= '9') || (c >= 'A' && c <='Z') || (c >= 'a' && c <= 'z') || c == '-' || in NeedPercentEncode()
[all …]
Dreader.h3 // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
73 \param offset position of the error in JSON input (\c size_t)
111 \param offset position of the error in JSON input (\c size_t)
137 User can define this as any \c ParseFlag combinations.
270 typename InputStream::Ch c; in SkipWhitespace() local
271 while ((c = s.Peek()) == ' ' || c == '\n' || c == '\r' || c == '\t') in SkipWhitespace()
350 #define C16(c) { c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c } in SkipWhitespace_SIMD() argument
386 #define C16(c) { c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c } in SkipWhitespace_SIMD() argument
909 Ch c = is.Peek(); in ParseHex4() local
911 codepoint += static_cast<unsigned>(c); in ParseHex4()
[all …]
/lvgl-latest/src/libs/expat/
Dxmltok.c9 Copyright (c) 1997-2000 Thai Open Source Software Center Ltd
10 Copyright (c) 2000 Clark Cooper <coopercc@users.sourceforge.net>
11 Copyright (c) 2001-2003 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
12 Copyright (c) 2002 Greg Stein <gstein@users.sourceforge.net>
13 Copyright (c) 2002-2016 Karl Waclawek <karl@waclawek.net>
14 Copyright (c) 2005-2009 Steven Solie <steven@solie.ca>
15 Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
16 Copyright (c) 2016 Pascal Cuoq <cuoq@trust-in-soft.com>
17 Copyright (c) 2016 Don Lewis <truckman@apache.org>
18 Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
[all …]
/lvgl-latest/src/misc/
Dlv_color.c2 * @file lv_color.c
23 static lv_color_t lv_color_filter_shade_cb(const lv_color_filter_dsc_t * dsc, lv_color_t c, lv_opa_…
126 lv_color_t lv_color_lighten(lv_color_t c, lv_opa_t lvl) in lv_color_lighten() argument
129 return lv_color_mix(lv_color_white(), c, lvl); in lv_color_lighten()
132 lv_color_t lv_color_darken(lv_color_t c, lv_opa_t lvl) in lv_color_darken() argument
134 return lv_color_mix(lv_color_black(), c, lvl); in lv_color_darken()
246 lv_color_hsv_t lv_color_to_hsv(lv_color_t c) in lv_color_to_hsv() argument
248 return lv_color_rgb_to_hsv(c.red, c.green, c.blue); in lv_color_to_hsv()
256 uint32_t lv_color_to_int(lv_color_t c) in lv_color_to_int() argument
258 uint8_t * tmp = (uint8_t *) &c; in lv_color_to_int()
[all …]
/lvgl-latest/tests/
DCMakeLists.txt16 project(lvgl_tests LANGUAGES C CXX)
36 if (${lang} STREQUAL C)
125 filter_compiler_options (C TEST_LIBS ${SANITIZE_AND_COVERAGE_OPTIONS})
130 filter_compiler_options (C TEST_LIBS ${SANITIZE_AND_COVERAGE_OPTIONS})
141 filter_compiler_options (C TEST_LIBS ${SANITIZE_AND_COVERAGE_OPTIONS})
230 filter_compiler_options(C LVGL_C_COMPILE_OPTIONS ${COMPILE_OPTIONS})
234 …filter_compiler_options(C LVGL_TESTFILE_COMPILE_OPTIONS ${LVGL_C_COMPILE_OPTIONS} -Wno-missing-pro…
240 -Wno-c++11-extensions
248 filter_compiler_options(C LVGL_TESTFILE_COMPILE_OPTIONS ${LVGL_C_COMPILE_OPTIONS})
259 target_compile_options(lvgl PUBLIC $<$<COMPILE_LANGUAGE:C>: ${LVGL_C_COMPILE_OPTIONS}>)
[all …]
/lvgl-latest/docs/details/integration/chip/
Dnxp.rst39 - Select NXP PXP engine in "lv_conf.h": Set :c:macro:`LV_USE_PXP` to `1`.
40 - In order to use PXP as a draw unit, select in "lv_conf.h": Set :c:macro:`LV_USE_DRAW_PXP` to `1`.
41 - In order to use PXP to rotate the screen, select in "lv_conf.h": Set :c:macro:`LV_USE_ROTATE_PXP`…
42 - Enable PXP asserts in "lv_conf.h": Set :c:macro: `LV_USE_PXP_ASSERT` to `1`.
44 c:macro:`LV_ASSERT_HANDLER` is set to `while(1);` (Halt by default). Else,
46 - If :c:macro:`SDK_OS_FREE_RTOS` symbol is defined, FreeRTOS implementation
55 .. code-block:: c
62 with the additional callbacks, if :c:macro:`LV_USE_DRAW_PXP` is set to `1`:
64 .. code-block:: c
75 .. code-block:: c
[all …]
/lvgl-latest/src/layouts/grid/
Dlv_grid.c2 * @file lv_grid.c
59 static void calc_cols(lv_obj_t * cont, lv_grid_calc_t * c);
60 static void calc_rows(lv_obj_t * cont, lv_grid_calc_t * c);
61 static void item_repos(lv_obj_t * item, lv_grid_calc_t * c, item_repos_hint_t * hint);
196 lv_grid_calc_t c; in grid_update() local
197 calc(cont, &c); in grid_update()
212 item_repos(item, &c, &hint); in grid_update()
214 calc_free(&c); in grid_update()
275 static void calc_cols(lv_obj_t * cont, lv_grid_calc_t * c) in calc_cols() argument
301 c->col_num = count_tracks(col_templ); in calc_cols()
[all …]
/lvgl-latest/docs/details/main-components/
Dcolor.rst26 .. code-block:: c
29 lv_color_t c = lv_color_make(red, green, blue);
33 lv_color_t c = LV_COLOR_MAKE(red, green, blue);
36 lv_color_t c = lv_color_hex(0x123456);
39 lv_color_t c = lv_color_hex3(0x123);
46 .. code-block:: c
49 lv_color_t c = lv_color_hsv_to_rgb(h, s, v);
69 - :c:macro:`LV_PALETTE_RED`
70 - :c:macro:`LV_PALETTE_PINK`
71 - :c:macro:`LV_PALETTE_PURPLE`
[all …]
Dfont.rst20 .. code-block:: c
51 and be sure that :c:macro:`LV_TXT_ENC` is set to :c:macro:`LV_TXT_ENC_UTF8` in
56 .. code-block:: c
102 - :c:macro:`LV_FONT_MONTSERRAT_12`: 12 px font
103 - :c:macro:`LV_FONT_MONTSERRAT_14`: 14 px font
104 - :c:macro:`LV_FONT_MONTSERRAT_16`: 16 px font
105 - :c:macro:`LV_FONT_MONTSERRAT_18`: 18 px font
106 - :c:macro:`LV_FONT_MONTSERRAT_20`: 20 px font
107 - :c:macro:`LV_FONT_MONTSERRAT_22`: 22 px font
108 - :c:macro:`LV_FONT_MONTSERRAT_24`: 24 px font
[all …]
Dfs.rst16 :c:macro:`LV_FS_DEFAULT_DRIVER_LETTER` config parameter.
23 LVGL contains prepared drivers for the API of POSIX, standard C,
77 - "Z:C:/Users/me/wip/proposal.txt"
78 - "Z:/Users/me/wip/proposal.txt" (if the default drive is known to be C:)
79 - "Z:C:/Users/Public/Documents/meeting_notes.txt"
82 Reminder: Note carefully that the prefixed "Z:" has nothing to do with the "C:" and
102 .. code-block:: c
137 .. code-block:: c
155 .. code-block:: c
164 `lv_fs_template.c <https://github.com/lvgl/lvgl/blob/master/examples/porting/lv_port_fs_template.c>…
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_mask.c2 * @file lv_draw_sw_mask.c
61 static void circ_init(lv_point_t * c, int32_t * tmp, int32_t radius);
62 static bool circ_cont(lv_point_t * c);
63 static void circ_next(lv_point_t * c, int32_t * tmp);
64 static void circ_calc_aa4(lv_draw_sw_mask_radius_circle_dsc_t * c, int32_t radius);
65 static lv_opa_t * get_next_line(lv_draw_sw_mask_radius_circle_dsc_t * c, int32_t y, int32_t * len,
1032 * @param c pointer to a point. The coordinates will be calculated here
1036 static void circ_init(lv_point_t * c, int32_t * tmp, int32_t radius) in circ_init() argument
1038 c->x = radius; in circ_init()
1039 c->y = 0; in circ_init()
[all …]
/lvgl-latest/scripts/built_in_font/
Dgenerate_all.py6 os.system("./built_in_font_gen.py --size 8 -o lv_font_montserrat_8.c --bpp 4")
9 os.system("./built_in_font_gen.py --size 10 -o lv_font_montserrat_10.c --bpp 4")
12 os.system("./built_in_font_gen.py --size 12 -o lv_font_montserrat_12.c --bpp 4")
15 os.system("./built_in_font_gen.py --size 14 -o lv_font_montserrat_14.c --bpp 4")
18 os.system("./built_in_font_gen.py --size 16 -o lv_font_montserrat_16.c --bpp 4")
21 os.system("./built_in_font_gen.py --size 18 -o lv_font_montserrat_18.c --bpp 4")
24 os.system("./built_in_font_gen.py --size 20 -o lv_font_montserrat_20.c --bpp 4")
27 os.system("./built_in_font_gen.py --size 22 -o lv_font_montserrat_22.c --bpp 4")
30 os.system("./built_in_font_gen.py --size 24 -o lv_font_montserrat_24.c --bpp 4")
33 os.system("./built_in_font_gen.py --size 26 -o lv_font_montserrat_26.c --bpp 4")
[all …]
/lvgl-latest/src/libs/lodepng/
Dlodepng.h4 Copyright (c) 2005-2023 Lode Vandevenne
30 extern "C" {
90 /*Compile the default allocators (C's free, malloc and realloc). If you disable this,
103 in a comment in the lodepng.c(pp) file in the 'else' case of the searchable LODEPNG_COMPILE_CRC sec…
110 /*compile the C++ version (you can disable the C++ wrapper here even when compiling for C++)*/
113 … /*pass -DLODEPNG_NO_COMPILE_CPP to the compiler to disable C++ (not needed if a C-only compiler),
1101 /* The LodePNG C++ wrapper uses std::vectors instead of manually allocated memory buffers. */
1195 [ ] let the C++ wrapper catch exceptions coming from the standard library and return LodePNG error …
1198 [X] provide alternatives for C library functions not present on some platforms (memcpy, ...)
1204 } /* extern "C" */
[all …]

12345678910>>...55