]> git.lizzy.rs Git - bspwm.git/blob - tree.h
Add the older/newer selectors to all the objects
[bspwm.git] / tree.h
1 #ifndef TREE_H
2 #define TREE_H
3
4 void arrange(monitor_t *m, desktop_t *d);
5 void apply_layout(monitor_t *m, desktop_t *d, node_t *n, xcb_rectangle_t rect, xcb_rectangle_t root_rect);
6 void insert_node(monitor_t *m, desktop_t *d, node_t *n, node_t *f);
7 void pseudo_focus(desktop_t *d, node_t *n);
8 void focus_node(monitor_t *m, desktop_t *d, node_t *n);
9 void update_current(void);
10 node_t *make_node(void);
11 client_t *make_client(xcb_window_t win);
12 bool is_visible(desktop_t *d, node_t *n);
13 bool is_leaf(node_t *n);
14 bool is_tiled(client_t *c);
15 bool is_floating(client_t *c);
16 bool is_first_child(node_t *n);
17 bool is_second_child(node_t *n);
18 void change_split_ratio(node_t *n, value_change_t chg);
19 void reset_mode(coordinates_t *loc);
20 node_t *brother_tree(node_t *n);
21 node_t *closest_visible(desktop_t *d, node_t *n);
22 node_t *first_extrema(node_t *n);
23 node_t *second_extrema(node_t *n);
24 node_t *next_leaf(node_t *n, node_t *r);
25 node_t *prev_leaf(node_t *n, node_t *r);
26 node_t *next_visible_leaf(desktop_t *d, node_t *n, node_t *r);
27 node_t *prev_visible_leaf(desktop_t *d, node_t *n, node_t *r);
28 bool is_adjacent(node_t *a, node_t *b, direction_t dir);
29 node_t *find_fence(node_t *n, direction_t dir);
30 node_t *nearest_neighbor(monitor_t *m, desktop_t *d, node_t *n, direction_t dir, client_select_t sel);
31 node_t *nearest_from_history(monitor_t *m, desktop_t *d, node_t *n, direction_t dir, client_select_t sel);
32 node_t *nearest_from_distance(monitor_t *m, desktop_t *d, node_t *n, direction_t dir, client_select_t sel);
33 void get_opposite(direction_t src, direction_t *dst);
34 int tiled_area(node_t *n);
35 node_t *find_biggest(monitor_t *m, desktop_t *d, node_t *n, client_select_t sel);
36 void move_fence(node_t *n, direction_t dir, fence_move_t mov);
37 void rotate_tree(node_t *n, int deg);
38 void rotate_brother(node_t *n);
39 void unrotate_tree(node_t *n, int rot);
40 void unrotate_brother(node_t *n);
41 void flip_tree(node_t *n, flip_t flp);
42 int balance_tree(node_t *n);
43 void unlink_node(monitor_t *m, desktop_t *d, node_t *n);
44 void remove_node(monitor_t *m, desktop_t *d, node_t *n);
45 void destroy_tree(node_t *n);
46 bool swap_nodes(monitor_t *m1, desktop_t *d1, node_t *n1, monitor_t *m2, desktop_t *d2, node_t *n2);
47 bool transfer_node(monitor_t *ms, desktop_t *ds, node_t *ns, monitor_t *md, desktop_t *dd, node_t *nd);
48 node_t *closest_node(monitor_t *m, desktop_t *d, node_t *n, cycle_dir_t dir, client_select_t sel);
49 void circulate_leaves(monitor_t *m, desktop_t *d, circulate_dir_t dir);
50 void update_vacant_state(node_t *n);
51
52 #endif