]> git.lizzy.rs Git - bspwm.git/blob - tree.h
Merge pull request #36 from Stebalien/fix-monitor-selection
[bspwm.git] / tree.h
1 #ifndef _TREE_H
2 #define _TREE_H
3
4 #define GROWTH_FACTOR  1.1
5
6 void arrange(monitor_t *, desktop_t *);
7 void apply_layout(monitor_t *, desktop_t *, node_t *, xcb_rectangle_t, xcb_rectangle_t);
8 void focus_node(monitor_t *, desktop_t *, node_t *);
9 void insert_node(monitor_t *, desktop_t *, node_t *, node_t *);
10 void unlink_node(desktop_t *, node_t *);
11 void remove_node(desktop_t *, node_t *);
12 void swap_nodes(node_t *, node_t *);
13 void pseudo_focus(desktop_t *, node_t *);
14 void update_current(void);
15 node_t *find_fence(node_t *, direction_t);
16 node_t *nearest_neighbor(desktop_t *, node_t *, direction_t);
17 node_t *nearest_from_distance(desktop_t *, node_t *, direction_t);
18 node_t *nearest_from_history(focus_history_t *, node_t *, direction_t);
19 node_t *find_biggest(desktop_t *);
20 bool is_leaf(node_t *);
21 bool is_tiled(client_t *);
22 bool is_floating(client_t *);
23 bool is_first_child(node_t *);
24 bool is_second_child(node_t *);
25 void change_split_ratio(node_t *, value_change_t);
26 void change_layout(monitor_t *, desktop_t *, layout_t);
27 void reset_mode(coordinates_t *);
28 node_t *first_extrema(node_t *);
29 node_t *second_extrema(node_t *);
30 node_t *next_leaf(node_t *, node_t *);
31 node_t *prev_leaf(node_t *, node_t *);
32 bool is_adjacent(node_t *, node_t *, direction_t);
33 void get_opposite(direction_t, direction_t *);
34 int tiled_area(node_t *);
35 void move_fence(node_t *, direction_t, fence_move_t);
36 void rotate_tree(node_t *, int);
37 void rotate_brother(node_t *);
38 void unrotate_tree(node_t *, int);
39 void unrotate_brother(node_t *);
40 void flip_tree(node_t *, flip_t);
41 int balance_tree(node_t *);
42 void destroy_tree(node_t *);
43 void fit_monitor(monitor_t *, client_t *);
44 void transfer_node(monitor_t *, desktop_t *, monitor_t *, desktop_t *, node_t *);
45 void transplant_node(monitor_t *, desktop_t *, node_t *, node_t *);
46 void select_monitor(monitor_t *);
47 void select_desktop(monitor_t *, desktop_t *);
48 monitor_t *nearest_monitor(monitor_t *, direction_t);
49 node_t *closest_node(desktop_t *, node_t *, cycle_dir_t, client_select_t);
50 desktop_t *closest_desktop(monitor_t *, desktop_t *, cycle_dir_t, desktop_select_t);
51 monitor_t *closest_monitor(monitor_t *, cycle_dir_t, desktop_select_t);
52 void circulate_leaves(monitor_t *, desktop_t *, circulate_dir_t);
53 void update_vacant_state(node_t *);
54
55 #endif