include/data.h File Reference

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

Go to the source code of this file.

Data Structures

struct  Rect
 Stores a rectangle, for example the size of a window, the child window etc. More...
struct  reservedpx
 Stores the reserved pixels on each screen edge read from a _NET_WM_STRUT_PARTIAL. More...
struct  width_height
 Stores a width/height pair, used as part of deco_render_params to check whether the rects width/height have changed. More...
struct  deco_render_params
 Stores the parameters for rendering a window decoration. More...
struct  Workspace_Assignment
 Stores which workspace (by name) goes to which output. More...
struct  Ignore_Event
struct  Binding
 Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed as soon as the key is pressed (see src/command.c). More...
struct  Autostart
 Holds a command specified by either an:

  • exec-line
  • exec_always-line in the config (see src/config.c).
More...
struct  Font
 Data structure for cached font information:

  • font id in X11 (load it once)
  • font height (multiple calls needed to get it).
More...
struct  xoutput
 An Output is a physical output on your graphics driver. More...
struct  Window
struct  Match
struct  Assignment
 An Assignment makes specific windows go to a specific workspace/output or run a command for that window. More...
struct  Con

Typedefs

typedef struct Font i3Font
typedef struct Binding Binding
typedef struct Rect Rect
typedef struct xoutput Output
typedef struct Con Con
typedef struct Match Match
typedef struct Assignment Assignment
typedef struct Window i3Window

Enumerations

enum  direction_t { D_LEFT, D_RIGHT, D_UP, D_DOWN }
enum  orientation_t { NO_ORIENTATION = 0, HORIZ, VERT }
enum  border_style_t { BS_NORMAL = 0, BS_NONE = 1, BS_1PIXEL = 2 }
enum  kill_window_t { DONT_KILL_WINDOW = 0, KILL_WINDOW = 1, KILL_CLIENT = 2 }
 

parameter to specify whether tree_close() and x_window_kill() should kill only this specific window or the whole X11 client

More...
enum  {
  BIND_NONE = 0, BIND_SHIFT = XCB_MOD_MASK_SHIFT, BIND_CONTROL = XCB_MOD_MASK_CONTROL, BIND_MOD1 = XCB_MOD_MASK_1,
  BIND_MOD2 = XCB_MOD_MASK_2, BIND_MOD3 = XCB_MOD_MASK_3, BIND_MOD4 = XCB_MOD_MASK_4, BIND_MOD5 = XCB_MOD_MASK_5,
  BIND_MODE_SWITCH = (1 << 8)
}

Variables

struct Rect packed
 Stores a rectangle, for example the size of a window, the child window etc.

Typedef Documentation

typedef struct Assignment Assignment

Definition at line 36 of file data.h.

typedef struct Binding Binding

Definition at line 31 of file data.h.

typedef struct Con Con

Definition at line 34 of file data.h.

typedef struct Font i3Font

Definition at line 30 of file data.h.

typedef struct Window i3Window

Definition at line 37 of file data.h.

typedef struct Match Match

Definition at line 35 of file data.h.

typedef struct xoutput Output

Definition at line 33 of file data.h.

typedef struct Rect Rect

Definition at line 32 of file data.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
BIND_NONE 
BIND_SHIFT 
BIND_CONTROL 
BIND_MOD1 
BIND_MOD2 
BIND_MOD3 
BIND_MOD4 
BIND_MOD5 
BIND_MODE_SWITCH 

Definition at line 51 of file data.h.

Enumerator:
BS_NORMAL 
BS_NONE 
BS_1PIXEL 

Definition at line 45 of file data.h.

Enumerator:
D_LEFT 
D_RIGHT 
D_UP 
D_DOWN 

Definition at line 43 of file data.h.

parameter to specify whether tree_close() and x_window_kill() should kill only this specific window or the whole X11 client

Enumerator:
DONT_KILL_WINDOW 
KILL_WINDOW 
KILL_CLIENT 

Definition at line 49 of file data.h.

Enumerator:
NO_ORIENTATION 
HORIZ 
VERT 

Definition at line 44 of file data.h.


Variable Documentation

struct Rect packed

Stores a rectangle, for example the size of a window, the child window etc.

It needs to be packed so that the compiler will not add any padding bytes. (it is used in src/ewmh.c for example)

Note that x and y can contain signed values in some cases (for example when used for the coordinates of a window, which can be set outside of the visible area, but not when specifying the position of a workspace for the _NET_WM_WORKAREA hint). Not declaring x/y as int32_t saves us a lot of typecasts.


Generated on 7 Feb 2013 for i3 by  doxygen 1.6.1