home · contact · privacy
Applied new formatting and documentation rules to draw_wins library.
[plomrogue] / src / draw_wins.h
1 /* draw_wins.h
2  *
3  * Routnes for drawing the game's windows' contents.
4  */
5
6 #ifndef DRAW_WINS_H
7 #define DRAW_WINS_H
8
9
10
11 #include <stdint.h> /* for uint16_t */
12 struct Win;
13
14
15 /* Write "text" into window "win". Start on row "start_y". Fill unused rows with
16  * whitespace.
17  */
18 extern void draw_with_linebreaks(struct Win * win, char * text,
19                                  uint16_t start_y);
20
21
22
23 /* Write "text" not starting from the top but from the bottom of "win". */
24 extern void draw_text_from_bottom(struct Win * win, char * text);
25
26
27
28 /* Write game log text into "win" from bottom to top. */
29 extern void draw_log_win(struct Win * win);
30
31
32
33 /* Draw game map and actors/objects on it into "win". Respect scroll offset. */
34 extern void draw_map_win (struct Win * win);
35
36
37
38 /* Draw into "win" the game / player status infos. */
39 extern void draw_info_win (struct Win * win);
40
41
42
43 /* Draw keybindings selection/manipulation menu. */
44 extern void draw_keys_win (struct Win * win);
45
46
47
48 #endif