Lines Matching refs:sw

14 lv_obj_t * sw = NULL;  variable
20 sw = lv_switch_create(scr); in setUp()
31 lv_test_mouse_click_at(sw->coords.x1, sw->coords.y1); in mouse_click_on_switch()
46 lv_state_t state = lv_obj_get_state(sw); in test_switch_should_have_default_state_after_being_created()
72 lv_switch_t * anim_sw = (lv_switch_t *) sw; in test_switch_animation()
82 TEST_ASSERT(lv_obj_has_state(sw, LV_STATE_CHECKED)); in test_switch_animation()
88 TEST_ASSERT_FALSE(lv_obj_has_state(sw, LV_STATE_CHECKED)); in test_switch_animation()
93 int32_t extra_size = lv_obj_get_ext_draw_size(sw); in test_switch_should_not_have_extra_draw_size_at_creation()
108 lv_obj_remove_style_all(sw); in test_switch_should_update_extra_draw_size_after_editing_padding()
109 lv_obj_add_style(sw, &style_knob, LV_PART_KNOB); in test_switch_should_update_extra_draw_size_after_editing_padding()
110 lv_obj_center(sw); in test_switch_should_update_extra_draw_size_after_editing_padding()
113 actual = lv_obj_get_ext_draw_size(sw); in test_switch_should_update_extra_draw_size_after_editing_padding()
121 lv_obj_add_event_cb(sw, event_handler, LV_EVENT_ALL, NULL); in test_switch_should_trigger_value_changed_event_only_once()
130 lv_obj_add_flag(sw, LV_OBJ_FLAG_EVENT_BUBBLE); in test_switch_should_state_change_when_event_bubbling_is_enabled()
133 TEST_ASSERT(lv_obj_has_state(sw, LV_STATE_CHECKED)); in test_switch_should_state_change_when_event_bubbling_is_enabled()
143 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
145 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
146 lv_obj_add_state(sw, LV_STATE_CHECKED); in test_screeshots()
148 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
150 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
151 lv_obj_add_state(sw, LV_STATE_CHECKED | LV_STATE_DISABLED); in test_screeshots()
153 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
154 lv_switch_set_orientation(sw, LV_SWITCH_ORIENTATION_VERTICAL); in test_screeshots()
155 lv_obj_set_size(sw, 50, 100); in test_screeshots()
157 sw = lv_switch_create(lv_screen_active()); in test_screeshots()
158 lv_switch_set_orientation(sw, LV_SWITCH_ORIENTATION_VERTICAL); in test_screeshots()
159 lv_obj_add_state(sw, LV_STATE_CHECKED); in test_screeshots()
160 lv_obj_set_size(sw, 50, 100); in test_screeshots()