i3
Main Page
Data Structures
Files
File List
Globals
include
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 I3_RANDR_H
13
#define I3_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
21
typedef
enum
{
22
CLOSEST_OUTPUT
= 0,
23
FARTHEST_OUTPUT
= 1
24
}
output_close_far_t
;
25
31
void
randr_init
(
int
*event_base);
32
38
void
disable_randr
(xcb_connection_t *
conn
);
39
45
void
output_init_con
(
Output
*output);
46
57
void
init_ws_for_output
(
Output
*output,
Con
*content);
58
63
//void initialize_output(xcb_connection_t *conn, Output *output, Workspace *workspace);
64
69
void
randr_query_outputs
(
void
);
70
75
Output
*
get_first_output
(
void
);
76
81
Output
*
get_output_by_name
(
const
char
*name);
82
88
Output
*
get_output_containing
(
int
x
,
int
y
);
89
98
Output
*
get_output_most
(
direction_t
direction,
Output
*current);
99
104
Output
*
get_output_next
(
direction_t
direction,
Output
*current,
output_close_far_t
close_far);
105
106
#endif
Generated by
1.8.3