]> git.sur5r.net Git - i3/i3/blob - i3bar/include/common.h
Merge branch 'master' into next
[i3/i3] / i3bar / include / common.h
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3bar - an xcb-based status- and ws-bar for i3
5  * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
6  *
7  */
8 #ifndef COMMON_H_
9 #define COMMON_H_
10
11 #include <stdbool.h>
12 #include <xcb/xcb.h>
13 #include <xcb/xproto.h>
14 #include "libi3.h"
15 #include "queue.h"
16
17 typedef struct rect_t rect;
18
19 struct ev_loop* main_loop;
20 char            *statusline;
21 char            *statusline_buffer;
22
23 struct rect_t {
24     int x;
25     int y;
26     int w;
27     int h;
28 };
29
30 /* This data structure represents one JSON dictionary, multiple of these make
31  * up one status line. */
32 struct status_block {
33     i3String *full_text;
34
35     char *color;
36
37     bool urgent;
38
39     /* The amount of pixels necessary to render this block. This variable is
40      * only temporarily used in refresh_statusline(). */
41     uint32_t width;
42
43     TAILQ_ENTRY(status_block) blocks;
44 };
45
46 TAILQ_HEAD(statusline_head, status_block) statusline_head;
47
48 #include "child.h"
49 #include "ipc.h"
50 #include "outputs.h"
51 #include "util.h"
52 #include "workspaces.h"
53 #include "trayclients.h"
54 #include "xcb.h"
55 #include "config.h"
56 #include "libi3.h"
57 #include "parse_json_header.h"
58
59 #endif