Flipper Developer Docs
Loading...
Searching...
No Matches
popup.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <
gui/view.h
>
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
15
typedef
struct
Popup
Popup
;
16
20
typedef
void (*
PopupCallback
)(
void
* context);
21
28
Popup
*
popup_alloc
(
void
);
29
34
void
popup_free
(
Popup
* popup);
35
42
View
*
popup_get_view
(
Popup
* popup);
43
49
void
popup_set_callback
(
Popup
* popup,
PopupCallback
callback);
50
56
void
popup_set_context
(
Popup
* popup,
void
* context);
57
69
void
popup_set_header
(
70
Popup
* popup,
71
const
char
* text,
72
uint8_t x,
73
uint8_t y,
74
Align
horizontal,
75
Align
vertical);
76
88
void
popup_set_text
(
89
Popup
* popup,
90
const
char
* text,
91
uint8_t x,
92
uint8_t y,
93
Align
horizontal,
94
Align
vertical);
95
105
void
popup_set_icon
(
Popup
* popup, uint8_t x, uint8_t y,
const
Icon
* icon);
106
112
void
popup_set_timeout
(
Popup
* popup, uint32_t timeout_in_ms);
113
118
void
popup_enable_timeout
(
Popup
* popup);
119
124
void
popup_disable_timeout
(
Popup
* popup);
125
130
void
popup_reset
(
Popup
* popup);
131
132
#ifdef __cplusplus
133
}
134
#endif
Align
Align
Alignment enumeration.
Definition
canvas.h:36
popup_enable_timeout
void popup_enable_timeout(Popup *popup)
Enable popup timeout.
Definition
popup.c:235
popup_alloc
Popup * popup_alloc(void)
Allocate and initialize popup.
Definition
popup.c:111
popup_disable_timeout
void popup_disable_timeout(Popup *popup)
Disable popup timeout.
Definition
popup.c:241
popup_free
void popup_free(Popup *popup)
Deinitialize and free popup.
Definition
popup.c:149
popup_set_text
void popup_set_text(Popup *popup, const char *text, uint8_t x, uint8_t y, Align horizontal, Align vertical)
Set popup text.
Definition
popup.c:194
PopupCallback
void(* PopupCallback)(void *context)
Popup result callback type.
Definition
popup.h:20
popup_set_context
void popup_set_context(Popup *popup, void *context)
Set popup context.
Definition
popup.c:167
popup_set_callback
void popup_set_callback(Popup *popup, PopupCallback callback)
Set popup header text.
Definition
popup.c:162
popup_get_view
View * popup_get_view(Popup *popup)
Get popup view.
Definition
popup.c:156
popup_set_icon
void popup_set_icon(Popup *popup, uint8_t x, uint8_t y, const Icon *icon)
Set popup icon.
Definition
popup.c:216
popup_set_timeout
void popup_set_timeout(Popup *popup, uint32_t timeout_in_ms)
Set popup timeout.
Definition
popup.c:230
popup_reset
void popup_reset(Popup *popup)
Reset popup instance state.
Definition
popup.c:247
popup_set_header
void popup_set_header(Popup *popup, const char *text, uint8_t x, uint8_t y, Align horizontal, Align vertical)
Set popup header text.
Definition
popup.c:172
Icon
Definition
icon_i.h:9
Popup
Definition
popup.c:5
View
Definition
view_i.h:16
view.h
GUI: View API.
applications
services
gui
modules
popup.h
Generated by
1.12.0