]> git.sur5r.net Git - i3/i3/blob - include/move.h
Merge branch 'release-4.16.1'
[i3/i3] / include / move.h
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  * move.c: Moving containers into some direction.
8  *
9  */
10 #pragma once
11
12 #include <config.h>
13
14 /**
15  * Moves the given container in the given direction (TOK_LEFT, TOK_RIGHT,
16  * TOK_UP, TOK_DOWN from cmdparse.l)
17  *
18  */
19 void tree_move(Con *con, int direction);
20
21 typedef enum { BEFORE,
22                AFTER } position_t;
23
24 /**
25  * This function detaches 'con' from its parent and inserts it either before or
26  * after 'target'.
27  *
28  */
29 void insert_con_into(Con *con, Con *target, position_t position);