i3
gaps.h
Go to the documentation of this file.
1/*
2 * vim:ts=4:sw=4:expandtab
3 *
4 * i3 - an improved 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 */
21bool 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 */
28bool gaps_has_adjacent_container(Con *con, direction_t direction);
29
35
direction_t
Definition data.h:56
void gaps_reapply_workspace_assignments(void)
Re-applies all workspace gap assignments to existing workspaces after reloading the configuration fil...
Definition gaps.c:166
gaps_t calculate_effective_gaps(Con *con)
Calculates the effective gap sizes for a container.
Definition gaps.c:16
bool gaps_has_adjacent_container(Con *con, direction_t direction)
Definition gaps.c:92
bool gaps_should_inset_con(Con *con, int children)
Definition gaps.c:51
gaps_t gaps_for_workspace(Con *ws)
Returns the configured gaps for this workspace based on the workspace name, number,...
Definition gaps.c:124
Definition data.h:146
A 'Con' represents everything from the X11 root window down to a single X11 window.
Definition data.h:643