lv_win.h

Functions

lv_obj_t *lv_win_create(lv_obj_t *parent)

Create a window widget

参数:

parent -- pointer to a parent widget

返回:

the created window

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

Add a title to the window

参数:
  • obj -- pointer to a window widget

  • txt -- the text of the title

返回:

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

参数:
  • obj -- pointer to a window widget

  • icon -- an icon to be displayed on the button

  • btn_w -- width of the button

返回:

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

参数:

win -- pointer to a window widget

返回:

the header of the window

lv_obj_t *lv_win_get_content(lv_obj_t *win)

Get the content of the window

参数:

win -- pointer to a window widget

返回:

the content of the window

Variables

const lv_obj_class_t lv_win_class