2021-10-03 10:36:05 +00:00
|
|
|
/**
|
|
|
|
* @file empty_screen.h
|
|
|
|
* GUI: EmptyScreen view module API
|
|
|
|
*/
|
|
|
|
|
2021-09-24 11:56:27 +00:00
|
|
|
#pragma once
|
2021-10-03 10:36:05 +00:00
|
|
|
|
2021-09-24 11:56:27 +00:00
|
|
|
#include <gui/view.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2021-10-03 10:36:05 +00:00
|
|
|
/** Empty screen anonymous structure */
|
2021-09-24 11:56:27 +00:00
|
|
|
typedef struct EmptyScreen EmptyScreen;
|
|
|
|
|
2021-10-03 10:36:05 +00:00
|
|
|
/** Allocate and initialize empty screen
|
|
|
|
*
|
2021-09-24 11:56:27 +00:00
|
|
|
* This empty screen used to ask simple questions like Yes/
|
2021-10-03 10:36:05 +00:00
|
|
|
*
|
|
|
|
* @return EmptyScreen instance
|
2021-09-24 11:56:27 +00:00
|
|
|
*/
|
|
|
|
EmptyScreen* empty_screen_alloc();
|
|
|
|
|
2021-10-03 10:36:05 +00:00
|
|
|
/** Deinitialize and free empty screen
|
|
|
|
*
|
|
|
|
* @param empty_screen Empty screen instance
|
2021-09-24 11:56:27 +00:00
|
|
|
*/
|
|
|
|
void empty_screen_free(EmptyScreen* empty_screen);
|
|
|
|
|
2021-10-03 10:36:05 +00:00
|
|
|
/** Get empty screen view
|
|
|
|
*
|
|
|
|
* @param empty_screen Empty screen instance
|
|
|
|
*
|
|
|
|
* @return View instance that can be used for embedding
|
2021-09-24 11:56:27 +00:00
|
|
|
*/
|
|
|
|
View* empty_screen_get_view(EmptyScreen* empty_screen);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
2022-05-06 13:37:10 +00:00
|
|
|
#endif
|