2011-02-14 23:05:20 +01:00
|
|
|
/*
|
|
|
|
* vim:ts=4:sw=4:expandtab
|
2011-10-25 22:19:38 +02:00
|
|
|
*
|
|
|
|
* i3 - an improved dynamic tiling window manager
|
2015-04-04 02:17:56 +02:00
|
|
|
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
|
2011-10-25 22:19:38 +02:00
|
|
|
*
|
|
|
|
* move.c: Moving containers into some direction.
|
|
|
|
*
|
2011-02-14 23:05:20 +01:00
|
|
|
*/
|
2013-12-29 03:11:50 +01:00
|
|
|
#pragma once
|
2011-02-14 23:05:20 +01:00
|
|
|
|
2016-10-11 09:13:35 +02:00
|
|
|
#include <config.h>
|
|
|
|
|
2011-02-14 23:05:20 +01:00
|
|
|
/**
|
2014-06-19 14:09:31 +02:00
|
|
|
* Moves the given container in the given direction (TOK_LEFT, TOK_RIGHT,
|
2011-02-14 23:05:20 +01:00
|
|
|
* TOK_UP, TOK_DOWN from cmdparse.l)
|
|
|
|
*
|
|
|
|
*/
|
2014-06-19 14:09:31 +02:00
|
|
|
void tree_move(Con *con, int direction);
|
2017-09-13 02:54:40 +02:00
|
|
|
|
|
|
|
typedef enum { BEFORE,
|
|
|
|
AFTER } position_t;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This function detaches 'con' from its parent and inserts it either before or
|
|
|
|
* after 'target'.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void insert_con_into(Con *con, Con *target, position_t position);
|