blob: ebef53a45cee167abcf1a6fc0965e60069e410af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef SF_WM_H
#define SF_WM_H
#include <ncurses.h>
#define WINDOWS_MAX 15
typedef struct {
WINDOW *win;
char name[32];
int height;
int width;
int start_x;
int start_y;
} window;
typedef struct {
window **windows; /* windows[0] is root_win */
int w_count; /* index of windows */
int maxy;
int maxx;
} terminal;
terminal *wm_init(void);
window *wm_create_new_w(terminal *t, const char *name, int width, int height,
int start_y, int start_x);
int wm_fd_w_by_name(terminal *t, const char *name);
void wm_refresh_all(terminal *t);
#endif /* SF_WM_H */
|