PatchworkOS
Loading...
Searching...
No Matches
popup.h File Reference
#include "window.h"
#include <stdint.h>

Go to the source code of this file.

Macros

#define POPUP_HEIGHT   125
 
#define POPUP_WIDTH   325
 
#define POPUP_BUTTON_AREA_HEIGHT   50
 
#define POPUP_HORIZONTAL_PADDING   50
 
#define POPUP_BUTTON_HEIGHT   35
 
#define POPUP_BUTTON_WIDTH   100
 

Enumerations

enum  popup_type_t {
  POPUP_OK ,
  POPUP_RETRY_CANCEL ,
  POPUP_YES_NO
}
 
enum  popup_result_t {
  POPUP_RES_OK ,
  POPUP_RES_RETRY ,
  POPUP_RES_CANCEL ,
  POPUP_RES_YES ,
  POPUP_RES_NO ,
  POPUP_RES_CLOSE ,
  POPUP_RES_ERROR
}
 

Functions

popup_result_t popup_open (const char *text, const char *title, popup_type_t type)
 

Macro Definition Documentation

◆ POPUP_BUTTON_AREA_HEIGHT

#define POPUP_BUTTON_AREA_HEIGHT   50

Definition at line 15 of file popup.h.

◆ POPUP_BUTTON_HEIGHT

#define POPUP_BUTTON_HEIGHT   35

Definition at line 17 of file popup.h.

◆ POPUP_BUTTON_WIDTH

#define POPUP_BUTTON_WIDTH   100

Definition at line 18 of file popup.h.

◆ POPUP_HEIGHT

#define POPUP_HEIGHT   125

Definition at line 13 of file popup.h.

◆ POPUP_HORIZONTAL_PADDING

#define POPUP_HORIZONTAL_PADDING   50

Definition at line 16 of file popup.h.

◆ POPUP_WIDTH

#define POPUP_WIDTH   325

Definition at line 14 of file popup.h.

Enumeration Type Documentation

◆ popup_result_t

Enumerator
POPUP_RES_OK 
POPUP_RES_RETRY 
POPUP_RES_CANCEL 
POPUP_RES_YES 
POPUP_RES_NO 
POPUP_RES_CLOSE 
POPUP_RES_ERROR 

Definition at line 27 of file popup.h.

◆ popup_type_t

Enumerator
POPUP_OK 
POPUP_RETRY_CANCEL 
POPUP_YES_NO 

Definition at line 20 of file popup.h.

Function Documentation

◆ popup_open()