i3
Main Page
Data Structures
Files
File List
Globals
include
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
/* This is used to keep a state to pass around when rendering a con in render_con(). */
14
typedef
struct
render_params
{
15
/* A copy of the coordinates of the container which is being rendered. */
16
int
x
;
17
int
y
;
18
19
/* The computed height for decorations. */
20
int
deco_height
;
21
/* Container rect, subtract container border. This is the actually usable space
22
* inside this container for clients. */
23
Rect
rect
;
24
/* The number of children of the container which is being rendered. */
25
int
children
;
26
/* A precalculated list of sizes of each child. */
27
int
*
sizes
;
28
}
render_params
;
29
38
void
render_con
(
Con
*con,
bool
render_fullscreen);
39
40
/*
41
* Returns the height for the decorations
42
*/
43
int
render_deco_height
(
void
);
render_params::sizes
int * sizes
Definition:
render.h:27
render_params::y
int y
Definition:
render.h:17
Rect
Stores a rectangle, for example the size of a window, the child window etc.
Definition:
data.h:141
render_params::x
int x
Definition:
render.h:16
render_params::rect
Rect rect
Definition:
render.h:23
Con
A 'Con' represents everything from the X11 root window down to a single X11 window.
Definition:
data.h:544
render_params
struct render_params render_params
render_con
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:42
render_params::deco_height
int deco_height
Definition:
render.h:20
render_params::children
int children
Definition:
render.h:25
render_deco_height
int render_deco_height(void)
Definition:
render.c:27
render_params
Definition:
render.h:14
Generated by
1.8.5