i3
resize.h
Go to the documentation of this file.
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  * resize.c: Interactive resizing.
8  *
9  */
10 #pragma once
11 
12 #include <config.h>
13 
14 bool resize_find_tiling_participants(Con **current, Con **other, direction_t direction, bool both_sides);
15 
16 void resize_graphical_handler(Con *first, Con *second, orientation_t orientation,
17  const xcb_button_press_event_t *event,
18  bool use_threshold);
19 
28 bool resize_neighboring_cons(Con *first, Con *second, int px, int ppt);
29 
35 double percent_for_1px(Con *con);
orientation_t
Definition: data.h:57
direction_t
Definition: data.h:53
bool resize_find_tiling_participants(Con **current, Con **other, direction_t direction, bool both_sides)
Definition: resize.c:70
void resize_graphical_handler(Con *first, Con *second, orientation_t orientation, const xcb_button_press_event_t *event, bool use_threshold)
Definition: resize.c:171
double percent_for_1px(Con *con)
Calculate the minimum percent needed for the given container to be at least 1 pixel.
Definition: resize.c:129
bool resize_neighboring_cons(Con *first, Con *second, int px, int ppt)
Resize the two given containers using the given amount of pixels or percentage points.
Definition: resize.c:144
A 'Con' represents everything from the X11 root window down to a single X11 window.
Definition: data.h:613