blob: cb4d0093c1d18e509dc896c977f296c9e6374736 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
*
*/
#pragma once
#include <stdbool.h>
#include "data.h"
/**
* Calculates the effective gap sizes for a container.
*/
gaps_t calculate_effective_gaps(Con *con);
/*
* Decides whether the container should be inset.
*/
bool gaps_should_inset_con(Con *con, int children);
/*
* Returns whether the given container has an adjacent container in the
* specified direction. In other words, this returns true if and only if
* the container is not touching the edge of the screen in that direction.
*/
bool gaps_has_adjacent_container(Con *con, direction_t direction);
/**
* Returns the configured gaps for this workspace based on the workspace name,
* number, and configured workspace gap assignments.
*/
gaps_t gaps_for_workspace(Con *ws);
/**
* Re-applies all workspace gap assignments to existing workspaces after
* reloading the configuration file.
*
*/
void gaps_reapply_workspace_assignments(void);
|