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
public/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 May be NULL. |
Returns: uint32_t — the ID of the new layout
public/layouts/lv_layout.h:69function
lv_layout_register
Register a new layout
> Deprecated: use lv_layout_create instead.
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 May be NULL. |
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
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
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
Last updated on