lv_checkbox.h

Functions

lv_obj_t *lv_checkbox_create(lv_obj_t *parent)

Create a check box object

参数:

parent -- pointer to an object, it will be the parent of the new button

返回:

pointer to the created check box

void lv_checkbox_set_text(lv_obj_t *obj, const char *txt)

Set the text of a check box. txt will be copied and may be deallocated after this function returns.

参数:
  • obj -- pointer to a check box

  • txt -- the text of the check box. NULL to refresh with the current text.

void lv_checkbox_set_text_static(lv_obj_t *obj, const char *txt)

Set the text of a check box. txt must not be deallocated during the life of this checkbox.

参数:
  • obj -- pointer to a check box

  • txt -- the text of the check box.

const char *lv_checkbox_get_text(const lv_obj_t *obj)

Get the text of a check box

参数:

obj -- pointer to check box object

返回:

pointer to the text of the check box

Variables

const lv_obj_class_t lv_checkbox_class