forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.h
64 lines (56 loc) · 1.94 KB
/
output.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef _OUTPUT_H_
#define _OUTPUT_H_
#include "color.h"
#include <cstdarg>
#include <string>
#include <vector>
// LINE_NESW - X for on, O for off
#define LINE_XOXO 4194424
#define LINE_OXOX 4194417
#define LINE_XXOO 4194413
#define LINE_OXXO 4194412
#define LINE_OOXX 4194411
#define LINE_XOOX 4194410
#define LINE_XXXO 4194420
#define LINE_XXOX 4194422
#define LINE_XOXX 4194421
#define LINE_OXXX 4194423
#define LINE_XXXX 4194414
/*
struct window
{
WINDOW* w;
window(int x0 = 0, int y0 = 0, int Width, int Height);
outline(nc_color FG = c_white);
mvputch(win_attribute attr = WA_NULL,
int x, int y, nc_color FG, char ch);
mvprint(win_attribute attr = WA_NULL,
int x, int y, nc_color FG = c_ltgray, std::string text);
print(win_attribute attr = WA_NULL,
int x, int y, nc_color FG = c_ltgray, std::string text);
int width, height;
};
*/
void mvputch(int y, int x, nc_color FG, long ch);
void wputch(WINDOW* w, nc_color FG, long ch);
void mvwputch(WINDOW* w, int y, int x, nc_color FG, long ch);
void mvputch_inv(int y, int x, nc_color FG, long ch);
void mvwputch_inv(WINDOW *w, int y, int x, nc_color FG, long ch);
void mvputch_hi(int y, int x, nc_color FG, long ch);
void mvwputch_hi(WINDOW *w, int y, int x, nc_color FG, long ch);
void mvprintz(int y, int x, nc_color FG, const char *mes, ...);
void mvwprintz(WINDOW *w, int y, int x, nc_color FG, const char *mes, ...);
void printz(nc_color FG, const char *mes, ...);
void wprintz(WINDOW *w, nc_color FG, const char *mes, ...);
void debugmsg(const char *mes, ...);
bool query_yn(const char *mes, ...);
std::string string_input_popup(const char *mes, ...);
int menu_vec(const char *mes, std::vector<std::string> options);
int menu(const char *mes, ...);
void popup_top(const char *mes, ...); // Displayed at the top of the screen
void popup(const char *mes, ...);
void full_screen_popup(const char *mes, ...);
nc_color hilite(nc_color c);
nc_color rand_color();
char rand_char();
#endif