Lines Matching refs:msgbox

24 static lv_obj_t * msgbox = NULL;  variable
39 msgbox = lv_msgbox_create(active_screen); in test_msgbox_creation_successful_with_close_button()
40 lv_msgbox_add_title(msgbox, "The title"); in test_msgbox_creation_successful_with_close_button()
41 lv_msgbox_add_text(msgbox, "The text"); in test_msgbox_creation_successful_with_close_button()
42 lv_msgbox_add_footer_button(msgbox, "Apply"); in test_msgbox_creation_successful_with_close_button()
43 lv_msgbox_add_footer_button(msgbox, "Close"); in test_msgbox_creation_successful_with_close_button()
44 lv_msgbox_add_header_button(msgbox, LV_SYMBOL_AUDIO); in test_msgbox_creation_successful_with_close_button()
45 lv_msgbox_add_close_button(msgbox); in test_msgbox_creation_successful_with_close_button()
47 TEST_ASSERT_NOT_NULL(msgbox); in test_msgbox_creation_successful_with_close_button()
54 msgbox = lv_msgbox_create(NULL); in test_msgbox_creation_successful_no_close_button()
55 lv_msgbox_add_title(msgbox, "The title"); in test_msgbox_creation_successful_no_close_button()
56 lv_msgbox_add_text(msgbox, "The text"); in test_msgbox_creation_successful_no_close_button()
57 lv_msgbox_add_footer_button(msgbox, "Apply"); in test_msgbox_creation_successful_no_close_button()
58 lv_msgbox_add_footer_button(msgbox, "Close"); in test_msgbox_creation_successful_no_close_button()
59 lv_msgbox_add_header_button(msgbox, LV_SYMBOL_AUDIO); in test_msgbox_creation_successful_no_close_button()
61 TEST_ASSERT_NOT_NULL(msgbox); in test_msgbox_creation_successful_no_close_button()
69 msgbox = lv_msgbox_create(NULL); in test_msgbox_creation_successful_modal()
70 lv_msgbox_add_title(msgbox, "The title"); in test_msgbox_creation_successful_modal()
71 lv_msgbox_add_text(msgbox, "The text"); in test_msgbox_creation_successful_modal()
72 lv_msgbox_add_footer_button(msgbox, "Apply"); in test_msgbox_creation_successful_modal()
73 lv_msgbox_add_footer_button(msgbox, "Close"); in test_msgbox_creation_successful_modal()
74 lv_msgbox_add_header_button(msgbox, LV_SYMBOL_AUDIO); in test_msgbox_creation_successful_modal()
75 lv_msgbox_add_close_button(msgbox); in test_msgbox_creation_successful_modal()
77 TEST_ASSERT_NOT_NULL(msgbox); in test_msgbox_creation_successful_modal()
80 lv_obj_clean(msgbox); in test_msgbox_creation_successful_modal()
88 msgbox = lv_msgbox_create(active_screen); in test_msgbox_get_title()
89 lv_msgbox_add_title(msgbox, "The title"); in test_msgbox_get_title()
90 lv_msgbox_add_text(msgbox, "The text"); in test_msgbox_get_title()
91 lv_msgbox_add_footer_button(msgbox, "Apply"); in test_msgbox_get_title()
92 lv_msgbox_add_footer_button(msgbox, "Close"); in test_msgbox_get_title()
93 lv_msgbox_add_header_button(msgbox, LV_SYMBOL_AUDIO); in test_msgbox_get_title()
94 lv_msgbox_add_close_button(msgbox); in test_msgbox_get_title()
97 lbl_title = lv_msgbox_get_title(msgbox); in test_msgbox_get_title()
104 msgbox = lv_msgbox_create(active_screen); in test_msgbox_get_content()
106 TEST_ASSERT_NOT_NULL(lv_msgbox_get_content(msgbox)); in test_msgbox_get_content()
111 msgbox = lv_msgbox_create(active_screen); in test_msgbox_close()
112 lv_msgbox_add_text(msgbox, "The text"); in test_msgbox_close()
114 lv_msgbox_close(msgbox); in test_msgbox_close()
117 TEST_ASSERT_NOT_NULL(msgbox); in test_msgbox_close()
122 msgbox = lv_msgbox_create(NULL); in test_msgbox_close_modal()
123 lv_msgbox_add_text(msgbox, "The text"); in test_msgbox_close_modal()
125 lv_msgbox_close(msgbox); in test_msgbox_close_modal()
128 TEST_ASSERT_NOT_NULL(msgbox); in test_msgbox_close_modal()
133 msgbox = lv_msgbox_create(active_screen); in test_msgbox_close_async()
134 lv_msgbox_add_text(msgbox, "The text"); in test_msgbox_close_async()
137 TEST_ASSERT_NOT_NULL(msgbox); in test_msgbox_close_async()
142 msgbox = lv_msgbox_create(NULL); in test_msgbox_close_async_modal()
143 lv_msgbox_add_text(msgbox, "The text"); in test_msgbox_close_async_modal()
146 TEST_ASSERT_NOT_NULL(msgbox); in test_msgbox_close_async_modal()
152 msgbox = lv_msgbox_create(NULL); in test_msgbox_content_auto_height()
153 lv_msgbox_add_title(msgbox, "The title"); in test_msgbox_content_auto_height()
154 lv_msgbox_add_text(msgbox, "The text"); in test_msgbox_content_auto_height()
155 lv_msgbox_add_footer_button(msgbox, "Apply"); in test_msgbox_content_auto_height()
156 lv_msgbox_add_footer_button(msgbox, "Close"); in test_msgbox_content_auto_height()
157 lv_msgbox_add_header_button(msgbox, LV_SYMBOL_AUDIO); in test_msgbox_content_auto_height()
158 lv_msgbox_add_close_button(msgbox); in test_msgbox_content_auto_height()
161 bool is_height_size_content = (lv_obj_get_style_height(msgbox, 0) == LV_SIZE_CONTENT); in test_msgbox_content_auto_height()
164 lv_obj_update_layout(msgbox); in test_msgbox_content_auto_height()
165 lv_obj_t * header = lv_msgbox_get_header(msgbox); in test_msgbox_content_auto_height()
166 lv_obj_t * footer = lv_msgbox_get_footer(msgbox); in test_msgbox_content_auto_height()
167 lv_obj_t * content = lv_msgbox_get_content(msgbox); in test_msgbox_content_auto_height()
173 int32_t h_obj_content = lv_obj_get_content_height(msgbox); in test_msgbox_content_auto_height()
179 lv_obj_set_size(msgbox, lv_pct(80), lv_pct(80)); in test_msgbox_content_auto_height()
181 is_height_size_content = (lv_obj_get_style_height(msgbox, 0) == LV_SIZE_CONTENT); in test_msgbox_content_auto_height()
184 lv_obj_update_layout(msgbox); in test_msgbox_content_auto_height()
189 h_obj_content = lv_obj_get_content_height(msgbox); in test_msgbox_content_auto_height()