]> git.lizzy.rs Git - bspwm.git/blob - tree.h
360b26924c66cd105b51a2f32d8b00ea1d14e483
[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 void change_layout(monitor_t *, desktop_t *, layout_t);
14 node_t *first_extrema(node_t *);
15 node_t *second_extrema(node_t *);
16 node_t *next_leaf(node_t *, node_t *);
17 node_t *prev_leaf(node_t *, node_t *);
18 node_t *find_fence(node_t *, direction_t);
19 node_t *find_neighbor(node_t *, direction_t);
20 void get_opposite(direction_t, direction_t*);
21 node_t *nearest_neighbor(desktop_t *, node_t *, direction_t);
22 int tiled_area(node_t *);
23 node_t *find_biggest(desktop_t *);
24 void move_fence(node_t *, direction_t, fence_move_t);
25 void rotate_tree(node_t *, rotate_t);
26 void rotate_brother(node_t *);
27 void unrotate_tree(node_t *, rotate_t);
28 void unrotate_brother(node_t *);
29 void flip_tree(node_t *, flip_t);
30 int balance_tree(node_t *);
31 void arrange(monitor_t *, desktop_t *);
32 void apply_layout(monitor_t *, desktop_t *, node_t *, xcb_rectangle_t, xcb_rectangle_t);
33 void insert_node(monitor_t *, desktop_t *, node_t *);
34 void pseudo_focus(desktop_t *, node_t *);
35 void focus_node(monitor_t *, desktop_t *, node_t *);
36 void update_current(void);
37 void unlink_node(desktop_t *, node_t *);
38 void remove_node(desktop_t *, node_t *);
39 void destroy_tree(node_t *);
40 void swap_nodes(node_t *, node_t *);
41 void fit_monitor(monitor_t *, client_t *);
42 void transfer_node(monitor_t *, desktop_t *, monitor_t *, desktop_t *, node_t *);
43 void select_monitor(monitor_t *);
44 void select_desktop(monitor_t *, desktop_t *);
45 void cycle_monitor(cycle_dir_t);
46 void cycle_desktop(monitor_t *, desktop_t *, cycle_dir_t, skip_desktop_t);
47 void cycle_leaf(monitor_t *, desktop_t *, node_t *, cycle_dir_t, skip_client_t);
48 void nearest_leaf(monitor_t *, desktop_t *, node_t *, nearest_arg_t, skip_client_t);
49 void circulate_leaves(monitor_t *, desktop_t *, circulate_dir_t);
50 void update_vacant_state(node_t *);
51 void put_status(void);
52 void list_history(char *);
53 void list_monitors(list_option_t, char *);
54 void list_desktops(monitor_t *, list_option_t, unsigned int, char *);
55 void list(desktop_t *, node_t *, char *, unsigned int);
56 void restore_layout(char *);
57 void restore_history(char *);
58
59 #endif