Lines Matching refs:arc

19 static lv_obj_t * arc = NULL;  variable
31 arc = lv_arc_create(active_screen); in test_arc_creation_successfull()
33 TEST_ASSERT_NOT_NULL(arc); in test_arc_creation_successfull()
41 arc = lv_arc_create(active_screen); in test_arc_should_truncate_to_max_range_when_new_value_exceeds_it()
43 lv_arc_set_value(arc, 200); in test_arc_should_truncate_to_max_range_when_new_value_exceeds_it()
45 TEST_ASSERT_EQUAL_INT16(value_after_truncation, lv_arc_get_value(arc)); in test_arc_should_truncate_to_max_range_when_new_value_exceeds_it()
53 arc = lv_arc_create(active_screen); in test_arc_should_truncate_to_min_range_when_new_value_is_inferior()
55 lv_arc_set_value(arc, 0); in test_arc_should_truncate_to_min_range_when_new_value_is_inferior()
57 TEST_ASSERT_EQUAL_INT16(value_after_truncation, lv_arc_get_value(arc)); in test_arc_should_truncate_to_min_range_when_new_value_is_inferior()
65 arc = lv_arc_create(active_screen); in test_arc_should_update_value_after_updating_range()
67 lv_arc_set_value(arc, 80); in test_arc_should_update_value_after_updating_range()
68 lv_arc_set_range(arc, 1, 50); in test_arc_should_update_value_after_updating_range()
70 TEST_ASSERT_EQUAL_INT16(value_after_updating_max_range, lv_arc_get_value(arc)); in test_arc_should_update_value_after_updating_range()
72 lv_arc_set_value(arc, 10); in test_arc_should_update_value_after_updating_range()
73 lv_arc_set_range(arc, 30, 50); in test_arc_should_update_value_after_updating_range()
75 TEST_ASSERT_EQUAL_INT16(value_after_updating_min_range, lv_arc_get_value(arc)); in test_arc_should_update_value_after_updating_range()
84 arc = lv_arc_create(active_screen); in test_arc_should_update_angles_when_changing_to_symmetrical_mode()
85 lv_arc_set_mode(arc, LV_ARC_MODE_SYMMETRICAL); in test_arc_should_update_angles_when_changing_to_symmetrical_mode()
87 TEST_ASSERT_EQUAL_INT16(expected_angle_start, lv_arc_get_angle_start(arc)); in test_arc_should_update_angles_when_changing_to_symmetrical_mode()
88 TEST_ASSERT_EQUAL_INT16(expected_angle_end, lv_arc_get_angle_end(arc)); in test_arc_should_update_angles_when_changing_to_symmetrical_mode()
97 arc = lv_arc_create(active_screen); in test_arc_should_update_angles_when_changing_to_symmetrical_mode_value_more_than_middle_range()
98 lv_arc_set_value(arc, 100); in test_arc_should_update_angles_when_changing_to_symmetrical_mode_value_more_than_middle_range()
99 lv_arc_set_mode(arc, LV_ARC_MODE_SYMMETRICAL); in test_arc_should_update_angles_when_changing_to_symmetrical_mode_value_more_than_middle_range()
101 TEST_ASSERT_EQUAL_INT16(expected_angle_start, lv_arc_get_angle_start(arc)); in test_arc_should_update_angles_when_changing_to_symmetrical_mode_value_more_than_middle_range()
102 TEST_ASSERT_EQUAL_INT16(expected_angle_end, lv_arc_get_angle_end(arc)); in test_arc_should_update_angles_when_changing_to_symmetrical_mode_value_more_than_middle_range()
128 arc = lv_arc_create(lv_scr_act()); in test_arc_click_area_with_adv_hittest()
129 lv_obj_set_size(arc, 100, 100); in test_arc_click_area_with_adv_hittest()
130 lv_obj_set_style_arc_width(arc, 10, 0); in test_arc_click_area_with_adv_hittest()
131 lv_obj_add_flag(arc, LV_OBJ_FLAG_ADV_HITTEST); in test_arc_click_area_with_adv_hittest()
132 lv_obj_add_event_cb(arc, dummy_event_cb, LV_EVENT_VALUE_CHANGED, NULL); in test_arc_click_area_with_adv_hittest()
133 lv_obj_set_ext_click_area(arc, 5); in test_arc_click_area_with_adv_hittest()
164 arc = lv_arc_create(lv_scr_act()); in test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max()
165 lv_arc_set_value(arc, 0); in test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max()
167 lv_obj_set_size(arc, 100, 100); in test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max()
168 lv_obj_center(arc); in test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max()
169 lv_obj_add_event_cb(arc, dummy_event_cb, LV_EVENT_PRESSED, NULL); in test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max()
181 TEST_ASSERT_EQUAL_UINT32(lv_arc_get_value(arc), lv_arc_get_min_value(arc)); in test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max()
195 TEST_ASSERT_NOT_EQUAL_UINT32(lv_arc_get_value(arc), lv_arc_get_max_value(arc)); in test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max()
202 arc = lv_arc_create(lv_scr_act()); in test_arc_basic_render()
203 lv_obj_set_size(arc, 100, 100); in test_arc_basic_render()
204 lv_obj_center(arc); in test_arc_basic_render()