home · contact · privacy
Removed unused Win properties.
[plomrogue] / windows.h
1 struct WinMeta {
2   struct Win * chain_start;
3   struct Win * chain_end;
4   struct Win * active;
5   int height;
6   int width; };
7
8 struct Win {
9   struct Win * prev;
10   struct Win * next;
11   int width;
12   int height;
13   WINDOW * curses_win;
14   char * title;
15   void (* draw) (struct Win *);
16   void * data; };
17
18 struct yx {
19   int y;
20   int x; };
21
22 struct Corners {
23   struct yx tl;
24   struct yx tr;
25   struct yx bl;
26   struct yx br; };
27
28 struct  WinMeta init_win_meta (WINDOW *);
29 struct Win init_window (struct WinMeta *, char *);
30 void append_window (struct WinMeta *, struct Win *);
31 void suspend_window (struct WinMeta *, struct Win *);
32 struct yx place_window (struct WinMeta *, struct Win *);
33 void update_windows (struct WinMeta *, struct Win *);
34 void destroy_window (struct Win *);
35 void draw_window(struct Win *);
36 void draw_windows (struct Win *);
37 void draw_windows_borders (struct Win *, struct Win *, struct Corners *, int);
38 void draw_window_borders (struct Win *, char);
39 void draw_all_windows (struct WinMeta *);
40 void resize_window (struct WinMeta *, char);
41 void cycle_active_window (struct WinMeta *, char);
42 void shift_window (struct WinMeta *, char);