i3
render.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 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * render.c: Renders (determines position/sizes) the layout tree, updating the
8  * various rects. Needs to be pushed to X11 (see x.c) to be visible.
9  *
10  */
11 #pragma once
12 
13 #include <config.h>
14 
15 /* This is used to keep a state to pass around when rendering a con in render_con(). */
16 typedef struct render_params {
17  /* A copy of the coordinates of the container which is being rendered. */
18  int x;
19  int y;
20 
21  /* The computed height for decorations. */
23  /* Container rect, subtract container border. This is the actually usable space
24  * inside this container for clients. */
26  /* The number of children of the container which is being rendered. */
27  int children;
28  /* A precalculated list of sizes of each child. */
29  int *sizes;
31 
40 void render_con(Con *con, bool render_fullscreen);
41 
42 /*
43  * Returns the height for the decorations
44  */
45 int render_deco_height(void);
Rect rect
Definition: render.h:25
void render_con(Con *con, bool render_fullscreen)
"Renders" the given container (and its children), meaning that all rects are updated correctly...
Definition: render.c:40
A &#39;Con&#39; represents everything from the X11 root window down to a single X11 window.
Definition: data.h:591
int deco_height
Definition: render.h:22
int * sizes
Definition: render.h:29
struct render_params render_params
int children
Definition: render.h:27
Stores a rectangle, for example the size of a window, the child window etc.
Definition: data.h:148
int render_deco_height(void)
Definition: render.c:25