howm
howm
types.h
Go to the documentation of this file.
1 #ifndef TYPES_H
2 #define TYPES_H
3 
4 #include <stdbool.h>
5 #include <stdint.h>
6 #include <xcb/randr.h>
7 #include <xcb/xproto.h>
8 
24 typedef struct client_t client_t;
25 struct client_t {
29  bool is_floating;
30  bool is_transient;
32  bool is_urgent;
33  xcb_window_t win;
34  xcb_rectangle_t rect;
35  uint16_t gap;
37 };
38 
47 typedef struct workspace_t workspace_t;
48 struct workspace_t {
49  int layout;
51  unsigned int client_cnt;
52  uint16_t gap;
53  float master_ratio;
55  uint16_t bar_height;
63  unsigned int last_layout;
64 };
65 
72 typedef struct monitor_t monitor_t;
73 struct monitor_t {
74  unsigned int workspace_cnt;
81  xcb_rectangle_t rect;
82  xcb_randr_output_t output;
83 };
84 
85 typedef struct {
89 } location_t;
90 
91 #endif
xcb_randr_output_t output
Definition: types.h:82
uint16_t gap
Definition: types.h:35
xcb_rectangle_t rect
Definition: types.h:81
float master_ratio
Definition: types.h:53
workspace_t * next
Definition: types.h:61
bool is_urgent
Definition: types.h:32
client_t * prev_foc
Definition: types.h:58
client_t * next
Definition: types.h:26
xcb_rectangle_t rect
Definition: types.h:34
workspace_t * ws
Definition: types.h:87
Definition: types.h:85
workspace_t * ws
Definition: types.h:75
workspace_t * ws_tail
Definition: types.h:77
Definition: types.h:48
Definition: types.h:25
bool is_fullscreen
Definition: types.h:28
client_t * head
Definition: types.h:57
client_t * c
Definition: types.h:88
uint16_t bar_height
Definition: types.h:55
unsigned int last_layout
Definition: types.h:63
workspace_t * prev
Definition: types.h:62
monitor_t * prev
Definition: types.h:80
xcb_window_t win
Definition: types.h:33
monitor_t * next
Definition: types.h:79
unsigned int workspace_cnt
Definition: types.h:74
int layout
Definition: types.h:49
client_t * c
Definition: types.h:60
bool is_transient
Definition: types.h:30
workspace_t * last_ws
Definition: types.h:78
bool is_floating
Definition: types.h:29
workspace_t * ws_head
Definition: types.h:76
Definition: types.h:73
monitor_t * mon
Definition: types.h:86
uint16_t gap
Definition: types.h:52
unsigned int client_cnt
Definition: types.h:51