Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/lvgl-latest/demos/high_res/
Dlv_demo_high_res_top_margin.c32 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()
69 lv_subject_init_int(&c->top_margin_health_subject, 0); in lv_demo_high_res_top_margin_create()
[all …]
Dlv_demo_high_res_app_smart_home.c31 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()
78c->sz == &lv_demo_high_res_sizes_all[SIZE_SM] ? c->sz->gap[9] : c->sz->gap[10], true, c); in lv_demo_high_res_app_smart_home()
[all …]
Dlv_demo_high_res_home.c33 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()
93 lv_obj_add_style(date, &c->styles[STYLE_COLOR_BASE][STYLE_TYPE_TEXT], 0); in lv_demo_high_res_home()
[all …]
Dlv_demo_high_res_app_thermostat.c33 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()
77 lv_obj_set_style_pad_top(bg_cont, c->sz->gap[7], 0); in lv_demo_high_res_app_thermostat()
[all …]
Dlv_demo_high_res_util.c159 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()
278 c->th.user_data = c; in lv_demo_high_res_base_obj_create()
[all …]
Dlv_demo_high_res_app_ev_charging.c51 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()
93 …int32_t app_padding = c->sz == &lv_demo_high_res_sizes_all[SIZE_SM] ? c->sz->gap[9] : c->sz->gap[1… in lv_demo_high_res_app_ev_charging()
[all …]
Dlv_demo_high_res_app_smart_meter.c41 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()
85 &c->imgs[IMG_LIGHT_BG_SMART_METER]); in lv_demo_high_res_app_smart_meter()
[all …]
Dlv_demo_high_res_app_about.c30 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()
78 lv_obj_align_to(app_info, top_margin, LV_ALIGN_OUT_BOTTOM_LEFT, 0, c->sz->gap[7]); in lv_demo_high_res_app_about()
[all …]
/lvgl-latest/src/misc/
Dlv_color.c23 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()
272 lv_color_t lv_color_hex(uint32_t c) in lv_color_hex() argument
[all …]
/lvgl-latest/src/libs/thorvg/rapidjson/
Dencodings.h147 #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()
181 #define RAPIDJSON_TRANS(mask) result &= ((GetRange(static_cast<unsigned char>(c)) & mask) != 0) in Validate()
183 Ch c; in Validate() local
[all …]
Dstringbuffer.h29 RAPIDJSON_DIAG_OFF(c++98-compat)
56 void Put(Ch c) { *stack_.template Push<Ch>() = c; } in Put() argument
57 void PutUnsafe(Ch c) { *stack_.template PushUnsafe<Ch>() = c; } in PutUnsafe() argument
105 inline void PutUnsafe(GenericStringBuffer<Encoding, Allocator>& stream, typename Encoding::Ch c) { in PutUnsafe() argument
106 stream.PutUnsafe(c); in PutUnsafe()
111 inline void PutN(GenericStringBuffer<UTF8<> >& stream, char c, size_t n) { in PutN() argument
112 std::memset(stream.stack_.Push<char>(n), c, n * sizeof(c)); in PutN()
/lvgl-latest/examples/styles/
Dindex.rst6 :language: c
12 :language: c
18 :language: c
24 :language: c
30 :language: c
36 :language: c
42 :language: c
48 :language: c
54 :language: c
60 :language: c
[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 …]
/lvgl-latest/src/libs/expat/
Dxmltok.c296 # define CHAR_MATCHES(enc, p, c) \ argument
297 (AS_NORMAL_ENCODING(enc)->charMatches(enc, p, c))
299 sb_charMatches(const ENCODING *enc, const char *p, int c) { in sb_charMatches() argument
301 return *p == c; in sb_charMatches()
305 # define CHAR_MATCHES(enc, p, c) (*(p) == (c)) argument
511 unsigned char c; in latin1_toUtf8() local
514 c = (unsigned char)**fromP; in latin1_toUtf8()
515 if (c & 0x80) { in latin1_toUtf8()
518 *(*toP)++ = (char)((c >> 6) | UTF8_cval2); in latin1_toUtf8()
519 *(*toP)++ = (char)((c & 0x3f) | 0x80); in latin1_toUtf8()
[all …]
/lvgl-latest/examples/widgets/canvas/
Dindex.rst6 :language: c
12 :language: c
19 :language: c
26 :language: c
33 :language: c
40 :language: c
47 :language: c
53 :language: c
59 :language: c
65 :language: c
/lvgl-latest/src/layouts/grid/
Dlv_grid.c59 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()
302 c->x = lv_malloc(sizeof(int32_t) * c->col_num); in calc_cols()
[all …]
/lvgl-latest/examples/scroll/
Dindex.rst6 :language: c
11 :language: c
16 :language: c
21 :language: c
26 :language: c
31 :language: c
36 :language: c
/lvgl-latest/examples/widgets/scale/
Dindex.rst5 :language: c
11 :language: c
17 :language: c
23 :language: c
29 :language: c
35 :language: c
41 :language: c
47 :language: c
53 :language: c
/lvgl-latest/examples/widgets/chart/
Dindex.rst6 :language: c
13 :language: c
19 :language: c
25 :language: c
31 :language: c
37 :language: c
43 :language: c
49 :language: c
/lvgl-latest/examples/widgets/bar/
Dindex.rst5 :language: c
11 :language: c
17 :language: c
23 :language: c
29 :language: c
35 :language: c
41 :language: c
/lvgl-latest/src/libs/thorvg/
DtvgSvgUtil.cpp33 static uint8_t _hexCharToDec(const char c) in _hexCharToDec() argument
35 if (c >= 'a') return c - 'a' + 10; in _hexCharToDec()
36 else if (c >= 'A') return c - 'A' + 10; in _hexCharToDec()
37 else return c - '0'; in _hexCharToDec()
/lvgl-latest/env_support/cmake/
Desp.cmake3 file(GLOB_RECURSE SOURCES ${LVGL_ROOT_DIR}/src/*.c ${LVGL_ROOT_DIR}/src/*.cpp)
19 file(GLOB_RECURSE EXAMPLE_SOURCES ${LVGL_ROOT_DIR}/examples/*.c)
24 file(GLOB_RECURSE DEMO_WIDGETS_SOURCES ${LVGL_ROOT_DIR}/demos/widgets/*.c)
28 file(GLOB_RECURSE DEMO_KEYPAD_AND_ENCODER_SOURCES ${LVGL_ROOT_DIR}/demos/keypad_encoder/*.c)
32 file(GLOB_RECURSE DEMO_BENCHMARK_SOURCES ${LVGL_ROOT_DIR}/demos/benchmark/*.c)
36 file(GLOB_RECURSE DEMO_STRESS_SOURCES ${LVGL_ROOT_DIR}/demos/stress/*.c)
40 file(GLOB_RECURSE DEMO_TRANSFORM_SOURCES ${LVGL_ROOT_DIR}/demos/transform/*.c)
44 file(GLOB_RECURSE DEMO_MULTILANG_SOURCES ${LVGL_ROOT_DIR}/demos/multilang/*.c)
48 file(GLOB_RECURSE DEMO_FLEX_LAYOUT_SOURCES ${LVGL_ROOT_DIR}/demos/flex_layout/*.c)
52 file(GLOB_RECURSE DEMO_SCROLL_SOURCES ${LVGL_ROOT_DIR}/demos/scroll/*.c)
[all …]
/lvgl-latest/examples/layouts/grid/
Dindex.rst5 :language: c
11 :language: c
17 :language: c
23 :language: c
29 :language: c
35 :language: c
/lvgl-latest/examples/others/observer/
Dindex.rst6 :language: c
12 :language: c
18 :language: c
24 :language: c
30 :language: c
36 :language: c
/lvgl-latest/src/others/xml/
Dlv_xml_utils.c28 static bool is_digit(char c, int base);
225 static bool is_digit(char c, int base) in is_digit() argument
228 return (c >= '0' && c < '0' + base); in is_digit()
231 …return (c >= '0' && c <= '9') || (c >= 'a' && c < 'a' + (base - 10)) || (c >= 'A' && c < 'A' + (ba… in is_digit()

12345678910>>...14