i3
gaps.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  */
8 #pragma once
9 
10 #include <stdbool.h>
11 #include "data.h"
12 
17 
18 /*
19  * Decides whether the container should be inset.
20  */
21 bool gaps_should_inset_con(Con *con, int children);
22 
23 /*
24  * Returns whether the given container has an adjacent container in the
25  * specified direction. In other words, this returns true if and only if
26  * the container is not touching the edge of the screen in that direction.
27  */
28 bool gaps_has_adjacent_container(Con *con, direction_t direction);
29 
35 
Definition: data.h:150
gaps_t calculate_effective_gaps(Con *con)
Calculates the effective gap sizes for a container.
Definition: gaps.c:16
gaps_t gaps_for_workspace(Con *ws)
Returns the configured gaps for this workspace based on the workspace name, number, and configured workspace gap assignments.
Definition: gaps.c:118
void gaps_reapply_workspace_assignments(void)
Re-applies all workspace gap assignments to existing workspaces after reloading the configuration fil...
Definition: gaps.c:160
bool gaps_has_adjacent_container(Con *con, direction_t direction)
Definition: gaps.c:90
direction_t
Definition: data.h:56
A &#39;Con&#39; represents everything from the X11 root window down to a single X11 window.
Definition: data.h:671
bool gaps_should_inset_con(Con *con, int children)
Definition: gaps.c:49