PatchworkOS
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)
9extern "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
26
37
38popup_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_result_t popup_open(const char *text, const char *title, popup_type_t type)
Definition popup.c:87
popup_type_t
Definition popup.h:21
@ POPUP_RETRY_CANCEL
Definition popup.h:23
@ POPUP_OK
Definition popup.h:22
@ POPUP_YES_NO
Definition popup.h:24
popup_result_t
Definition popup.h:28
@ POPUP_RES_CLOSE
Definition popup.h:34
@ POPUP_RES_RETRY
Definition popup.h:30
@ POPUP_RES_OK
Definition popup.h:29
@ POPUP_RES_CANCEL
Definition popup.h:31
@ POPUP_RES_NO
Definition popup.h:33
@ POPUP_RES_ERROR
Definition popup.h:35
@ POPUP_RES_YES
Definition popup.h:32