-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclient.h
39 lines (27 loc) · 888 Bytes
/
client.h
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
31
32
33
34
35
36
37
38
39
#ifndef NI_CLIENT
#define NI_CLIENT
#include <xcb/xcb.h>
#include "geometry.h"
#include "dlist.h"
// A client window.
typedef struct ni_client ni_client_t;
dlist_declare(ni_client_t*, ni_client);
// Allocate a new client
ni_client_t* ni_client_new(xcb_window_t window);
// Initialize a stack allocated client
int ni_client_init(ni_client_t*);
// Free a heap allocated client
void ni_client_free(ni_client_t*);
int ni_client_cmp(void*, void*);
// Place focus on this client
void ni_client_focus(ni_client_t*);
// Raise this client to front
void ni_client_raise(ni_client_t*);
// Lower this client to back
void ni_client_lower(ni_client_t*);
void ni_client_close(ni_client_t*);
void ni_client_teleport(ni_client_t*);
void ni_client_resize(ni_client_t*);
void ni_client_border(ni_client_t*);
void ni_client_undo_resize(ni_client_t*);
#endif /* end of include guard: NI_CLIENT */