]> git.sur5r.net Git - i3/i3/blob - include/resize.h
Merge branch 'next'
[i3/i3] / include / resize.h
1 /*
2  * vim:ts=8:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  *
6  * (c) 2009 Michael Stapelberg and contributors
7  *
8  * See file LICENSE for license information.
9  *
10  */
11
12 #ifndef _RESIZE_H
13 #define _RESIZE_H
14
15 #include <xcb/xcb.h>
16
17 typedef enum { O_HORIZONTAL, O_VERTICAL } resize_orientation_t;
18
19 /**
20  * Renders the resize window between the first/second container and resizes
21  * the table column/row.
22  *
23  */
24 int resize_graphical_handler(xcb_connection_t *conn, Workspace *ws, int first,
25                              int second, resize_orientation_t orientation,
26                              xcb_button_press_event_t *event);
27 /**
28  * Resizes a column/row by the given amount of pixels. Called by
29  * resize_graphical_handler (the user clicked) or parse_resize_command (the
30  * user issued the command)
31  *
32  */
33 void resize_container(xcb_connection_t *conn, Workspace *ws, int first, int second,
34                       resize_orientation_t orientation, int pixels);
35
36 #endif