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