1 /* vim:set cin ft=c sw=4 sts=4 ts=8 et ai cino=Ls\:0t0(0 : -*- mode:c;fill-column:80;tab-width:8;c-basic-offset:4;indent-tabs-mode:nil;c-file-style:"k&r" -*-*/
2 /* NetHack 3.7 curswins.h */
3 /* Copyright (c) Karl Garrison, 2010. */
4 /* NetHack may be freely redistributed.  See license for details. */
5 
6 #ifndef CURSWIN_H
7 # define CURSWIN_H
8 
9 
10 /* Global declarations */
11 
12 WINDOW *curses_create_window(int width, int height, orient orientation);
13 
14 void curses_destroy_win(WINDOW * win);
15 void curses_refresh_nethack_windows(void);
16 WINDOW *curses_get_nhwin(winid wid);
17 void curses_add_nhwin(winid wid, int height, int width, int y, int x,
18                       orient orientation, boolean border);
19 void curses_add_wid(winid wid);
20 void curses_refresh_nhwin(winid wid);
21 void curses_del_nhwin(winid wid);
22 void curses_del_wid(winid wid);
23 void curs_destroy_all_wins(void);
24 void curses_putch(winid wid, int x, int y, int ch, int color, int attrs);
25 void curses_get_window_xy(winid wid, int *x, int *y);
26 boolean curses_window_has_border(winid wid);
27 boolean curses_window_exists(winid wid);
28 int curses_get_window_orientation(winid wid);
29 void curses_puts(winid wid, int attr, const char *text);
30 void curses_clear_nhwin(winid wid);
31 void curses_alert_win_border(winid wid, boolean onoff);
32 void curses_alert_main_borders(boolean onoff);
33 void curses_draw_map(int sx, int sy, int ex, int ey);
34 boolean curses_map_borders(int *sx, int *sy, int *ex, int *ey, int ux, int uy);
35 
36 
37 #endif /* CURSWIN_H */
38