lv_layout.h

Typedefs

typedef void (*lv_layout_update_cb_t)(struct _lv_obj_t*, void *user_data)

Enums

enum lv_layout_t

Values:

enumerator LV_LAYOUT_NONE
enumerator LV_LAYOUT_FLEX
enumerator LV_LAYOUT_GRID
enumerator _LV_LAYOUT_LAST

Functions

void _lv_layout_init(void)
uint32_t lv_layout_register(lv_layout_update_cb_t cb, void *user_data)

Register a new layout

Parameters:
  • cb -- the layout update callback

  • user_data -- custom data that will be passed to cb

Returns:

the ID of the new layout

void _lv_layout_apply(struct _lv_obj_t *obj)

Update the layout of a widget

Parameters:

obj -- pointer to a widget

struct lv_layout_dsc_t

Public Members

lv_layout_update_cb_t cb
void *user_data