i3
include/randr.h
Go to the documentation of this file.
00001 /*
00002  * vim:ts=8:expandtab
00003  *
00004  * i3 - an improved dynamic tiling window manager
00005  *
00006  * © 2009-2010 Michael Stapelberg and contributors
00007  *
00008  * See file LICENSE for license information.
00009  *
00010  */
00011 #include "data.h"
00012 #include <xcb/randr.h>
00013 
00014 #ifndef _RANDR_H
00015 #define _RANDR_H
00016 
00017 TAILQ_HEAD(outputs_head, xoutput);
00018 extern struct outputs_head outputs;
00019 
00025 void randr_init(int *event_base);
00026 
00032 void disable_randr(xcb_connection_t *conn);
00033 
00039 void output_init_con(Output *output);
00040 
00051 void init_ws_for_output(Output *output, Con *content);
00052 
00057 //void initialize_output(xcb_connection_t *conn, Output *output, Workspace *workspace);
00058 
00063 void randr_query_outputs();
00064 
00069 Output *get_first_output();
00070 
00075 Output *get_output_by_name(const char *name);
00076 
00082 Output *get_output_containing(int x, int y);
00083 
00092 Output *get_output_most(direction_t direction, Output *current);
00093 
00094 #endif