/* * vim:ts=4:sw=4:expandtab * * i3 - an improved tiling window manager * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * */ #pragma once #include #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);