]> git.lizzy.rs Git - bspwm.git/blob - tree.h
5d1ca3d4520f3799a2cf44eb0d8c70fc16b24e60
[bspwm.git] / tree.h
1 #ifndef _TREE_H
2 #define _TREE_H
3
4 #define INC_EXP 0.9
5 #define DEC_EXP 1.1
6
7 bool is_leaf(node_t *);
8 bool is_tiled(client_t *);
9 bool is_floating(client_t *);
10 bool is_first_child(node_t *);
11 bool is_second_child(node_t *);
12 void change_split_ratio(node_t *, value_change_t);
13 node_t *first_extrema(node_t *);
14 node_t *second_extrema(node_t *);
15 node_t *next_leaf(node_t *);
16 node_t *prev_leaf(node_t *);
17 node_t *find_fence(node_t *, direction_t);
18 node_t *find_neighbor(node_t *, direction_t);
19 void move_fence(node_t *, direction_t, fence_move_t);
20 void rotate_tree(node_t *, rotate_t);
21 void magnetise_tree(node_t *, corner_t);
22 void arrange(monitor_t *, desktop_t *);
23 void apply_layout(monitor_t *, desktop_t *, node_t *, xcb_rectangle_t, xcb_rectangle_t);
24 void insert_node(monitor_t *, desktop_t *, node_t *);
25 void dump_tree(desktop_t *, node_t *, char *, unsigned int);
26 void list_desktops(monitor_t *, list_option_t, unsigned int, char *);
27 void list_monitors(list_option_t, char *);
28 void focus_node(monitor_t *, desktop_t *, node_t *, bool);
29 void update_current(void);
30 void unlink_node(desktop_t *, node_t *);
31 void remove_node(desktop_t *, node_t *);
32 void swap_nodes(node_t *, node_t *);
33 void fit_monitor(monitor_t *, client_t *);
34 void translate_coordinates(monitor_t *, monitor_t *, client_t *);
35 void transfer_node(monitor_t *, desktop_t *, monitor_t *, desktop_t *, node_t *);
36 void select_monitor(monitor_t *);
37 void select_desktop(desktop_t *);
38 void cycle_monitor(cycle_dir_t);
39 void cycle_desktop(monitor_t *, desktop_t *, cycle_dir_t, skip_desktop_t);
40 void cycle_leaf(monitor_t *, desktop_t *, node_t *, cycle_dir_t, skip_client_t);
41 void nearest_leaf(monitor_t *, desktop_t *, node_t *, nearest_arg_t, skip_client_t);
42 void circulate_leaves(monitor_t *, desktop_t *, circulate_dir_t);
43 void update_vacant_state(node_t *);
44 void add_desktop(monitor_t *, char *);
45 void add_monitor(xcb_rectangle_t *);
46 monitor_t *find_monitor(char *);
47
48 #endif