lv_switch.h

Defines

_LV_SWITCH_KNOB_EXT_AREA_CORRECTION

Switch knob extra area correction factor

Functions

lv_obj_t *lv_switch_create(lv_obj_t *parent)

Create a switch object

参数:

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

返回:

pointer to the created switch

Variables

const lv_obj_class_t lv_switch_class
struct lv_switch_t

Public Members

lv_obj_t obj
int32_t anim_state