i3
randr.h
Go to the documentation of this file.
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * For more information on RandR, please see the X.org RandR specification at
8  * http://cgit.freedesktop.org/xorg/proto/randrproto/tree/randrproto.txt
9  * (take your time to read it completely, it answers all questions).
10  *
11  */
12 #ifndef _RANDR_H
13 #define _RANDR_H
14 
15 #include "data.h"
16 #include <xcb/randr.h>
17 
18 TAILQ_HEAD(outputs_head, xoutput);
19 extern struct outputs_head outputs;
20 
26 void randr_init(int *event_base);
27 
33 void disable_randr(xcb_connection_t *conn);
34 
40 void output_init_con(Output *output);
41 
52 void init_ws_for_output(Output *output, Con *content);
53 
58 //void initialize_output(xcb_connection_t *conn, Output *output, Workspace *workspace);
59 
64 void randr_query_outputs(void);
65 
71 
76 Output *get_output_by_name(const char *name);
77 
83 Output *get_output_containing(int x, int y);
84 
93 Output *get_output_most(direction_t direction, Output *current);
94 
99 Output *get_output_next(direction_t direction, Output *current);
100 
101 #endif