include/randr.h File Reference

#include "data.h"
#include <xcb/randr.h>
Include dependency graph for randr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 TAILQ_HEAD (outputs_head, xoutput)
void initialize_randr (xcb_connection_t *conn, int *event_base)
 We have just established a connection to the X server and need the initial XRandR information to setup workspaces for each screen.
void disable_randr (xcb_connection_t *conn)
 Disables RandR support by creating exactly one output with the size of the X11 screen.
void initialize_output (xcb_connection_t *conn, Output *output, Workspace *workspace)
 Initializes the specified output, assigning the specified workspace to it.
void randr_query_outputs (xcb_connection_t *conn)
 (Re-)queries the outputs via RandR and stores them in the list of outputs.
Outputget_first_output ()
 Returns the first output which is active.
Outputget_output_by_name (const char *name)
 Returns the output with the given name if it is active (!) or NULL.
Outputget_output_containing (int x, int y)
 Returns the active (!) output which contains the coordinates x, y or NULL if there is no output which contains these coordinates.
Outputget_output_most (direction_t direction, Output *current)
 Gets the output which is the last one in the given direction, for example the output on the most bottom when direction == D_DOWN, the output most right when direction == D_RIGHT and so on.

Variables

struct outputs_head outputs

Function Documentation

void disable_randr ( xcb_connection_t *  conn  ) 

Disables RandR support by creating exactly one output with the size of the X11 screen.

Definition at line 216 of file randr.c.

References xoutput::active, DLOG, Rect::height, xoutput::name, outputs, randr_disabled, xoutput::rect, scalloc(), TAILQ_INSERT_TAIL, Rect::width, Rect::x, and Rect::y.

Referenced by initialize_randr(), initialize_xinerama(), and randr_query_outputs().

Here is the call graph for this function:

Output* get_first_output (  ) 

Returns the first output which is active.

Definition at line 84 of file randr.c.

References xoutput::active, outputs, and TAILQ_FOREACH.

Referenced by main(), and randr_query_outputs().

Output* get_output_by_name ( const char *  name  ) 

Returns the output with the given name if it is active (!) or NULL.

Definition at line 70 of file randr.c.

References xoutput::active, xoutput::name, outputs, and TAILQ_FOREACH.

Referenced by get_first_workspace_for_output(), initialize_output(), and workspace_initialize().

Output* get_output_containing ( int  x,
int  y 
)

Returns the active (!) output which contains the coordinates x, y or NULL if there is no output which contains these coordinates.

Definition at line 99 of file randr.c.

References xoutput::active, DLOG, Rect::height, outputs, xoutput::rect, TAILQ_FOREACH, Rect::width, Rect::x, and Rect::y.

Referenced by check_crossing_screen_boundary(), focus_thing(), main(), reparent_window(), reposition_client(), and resize_graphical_handler().

Output* get_output_most ( direction_t  direction,
Output current 
)

Gets the output which is the last one in the given direction, for example the output on the most bottom when direction == D_DOWN, the output most right when direction == D_RIGHT and so on.

This function always returns a output.

Definition at line 122 of file randr.c.

References xoutput::active, D_DOWN, D_LEFT, D_RIGHT, D_UP, outputs, xoutput::rect, TAILQ_FOREACH, WIN, Rect::x, and Rect::y.

Referenced by focus_thing(), and resize_graphical_handler().

void initialize_output ( xcb_connection_t *  conn,
Output output,
Workspace workspace 
)
void initialize_randr ( xcb_connection_t *  conn,
int *  event_base 
)

We have just established a connection to the X server and need the initial XRandR information to setup workspaces for each screen.

Definition at line 514 of file randr.c.

References disable_randr(), randr_query_outputs(), and root.

Referenced by main().

Here is the call graph for this function:

void randr_query_outputs ( xcb_connection_t *  conn  ) 
TAILQ_HEAD ( outputs_head  ,
xoutput   
)

Variable Documentation

struct outputs_head outputs

Generated on 10 Sep 2010 for i3 by  doxygen 1.6.1