Lines Matching refs:sw
13 lv_obj_t * sw = NULL; variable
19 sw = lv_switch_create(scr); in setUp()
30 lv_test_mouse_click_at(sw->coords.x1, sw->coords.y1); in mouse_click_on_switch()
45 lv_state_t state = lv_obj_get_state(sw); in test_switch_should_have_default_state_after_being_created()
76 lv_switch_t * anim_sw = (lv_switch_t *) sw; in test_switch_animation()
86 TEST_ASSERT(lv_obj_has_state(sw, LV_STATE_CHECKED)); in test_switch_animation()
92 TEST_ASSERT_FALSE(lv_obj_has_state(sw, LV_STATE_CHECKED)); in test_switch_animation()
97 lv_coord_t extra_size = _lv_obj_get_ext_draw_size(sw); in test_switch_should_not_have_extra_draw_size_at_creation()
112 lv_obj_remove_style_all(sw); in test_switch_should_update_extra_draw_size_after_editing_padding()
113 lv_obj_add_style(sw, &style_knob, LV_PART_KNOB); in test_switch_should_update_extra_draw_size_after_editing_padding()
114 lv_obj_center(sw); in test_switch_should_update_extra_draw_size_after_editing_padding()
117 actual = _lv_obj_get_ext_draw_size(sw); in test_switch_should_update_extra_draw_size_after_editing_padding()
125 lv_obj_add_event_cb(sw, event_handler, LV_EVENT_ALL, NULL); in test_switch_should_trigger_value_changed_event_only_once()
134 lv_obj_add_flag(sw, LV_OBJ_FLAG_EVENT_BUBBLE); in test_switch_should_state_change_when_event_bubbling_is_enabled()
137 TEST_ASSERT(lv_obj_has_state(sw, LV_STATE_CHECKED)); in test_switch_should_state_change_when_event_bubbling_is_enabled()