lv_win.h

Functions

lv_obj_t *lv_win_create(lv_obj_t *parent)

Create a window widget

Parameters:

parent – pointer to a parent widget

Returns:

the created window

lv_obj_t *lv_win_add_title(lv_obj_t *win, const char *txt)

Add a title to the window

Parameters:
  • obj – pointer to a window widget

  • txt – the text of the title

Returns:

the widget where the content of the title can be created

lv_obj_t *lv_win_add_button(lv_obj_t *win, const void *icon, int32_t btn_w)

Add a button to the window

Parameters:
  • obj – pointer to a window widget

  • icon – an icon to be displayed on the button

  • btn_w – width of the button

Returns:

the widget where the content of the button can be created

lv_obj_t *lv_win_get_header(lv_obj_t *win)

Get the header of the window

Parameters:

win – pointer to a window widget

Returns:

the header of the window

lv_obj_t *lv_win_get_content(lv_obj_t *win)

Get the content of the window

Parameters:

win – pointer to a window widget

Returns:

the content of the window

Variables

const lv_obj_class_t lv_win_class