Lines Matching refs:checkbox

17 static lv_obj_t * checkbox = NULL;  variable
33 checkbox = lv_checkbox_create(active_screen); in test_checkbox_creation_successful()
35 TEST_ASSERT_NOT_NULL(checkbox); in test_checkbox_creation_successful()
41 checkbox = lv_checkbox_create(active_screen); in test_checkbox_should_call_event_handler_on_click_when_enabled()
43 lv_obj_add_state(checkbox, LV_STATE_CHECKED); in test_checkbox_should_call_event_handler_on_click_when_enabled()
44 lv_obj_add_event_cb(checkbox, event_handler, LV_EVENT_ALL, NULL); in test_checkbox_should_call_event_handler_on_click_when_enabled()
46 lv_test_mouse_click_at(checkbox->coords.x1, checkbox->coords.y1); in test_checkbox_should_call_event_handler_on_click_when_enabled()
58 checkbox = lv_checkbox_create(active_screen); in test_checkbox_should_have_default_text_when_created()
60 TEST_ASSERT_EQUAL_STRING(default_text, lv_checkbox_get_text(checkbox)); in test_checkbox_should_have_default_text_when_created()
61 TEST_ASSERT_NOT_NULL(lv_checkbox_get_text(checkbox)); in test_checkbox_should_have_default_text_when_created()
69 checkbox = lv_checkbox_create(active_screen); in test_checkbox_should_return_dynamically_allocated_text()
71 lv_checkbox_set_text(checkbox, message); in test_checkbox_should_return_dynamically_allocated_text()
73 TEST_ASSERT_EQUAL_STRING(message, lv_checkbox_get_text(checkbox)); in test_checkbox_should_return_dynamically_allocated_text()
74 TEST_ASSERT_NOT_NULL(lv_checkbox_get_text(checkbox)); in test_checkbox_should_return_dynamically_allocated_text()
86 checkbox = lv_checkbox_create(active_screen); in test_checkbox_should_allocate_memory_for_static_text()
90 lv_checkbox_set_text_static(checkbox, static_text); in test_checkbox_should_allocate_memory_for_static_text()