Lines Matching refs:sw
18 lv_obj_t * sw; in lv_example_switch_1() local
20 sw = lv_switch_create(lv_scr_act()); in lv_example_switch_1()
21 lv_obj_add_event_cb(sw, event_handler, LV_EVENT_ALL, NULL); in lv_example_switch_1()
23 sw = lv_switch_create(lv_scr_act()); in lv_example_switch_1()
24 lv_obj_add_state(sw, LV_STATE_CHECKED); in lv_example_switch_1()
25 lv_obj_add_event_cb(sw, event_handler, LV_EVENT_ALL, NULL); in lv_example_switch_1()
27 sw = lv_switch_create(lv_scr_act()); in lv_example_switch_1()
28 lv_obj_add_state(sw, LV_STATE_DISABLED); in lv_example_switch_1()
29 lv_obj_add_event_cb(sw, event_handler, LV_EVENT_ALL, NULL); in lv_example_switch_1()
31 sw = lv_switch_create(lv_scr_act()); in lv_example_switch_1()
32 lv_obj_add_state(sw, LV_STATE_CHECKED | LV_STATE_DISABLED); in lv_example_switch_1()
33 lv_obj_add_event_cb(sw, event_handler, LV_EVENT_ALL, NULL); in lv_example_switch_1()