lv_layout.h

API reference for lv_layout.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_layout_private.h

Functions

lv_layout_create

Create a new layout

 
uint32_t lv_layout_create(lv_layout_callbacks_t callbacks, void *user_data)
Parameters
NameTypeDescription
callbackslv_layout_callbacks_tthe layout callbacks
user_datavoid *custom data that will be passed when a callback is invoked

Returns: uint32_t — the ID of the new layout

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)
Parameters
NameTypeDescription
cblv_layout_update_cb_tthe layout update callback
user_datavoid *custom data that will be passed to cb

Returns: uint32_t — the ID of the new layout

Enums

lv_layout_t

NameValue
LV_LAYOUT_NONE0
LV_LAYOUT_FLEX
LV_LAYOUT_GRID
LV_LAYOUT_LAST

Structs

struct

lv_layout_callbacks_t

MemberTypeDescription
layout_update_cblv_layout_update_cb_t
get_min_size_cblv_layout_get_min_size_cb_t
Used by 1 function
  • lv_layout_create — param callbacks

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 — param cb

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

On this page