Angband
ui-output.h
Go to the documentation of this file.
1 
19 #ifndef INCLUDED_UI_OUTPUT_H
20 #define INCLUDED_UI_OUTPUT_H
21 
22 #include "ui-event.h"
23 #include "ui-term.h"
24 #include "z-textblock.h"
25 
33 typedef struct region region;
34 
35 struct region {
36  int col; /* x-coordinate of upper right corner */
37  int row; /* y-coord of upper right coordinate */
38  int width; /* width of display area. 1 - use system default. */
39  /* non-positive - rel to right of screen */
40  int page_rows; /* non-positive value is relative to the bottom of the screen */
41 };
42 
46 static const region SCREEN_REGION = {0, 0, 0, 0};
47 
51 void region_erase(const region *loc);
52 
56 void region_erase_bordered(const region *loc);
57 
62 
66 bool region_inside(const region *loc, const ui_event *key);
67 
68 
74 void textui_textblock_show(textblock *tb, region orig_area, const char *header);
75 void textui_textblock_place(textblock *tb, region orig_area, const char *header);
76 
81 void text_out_to_screen(byte a, const char *str);
82 
87 void c_put_str(byte attr, const char *str, int row, int col);
88 void put_str(const char *str, int row, int col);
89 void c_prt(byte attr, const char *str, int row, int col);
90 void prt(const char *str, int row, int col);
91 
97 void screen_save(void);
98 void screen_load(void);
99 bool textui_map_is_visible(void);
100 
101 
106 void window_make(int origin_x, int origin_y, int end_x, int end_y);
107 bool modify_panel(term *t, int wy, int wx);
108 bool change_panel(int dir);
109 void verify_panel(void);
110 void center_panel(void);
111 void textui_get_panel(int *min_y, int *min_x, int *max_y, int *max_x);
112 bool textui_panel_contains(unsigned int y, unsigned int x);
113 
114 #endif /* INCLUDED_UI_OUTPUT_H */