Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 69) sorted by relevance

123

/lvgl-latest/src/libs/thorvg/
DtvgAccessor.cpp33 static bool accessChildren(Iterator* it, function<bool(const Paint* paint, void* data)> func, void*… in accessChildren() argument
37 if (!func(child, data)) return false; in accessChildren()
41 if (!accessChildren(it2, func, data)) { in accessChildren()
56 …cture> Accessor::set(unique_ptr<Picture> picture, function<bool(const Paint* paint)> func) noexcept in set() argument
60 auto func = reinterpret_cast<function<bool(const Paint* paint)>*>(data); in set() local
61 if (!(*func)(paint)) return false; in set()
65 set(picture.get(), backward, reinterpret_cast<void*>(&func)); in set()
70 Result Accessor::set(const Picture* picture, function<bool(const Paint* paint, void* data)> func, v… in set() argument
72 if (!picture || !func) return Result::InvalidArguments; in set()
77 if (!func(picture, data)) return Result::Success; in set()
[all …]
DtvgXmlParser.h53 bool simpleXmlParseAttributes(const char* buf, unsigned bufLength, simpleXMLAttributeCb func, const…
54 bool simpleXmlParse(const char* buf, unsigned bufLength, bool strip, simpleXMLCb func, const void* …
55 bool simpleXmlParseW3CAttribute(const char* buf, unsigned bufLength, simpleXMLAttributeCb func, con…
DtvgXmlParser.cpp301 bool simpleXmlParseAttributes(const char* buf, unsigned bufLength, simpleXMLAttributeCb func, const… in simpleXmlParseAttributes() argument
306 if (!buf || !func || !tmpBuf) goto error; in simpleXmlParseAttributes()
361 if (!func((void*)data, tmpBuf, tval)) { in simpleXmlParseAttributes()
378 bool simpleXmlParse(const char* buf, unsigned bufLength, bool strip, simpleXMLCb func, const void* … in simpleXmlParse() argument
382 if (!buf || !func) return false; in simpleXmlParse()
436 if (!func((void*)data, type, start, (unsigned int)(end - start))) return false; in simpleXmlParse()
449 … if (!func((void*)data, SimpleXMLType::Ignored, itr, (unsigned int)(p - itr))) return false; in simpleXmlParse()
460 …if (itr != end && !func((void*)data, SimpleXMLType::Data, itr, (unsigned int)(end - itr))) return … in simpleXmlParse()
462 …if (strip && (end < p) && !func((void*)data, SimpleXMLType::Ignored, end, (unsigned int)(p - end))… in simpleXmlParse()
471 bool simpleXmlParseW3CAttribute(const char* buf, unsigned bufLength, simpleXMLAttributeCb func, con… in simpleXmlParseW3CAttribute() argument
[all …]
/lvgl-latest/docs/details/libs/
Dbarcode.rst18 Use :cpp:func:`lv_barcode_create` to create a barcode object, and use
19 :cpp:func:`lv_barcode_update` to generate a barcode.
21 Call :cpp:func:`lv_barcode_set_scale` to adjust scaling,
22 call :cpp:func:`lv_barcode_set_dark_color` and :cpp:func:`lv_barcode_set_light_color`
23 adjust color, call :cpp:func:`lv_barcode_set_direction` will set
24 direction to display, and call :cpp:func:`lv_barcode_update` again to regenerate
Dqrcode.rst18 Use :cpp:func:`lv_qrcode_create` to create a qrcode object, and use
19 :cpp:func:`lv_qrcode_update` to generate a QR code.
22 :cpp:func:`lv_qrcode_set_size` and :cpp:func:`lv_qrcode_set_dark_color` or
23 :cpp:func:`lv_qrcode_set_light_color`, and
24 call :cpp:func:`lv_qrcode_update` again to regenerate the QR code.
/lvgl-latest/docs/details/other-components/
Dsnapshot.rst15 Simply call API :cpp:func:`lv_snapshot_take` to generate the image descriptor
16 which can be set as image Widget src using :cpp:func:`lv_image_set_src`.
28 The memory :cpp:func:`lv_snapshot_take` uses are dynamically allocated using
29 :cpp:func:`lv_draw_buf_create`. Use API :cpp:func:`lv_draw_buf_destroy` to free the memory it
33 The snapshot image which is the draw buffer returned by :cpp:func:`lv_snapshot_take`
35 to invalidate cache by :cpp:func:`lv_image_cache_drop` before destroy the draw buffer.
63 :cpp:func:`lv_snapshot_reshape_draw_buf` to prepare the buffer firstly and if it
Dfont_manager.rst31 Use :cpp:func:`lv_font_manager_create` to create a font manager, where the
32 :cpp:func:`recycle_cache_size` parameter is used to set the number of font recycling
35 Use :cpp:func:`lv_font_manager_add_path_static` to add a mapping between the font
38 (assigned from a local variable), use :cpp:func:`lv_font_manager_add_path` to
41 Use :cpp:func:`lv_font_manager_remove_path` to remove the font path mapping.
60 Use :cpp:func:`lv_font_manager_create_font` to create a font. The parameters are
61 basically the same as :cpp:func:`lv_freetype_font_create`.
87 Use :cpp:func:`lv_font_manager_delete_font` to delete the font when it is no longer needed.
104 Use :cpp:func:`lv_font_manager_delete` to destroy the entire font manager. It should
106 deleted all fonts using :cpp:func:`lv_font_manager_delete_font`. The font manager
Dobj_id.rst63 :cpp:func:`lv_obj_assign_id()`
139 :cpp:func:`lv_obj_stringify_id` converts the passed ``widget`` to a string
143 :cpp:func:`lv_obj_id_compare` compares 2 ``void * id`` values and returns ``0`` when
147 :cpp:func:`lv_obj_assign_id` is called when a Widget is created. It is responsible
155 :cpp:func:`lv_obj_free_id` is called when a Widget is deleted. It needs to perform
156 the clean-up for any resources allocated by :cpp:func:`lv_obj_assign_id`.
178 :cpp:func:`lv_obj_stringify_id` for that Widget.
Dmonkey.rst43 Use :cpp:func:`lv_monkey_get_indev` to get the input device, and use
44 :cpp:func:`lv_indev_set_button_points` to map the key ID to the coordinates.
/lvgl-latest/src/misc/
Dlv_profiler_builtin.c47 const char * func; /**< A pointer to the function associated with the profiler item */ member
177 void lv_profiler_builtin_write(const char * func, char tag) in lv_profiler_builtin_write() argument
180 LV_ASSERT_NULL(func); in lv_profiler_builtin_write()
194 item->func = func; in lv_profiler_builtin_write()
255 item->func); in flush_no_lock()
262 item->func); in flush_no_lock()
Dlv_log.c72 void lv_log_add(lv_log_level_t level, const char * file, int line, const char * func, const char * … in lv_log_add() argument
101 lvl_prefix[level], LOG_TIMESTAMP_EXPR func); in lv_log_add()
111 lvl_prefix[level], LOG_TIMESTAMP_EXPR func, msg LOG_FILE_LINE_EXPR); in lv_log_add()
Dlv_profiler_builtin.h73 void lv_profiler_builtin_write(const char * func, char tag);
/lvgl-latest/tests/unity/
Drun_test.erb2 static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num)
20 func();
26 func();
/lvgl-latest/docs/intro/add-lvgl-to-your-project/
Dtimer_handler.rst7 To drive the timers of LVGL you need to call :cpp:func:`lv_timer_handler`
27 If you want to use :cpp:func:`lv_timer_handler` in a super-loop, a helper
28 function :cpp:func:`lv_timer_handler_run_in_period` is provided to simplify
Dthreading.rst68 to :cpp:func:`lv_timer_handler`.
77 :cpp:func:`lv_timer_handler`.
96 - :cpp:func:`lv_tick_inc` (if writing to a ``uint32_t`` is atomic on your
98 - :cpp:func:`lv_display_flush_ready` (:ref:`flush_callback` for more information)
150 that thread is also the ONLY caller of :cpp:func:`lv_timer_handler`. (See
202 including calls to :cpp:func:`lv_timer_handler`.
206 other than ``LV_OS_NONE`` in ``lv_conf.h``) you can use :cpp:func:`lv_lock()` and
207 :cpp:func:`lv_unlock()` to perform #1 and #2.
209 When this is the case, :cpp:func:`lv_timer_handler` calls :cpp:func:`lv_lock()`
210 and :cpp:func:`lv_unlock()` internally, so you do not have to bracket your
[all …]
Dconnecting_lvgl.rst20 1. Initialize LVGL once early during system execution by calling :cpp:func:`lv_init`.
31 6. Drive LVGL time-related tasks by calling :cpp:func:`lv_timer_handler` every few
35 7. Optionally set a theme with :cpp:func:`lv_display_set_theme`.
73 milliseconds since the last call. If :cpp:func:`lv_tick_inc` is called from an
77 .. note:: :cpp:func:`lv_tick_inc` is only one of two LVGL functions that may be
113 because the execution time of :c:func:`lv_timer_handler` varies from call to call and
/lvgl-latest/docs/details/widgets/
Dscale.rst241 :LV_STYLE_LINE_WIDTH: :cpp:func:`lv_style_set_line_width`
242 :LV_STYLE_LINE_COLOR: :cpp:func:`lv_style_set_line_color`
243 :LV_STYLE_LINE_OPA: :cpp:func:`lv_style_set_line_opa`
247 :LV_STYLE_ARC_WIDTH: :cpp:func:`lv_style_set_arc_width`
248 :LV_STYLE_ARC_COLOR: :cpp:func:`lv_style_set_arc_color`
249 :LV_STYLE_ARC_OPA: :cpp:func:`lv_style_set_arc_opa`
250 :LV_STYLE_ARC_ROUNDED: :cpp:func:`lv_style_set_arc_rounded`
251 :LV_STYLE_ARC_IMAGE_SRC: :cpp:func:`lv_style_set_arc_image_src`
255 :LV_STYLE_LINE_WIDTH: :cpp:func:`lv_style_set_line_width`
256 :LV_STYLE_LINE_COLOR: :cpp:func:`lv_style_set_line_color`
[all …]
Dlabel.rst41 :cpp:func:`lv_label_set_text` in scope after that function returns.
52 ``const`` strings are safe to use with :cpp:func:`lv_label_set_text_static` since
57 Do not use ``const`` strings with :cpp:func:`lv_label_set_text_static` when the
96 explicitly set (using e.g.\ :cpp:func:`lv_obj_set_width` or a layout), the lines
113 order to add/remove the dots. When :cpp:func:`lv_label_set_text` or
114 :cpp:func:`lv_label_set_array_text` are used, a separate buffer is allocated and
116 :cpp:func:`lv_label_set_text_static`. The buffer you pass to
117 :cpp:func:`lv_label_set_text_static` must be writable if you plan to use
151 :cpp:func:`lv_obj_set_style_text_align` or :cpp:func:`lv_style_set_text_align`,
175 :cpp:func:`lv_style_set_anim`.
Dline.rst36 be set explicitly using :cpp:func:`lv_obj_set_width` and :cpp:func:`lv_obj_set_height`,
/lvgl-latest/docs/details/integration/chip/
Dstm32.rst48 peripherals, and LCD panel, call :cpp:func:`lv_init` to initialise LVGL.
50 :cpp:func:`lv_display_create`, and register the frame buffers using
51 :cpp:func:`lv_display_set_buffers`.
76 - Add a call to :cpp:func:`lv_timer_handler` inside your ``while(1)`` loop:
88 - Add a call to :cpp:func:`lv_tick_inc` inside the :cpp:func:`SysTick_Handler` function. Open the *…
89 …file (the name will depend on your specific MCU), and update the :cpp:func:`SysTick_Handler` funct…
166 etc) have been initialised, initialise LVGL using :cpp:func:`lv_init`,
167 create a new display driver using :cpp:func:`lv_display_create`, and
168 register the frame buffers using :cpp:func:`lv_display_set_buffers`.
194 - Create two threads to call :cpp:func:`lv_timer_handler`, and
[all …]
/lvgl-latest/docs/details/main-components/
Dtimer.rst9 :cpp:func:`lv_timer_handler`, which needs to be called every few milliseconds.
40 :cpp:func:`lv_timer_create_basic` can also be used to create a new Timer without
73 :cpp:func:`lv_timer_handler`.
101 reuse that timer repeatedly and want to avoid the CPU and :cpp:func:`lv_malloc`
123 You can get the idle percentage time of :cpp:func:`lv_timer_handler` with
124 :cpp:func:`lv_timer_get_idle`. Note that it does not measure the idle time of
125 the overall system, only of :cpp:func:`lv_timer_handler`. This can be misleading if
134 a function is :cpp:func:`lv_os_get_idle_percent` in ``lv_freertos.c``. While the
154 When the Timer system has been disabled (causing :cpp:func:`lv_timer_handler` to
176 the next invocation of :cpp:func:`lv_timer_handler`. As a side effect, this also
[all …]
Danimation.rst30 void func(void *var , int32_t value);
149 - :cpp:func:`lv_anim_path_linear`: linear Animation (default)
150 - :cpp:func:`lv_anim_path_step`: change in one step at the end
151 - :cpp:func:`lv_anim_path_ease_in`: slow at the beginning
152 - :cpp:func:`lv_anim_path_ease_out`: slow at the end
153 - :cpp:func:`lv_anim_path_ease_in_out`: slow at the beginning and end
154 - :cpp:func:`lv_anim_path_overshoot`: overshoot the end value
155 - :cpp:func:`lv_anim_path_bounce`: bounce back a little from the end value (like
160 :cpp:expr:`lv_anim_init(&my_anim)` sets the Path to :cpp:func:`lv_anim_path_linear`
183 :cpp:func:`lv_anim_speed_to_time` you can use to compute the Animation's duration, so
[all …]
Ddisplay.rst92 - :cpp:func:`lv_screen_active`,
93 - :cpp:func:`lv_layer_top`,
94 - :cpp:func:`lv_layer_sys`, and
95 - :cpp:func:`lv_layer_bottom`.
106 :cpp:func:`lv_screen_load` or :cpp:func:`lv_screen_load_anim`.
119 placed there with :cpp:func:`lv_indev_set_cursor`).
181 to :cpp:func:`lv_display_set_resolution` or :cpp:func:`lv_display_set_rotation`.
218 To set another :ref:`display` as the Default Display, call :cpp:func:`lv_display_set_default`.
280 then waits until :cpp:func:`lv_display_flush_ready` is called
370 By using :cpp:func:`lv_display_flush_ready` LVGL will spin in a loop
[all …]
Dcolor.rst125 :cpp:func:`lv_color_white` and :cpp:func:`lv_color_black` return ``0xFFFFFF`` and
146 You can also use the ``LV_OPA_*`` defines in :cpp:func:`lv_color_mix` as a
/lvgl-latest/docs/details/integration/driver/display/
Dgen_mipi.rst65 …nly difference between the :cpp:func:`my_lcd_send_cmd()` and :cpp:func:`my_lcd_send_color()` funct…
66 complete the transaction when it returns (in other words, it should be blocking), while :cpp:func:`…
69 …ng is handled by the driver, it is the user's responsibility to call :cpp:func:`lv_display_flush_r…
80 to the display object as usual by calling :cpp:func:`lv_display_set_buffers()`.
172 The third argument of the :cpp:func:`lv_lcd_generic_mipi_create()` function is a flag array. This c…

123