home · contact · privacy
Humble beginnings of customizable keybindings. So far only reading from, not writing...
[plomrogue] / windows.h
1 struct WinMeta {
2   struct Win * chain_start;
3   struct Win * chain_end;
4   struct Win * active;
5   int height; };
6
7 struct Win {
8   struct Win * prev;
9   struct Win * next;
10   int width;
11   int height;
12   int start_x;
13   int start_y;
14   WINDOW * curses_win;
15   char border_left;
16   char border_down;
17   char * title;
18   void (* draw) (struct Win *);
19   void * data; };
20
21 struct  WinMeta init_win_meta (WINDOW *);
22 struct Win init_window (struct WinMeta *, char *);
23 void append_window (struct WinMeta *, struct Win *);
24 void suspend_window (struct WinMeta *, struct Win *);
25 void place_window (struct WinMeta *, struct Win *);
26 void update_windows (struct WinMeta *, struct Win *);
27 void destroy_window (struct Win *);
28 void draw_windows (struct WinMeta *, struct Win *);
29 void draw_all_windows (struct WinMeta *);
30 void draw_window(struct WinMeta *, struct Win *);
31 void undraw_window (WINDOW *);
32 void resize_window (struct WinMeta *, char);
33 void cycle_active_window (struct WinMeta *, char);
34 void shift_window (struct WinMeta *, char);