PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
popup.h
Go to the documentation of this file.
1
#ifndef PATCHWORK_POPUP_H
2
#define PATCHWORK_POPUP_H 1
3
4
#include "
window.h
"
5
6
#include <
stdint.h
>
7
8
#if defined(__cplusplus)
9
extern
"C"
10
{
11
#endif
12
13
#define POPUP_HEIGHT 125
14
#define POPUP_WIDTH 325
15
#define POPUP_BUTTON_AREA_HEIGHT 50
16
#define POPUP_HORIZONTAL_PADDING 50
17
#define POPUP_BUTTON_HEIGHT 35
18
#define POPUP_BUTTON_WIDTH 100
19
20
typedef
enum
21
{
22
POPUP_OK
,
23
POPUP_RETRY_CANCEL
,
24
POPUP_YES_NO
25
}
popup_type_t
;
26
27
typedef
enum
28
{
29
POPUP_RES_OK
,
30
POPUP_RES_RETRY
,
31
POPUP_RES_CANCEL
,
32
POPUP_RES_YES
,
33
POPUP_RES_NO
,
34
POPUP_RES_CLOSE
,
35
POPUP_RES_ERROR
36
}
popup_result_t
;
37
38
popup_result_t
popup_open
(
const
char
* text,
const
char
* title,
popup_type_t
type);
39
40
#if defined(__cplusplus)
41
}
42
#endif
43
44
#endif
popup_open
popup_result_t popup_open(const char *text, const char *title, popup_type_t type)
Definition
popup.c:87
popup_type_t
popup_type_t
Definition
popup.h:21
POPUP_RETRY_CANCEL
@ POPUP_RETRY_CANCEL
Definition
popup.h:23
POPUP_OK
@ POPUP_OK
Definition
popup.h:22
POPUP_YES_NO
@ POPUP_YES_NO
Definition
popup.h:24
popup_result_t
popup_result_t
Definition
popup.h:28
POPUP_RES_CLOSE
@ POPUP_RES_CLOSE
Definition
popup.h:34
POPUP_RES_RETRY
@ POPUP_RES_RETRY
Definition
popup.h:30
POPUP_RES_OK
@ POPUP_RES_OK
Definition
popup.h:29
POPUP_RES_CANCEL
@ POPUP_RES_CANCEL
Definition
popup.h:31
POPUP_RES_NO
@ POPUP_RES_NO
Definition
popup.h:33
POPUP_RES_ERROR
@ POPUP_RES_ERROR
Definition
popup.h:35
POPUP_RES_YES
@ POPUP_RES_YES
Definition
popup.h:32
stdint.h
window.h
include
libpatchwork
popup.h
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8