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