lv_iter.h
Typedefs
-
typedef lv_result_t (*lv_iter_next_cb)(void *instance, void *context, void *elem)
-
typedef void (*lv_iter_inspect_cb)(void *elem)
Functions
-
lv_iter_t *lv_iter_create(void *instance, uint32_t elem_size, uint32_t context_size, lv_iter_next_cb next_cb)
Create an iterator based on an instance, and then the next element of the iterator can be obtained through lv_iter_next, In order to obtain the next operation in a unified and abstract way.
- 参数:
instance -- The instance to be iterated
elem_size -- The size of the element to be iterated in bytes
context_size -- The size of the context to be passed to the next_cb in bytes
next_cb -- The callback function to get the next element
- 返回:
The iterator object
-
void *lv_iter_get_context(const lv_iter_t *iter)
Get the context of the iterator. You can use it to store some temporary variables associated with current iterator..
- 参数:
iter --
lv_iter_t
object create before- 返回:
the iter context
-
void lv_iter_destroy(lv_iter_t *iter)
Destroy the iterator object, and release the context. Other resources allocated by the user are not released. The user needs to release it by itself.
- 参数:
iter --
lv_iter_t
object create before