Home
last modified time | relevance | path

Searched +full:- +full:c (Results 1 – 25 of 1019) sorted by relevance

12345678910>>...41

/lvgl-latest/env_support/cmsis-pack/
DLVGL.lvgl.pdsc1 <?xml version="1.0" encoding="utf-8"?>
3 <!--
11 * http://www.apache.org/licenses/LICENSE-2.0 *
20 -->
23 …w.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="https://raw.githubusercontent.com/…
26 …s Library) is a free and open-source graphics library providing everything you need to create an e…
27 <url>https://raw.githubusercontent.com/lvgl/lvgl/master/env_support/cmsis-pack/</url>
30 <!-- optional license file -->
31 <!--
34 -->
[all …]
/lvgl-latest/demos/high_res/
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_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_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_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_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()
183 …("a display size of exactly 800x480, 1280x720, or 1920x1080 is recommended for the high-res demo"); 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()
[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/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/tests/
DCMakeLists.txt4 # Tests do not build for ESP-IDF. #
12 set(VCPKG_TARGET_TRIPLET "x64-windows")
16 project(lvgl_tests LANGUAGES C CXX)
20 set(FLAG_CHECK_WHITELIST --coverage -fsanitize=address -Werror)
33 string(REPLACE "-" "_" option_var_name ${option_var_name})
36 if (${lang} STREQUAL C)
53 set(MEMORYCHECK_COMMAND_OPTIONS --error-exitcode=1)
61 -fsanitize=address
62 -fsanitize=leak
63 -fsanitize=undefined
[all …]
/lvgl-latest/docs/details/integration/chip/
Dnxp.rst7 migration into your product design. LVGL is a free and open-source embedded
12 animations and anti-aliasing.
19 ------------------------------
21 …ware/embedded-software/littlevgl-open-source-graphics-library:LITTLEVGL-OPEN-SOURCE-GRAPHICS-LIBRA…
27 ----------------------------------------
39 - 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,
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_mask.c2 * @file lv_draw_sw_mask.c
26 #define circle_cache_mutex LV_GLOBAL_DEFAULT()->draw_info.circle_cache_mutex
27 #define _circle_cache LV_GLOBAL_DEFAULT()->sw_circle_cache
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,
102 res = dsc->cb(mask_buf, abs_x, abs_y, len, masks[i]); in lv_draw_sw_mask_apply()
114 if(pdsc->type == LV_DRAW_SW_MASK_TYPE_RADIUS) { in lv_draw_sw_mask_free_param()
[all …]
/lvgl-latest/src/layouts/grid/
Dlv_grid.c2 * @file lv_grid.c
20 #define layout_list_def LV_GLOBAL_DEFAULT()->layout_list
25 #define IS_FR(x) (x >= LV_COORD_MAX - 100)
26 #define IS_CONTENT(x) (x == LV_COORD_MAX - 101)
27 #define GET_FR(x) (x - (LV_COORD_MAX - 100))
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()
[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/docs/details/main-components/
Dfont.rst20 .. code-block:: c
28 :Legacy simple: 1, 2, 4 or 8-bpp (aligned or unaligned) and image format, and
34 - the font is stored as an array of bitmaps, one bitmap per glyph;
35 - the value stored for each pixel determines the pixel's opacity, enabling edges
36 to be smoother --- higher bpp values result in smoother edges.
49 LVGL supports **UTF-8** encoded Unicode characters. Your editor needs to
50 be configured to save your code/text as UTF-8 (usually this the default)
51 and be sure that :c:macro:`LV_TXT_ENC` is set to :c:macro:`LV_TXT_ENC_UTF8` in
56 .. code-block:: c
71 The standard Latin-based languages (e.g., English, Spanish, German)
[all …]
Dcolor.rst7 The color module handles all color-related functions like changing color
22 ---
26 .. code-block:: c
28 /* All channels are 0-255 */
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);
42 ---
46 .. code-block:: c
[all …]
Dfs.rst15 If you want to skip the drive-letter prefix in Unix-like paths, you can use the
16 :c:macro:`LV_FS_DEFAULT_DRIVER_LETTER` config parameter.
20 Ready-to-use drivers
23 LVGL contains prepared drivers for the API of POSIX, standard C,
24 Windows, and `FATFS <http://elm-chan.org/fsw/ff/00index_e.html>`__.
36 the appropriate registered file-system driver for a given path.
41 letter must be unique among all registered file-system drivers, and in the range [A-Z]
59 | +-- This part gets passed to the OS-level file-system functions.
61 +-- This part LVGL strips from path string, and uses it to find the appropriate
68 **Examples for Unix-like file systems:**
[all …]
/lvgl-latest/src/libs/lodepng/
Dlodepng.h4 Copyright (c) 2005-2023 Lode Vandevenne
6 This software is provided 'as-is', without any express or implied
30 extern "C" {
43 -DLODEPNG_NO_COMPILE_ZLIB for gcc or clang.
48 …/*pass -DLODEPNG_NO_COMPILE_ZLIB to the compiler to disable this, or comment out LODEPNG_COMPILE_Z…
54 …/*pass -DLODEPNG_NO_COMPILE_PNG to the compiler to disable this, or comment out LODEPNG_COMPILE_PN…
60 …/*pass -DLODEPNG_NO_COMPILE_DECODER to the compiler to disable this, or comment out LODEPNG_COMPIL…
66 …/*pass -DLODEPNG_NO_COMPILE_ENCODER to the compiler to disable this, or comment out LODEPNG_COMPIL…
72 …/*pass -DLODEPNG_NO_COMPILE_DISK to the compiler to disable this, or comment out LODEPNG_COMPILE_D…
78 /*pass -DLODEPNG_NO_COMPILE_ANCILLARY_CHUNKS to the compiler to disable this,
[all …]
/lvgl-latest/docs/details/base-widget/
Dcoord.rst18 - Explicitly set coordinates are stored in styles (position, size, layouts, etc.)
19 - support min-width, max-width, min-height, max-height
20 - have pixel, percentage, and "content" units
21 - x=0; y=0 coordinate means the top-left corner of the parent plus the left/top padding plus border…
22 - width/height means the full size, the "content area" is smaller with padding and border width
23 - a subset of flexbox and grid layouts are supported
37 :c:macro:`LV_COORD_MAX` always means pixels. E.g.
52 :c:macro:`LV_SIZE_CONTENT`: passed as a size value has special
58 :inches: Specify size as 1/160-th portion of an inch as if it were pixels
59 on a 160-DPI display, even though a display may have a different
[all …]
/lvgl-latest/src/libs/thorvg/rapidjson/
Dpointer.h3 // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
25 RAPIDJSON_DIAG_OFF(switch-enum)
45 can access multiple-level depth of DOM tree with single API call.
49 it can be used to resolve a specific value in multiple documents, or sub-tree
56 involves parsing and dynamic memory allocation. A special constructor with user-
102 \param source A null-terminated, string or URI fragment representation of JSON pointer.
103 …User supplied allocator for this pointer. If no allocator is provided, it creates a self-owned one.
113 …User supplied allocator for this pointer. If no allocator is provided, it creates a self-owned one.
125 …User supplied allocator for this pointer. If no allocator is provided, it creates a self-owned one.
132 //! Constructor with user-supplied tokens.
[all …]
Ddocument.h3 // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
34 RAPIDJSON_DIAG_OFF(switch-enum)
35 RAPIDJSON_DIAG_OFF(c++98-compat)
113 //! Name-value pair in a JSON object value.
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
169 …\tparam Encoding Encoding of the value. (Even non-string values need to have the same encoding …
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,
[all …]
/lvgl-latest/docs/details/other-components/
Dobserver.rst16 - **subjects**: each containing a value
17 - **observers**: attached to subjects to be notified on value change
22 .. code-block:: c
27 /*-------
28 * main.c
29 *-------*/
41 /*--------------
42 * some_module.c
43 *--------------*/
60 /*--------------
[all …]
Dobj_id.rst19 Enable Widget ID functionality by setting :c:macro:`LV_USE_OBJ_ID` to ``1`` in ``lv_conf.h``.
23 - each Widget will now have a ``void *`` field called ``id``;
24 - these two API functions become available:
26 - :cpp:expr:`lv_obj_get_id(widget)`,
27 - :cpp:expr:`lv_obj_get_child_by_id(widget, id)`;
29 - several more Widget-ID-related API functions become available if
30 :c:macro:`LV_USE_OBJ_ID_BUILTIN` is non-zero (more on this below);
31 - two additional configuration macros both :c:macro:`LV_OBJ_ID_AUTO_ASSIGN` and
32 :c:macro:`LV_USE_OBJ_ID_BUILTIN` now have meaning.
35 :c:macro:`LV_OBJ_ID_AUTO_ASSIGN`
[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()
152 remainder = (h - (region * 43)) * 6; in lv_color_hsv_to_rgb()
154 p = (v * (255 - s)) >> 8; in lv_color_hsv_to_rgb()
155 q = (v * (255 - ((s * remainder) >> 8))) >> 8; in lv_color_hsv_to_rgb()
156 t = (v * (255 - ((s * (255 - remainder)) >> 8))) >> 8; in lv_color_hsv_to_rgb()
[all …]

12345678910>>...41