lv_layout.h
API reference for lv_layout.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_layout_private.h
Functions
layouts/lv_layout.h:57function
lv_layout_create
Create a new layout
uint32_t lv_layout_create(lv_layout_callbacks_t callbacks, void *user_data)| Name | Type | Description |
|---|---|---|
callbacks | lv_layout_callbacks_t | the layout callbacks |
user_data | void * | custom data that will be passed when a callback is invoked |
Returns: uint32_t — the ID of the new layout
layouts/lv_layout.h:67function
lv_layout_register
DEPRECATED: lv_layout_register is deprecated. lv_layout_create should be used instead.
Register a new layout
uint32_t lv_layout_register(lv_layout_update_cb_t cb, void *user_data)| Name | Type | Description |
|---|---|---|
cb | lv_layout_update_cb_t | the layout update callback |
user_data | void * | custom data that will be passed to cb |
Returns: uint32_t — the ID of the new layout
Enums
lv_layout_t
| Name | Value |
|---|---|
LV_LAYOUT_NONE | 0 |
LV_LAYOUT_FLEX | |
LV_LAYOUT_GRID | |
LV_LAYOUT_LAST |
Structs
struct
lv_layout_callbacks_t
| Member | Type | Description |
|---|---|---|
layout_update_cb | lv_layout_update_cb_t | |
get_min_size_cb | lv_layout_get_min_size_cb_t |
Used by 1 function
lv_layout_create— paramcallbacks
Typedefs
layouts/lv_layout.h:27typedef
lv_layout_update_cb_t
typedef void(* lv_layout_update_cb_t) (lv_obj_t *, void *user_data)Used by 1 function
lv_layout_register— paramcb
layouts/lv_layout.h:28typedef
lv_layout_get_min_size_cb_t
typedef bool(* lv_layout_get_min_size_cb_t) (lv_obj_t *, int32_t *req_size, bool width, void *user_data)Dependencies
How is this guide?
Last updated on