Flipper Zero Firmware
Loading...
Searching...
No Matches
dialog_ex.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <gui/view.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15typedef struct DialogEx DialogEx;
16
18typedef enum {
19 DialogExResultLeft,
20 DialogExResultCenter,
21 DialogExResultRight,
22 DialogExPressLeft,
23 DialogExPressCenter,
24 DialogExPressRight,
25 DialogExReleaseLeft,
26 DialogExReleaseCenter,
27 DialogExReleaseRight,
29
33typedef void (*DialogExResultCallback)(DialogExResult result, void* context);
34
42
47void dialog_ex_free(DialogEx* dialog_ex);
48
56
63
69void dialog_ex_set_context(DialogEx* dialog_ex, void* context);
70
83 DialogEx* dialog_ex,
84 const char* text,
85 uint8_t x,
86 uint8_t y,
87 Align horizontal,
88 Align vertical);
89
102 DialogEx* dialog_ex,
103 const char* text,
104 uint8_t x,
105 uint8_t y,
106 Align horizontal,
107 Align vertical);
108
118void dialog_ex_set_icon(DialogEx* dialog_ex, uint8_t x, uint8_t y, const Icon* icon);
119
127void dialog_ex_set_left_button_text(DialogEx* dialog_ex, const char* text);
128
136void dialog_ex_set_center_button_text(DialogEx* dialog_ex, const char* text);
137
145void dialog_ex_set_right_button_text(DialogEx* dialog_ex, const char* text);
146
151void dialog_ex_reset(DialogEx* dialog_ex);
152
158
164
165#ifdef __cplusplus
166}
167#endif
Align
Alignment enumeration.
Definition canvas.h:36
void dialog_ex_set_left_button_text(DialogEx *dialog_ex, const char *text)
Set left button text.
Definition dialog_ex.c:258
void dialog_ex_set_header(DialogEx *dialog_ex, const char *text, uint8_t x, uint8_t y, Align horizontal, Align vertical)
Set dialog header text.
Definition dialog_ex.c:203
void dialog_ex_reset(DialogEx *dialog_ex)
Clean dialog.
Definition dialog_ex.c:273
void dialog_ex_set_context(DialogEx *dialog_ex, void *context)
Set dialog context.
Definition dialog_ex.c:198
void dialog_ex_disable_extended_events(DialogEx *dialog_ex)
Disable press/release events.
Definition dialog_ex.c:299
DialogEx * dialog_ex_alloc(void)
Allocate and initialize dialog.
Definition dialog_ex.c:146
View * dialog_ex_get_view(DialogEx *dialog_ex)
Get dialog view.
Definition dialog_ex.c:188
void dialog_ex_enable_extended_events(DialogEx *dialog_ex)
Enable press/release events.
Definition dialog_ex.c:294
void dialog_ex_set_right_button_text(DialogEx *dialog_ex, const char *text)
Set right button text.
Definition dialog_ex.c:268
void dialog_ex_set_text(DialogEx *dialog_ex, const char *text, uint8_t x, uint8_t y, Align horizontal, Align vertical)
Set dialog text.
Definition dialog_ex.c:224
void dialog_ex_free(DialogEx *dialog_ex)
Deinitialize and free dialog.
Definition dialog_ex.c:182
DialogExResult
DialogEx result.
Definition dialog_ex.h:18
void dialog_ex_set_icon(DialogEx *dialog_ex, uint8_t x, uint8_t y, const Icon *icon)
Set dialog icon.
Definition dialog_ex.c:245
void dialog_ex_set_center_button_text(DialogEx *dialog_ex, const char *text)
Set center button text.
Definition dialog_ex.c:263
void(* DialogExResultCallback)(DialogExResult result, void *context)
DialogEx result callback type.
Definition dialog_ex.h:33
void dialog_ex_set_result_callback(DialogEx *dialog_ex, DialogExResultCallback callback)
Set dialog result callback.
Definition dialog_ex.c:193
Definition dialog_ex.c:5
Definition icon_i.h:9
Definition view_i.h:16
GUI: View API.