]> git.lizzy.rs Git - bspwm.git/blob - tree.h
Handle the node's birth mode consistently
[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 *, node_t *);
16 node_t *prev_leaf(node_t *, node_t *);
17 node_t *find_fence(node_t *, direction_t);
18 node_t *find_neighbor(node_t *, direction_t);
19 void get_opposite(direction_t, direction_t*);
20 node_t *nearest_neighbor(desktop_t *, node_t *, direction_t);
21 int tiled_area(node_t *);
22 node_t *find_by_area(desktop_t *, swap_arg_t);
23 void move_fence(node_t *, direction_t, fence_move_t);
24 void rotate_tree(node_t *, rotate_t);
25 void flip_tree(node_t *, flip_t);
26 int balance_tree(node_t *);
27 void arrange(monitor_t *, desktop_t *);
28 void apply_layout(monitor_t *, desktop_t *, node_t *, xcb_rectangle_t, xcb_rectangle_t);
29 void insert_node(monitor_t *, desktop_t *, node_t *);
30 void focus_node(monitor_t *, desktop_t *, node_t *, bool);
31 void update_current(void);
32 void unlink_node(desktop_t *, node_t *);
33 void remove_node(desktop_t *, node_t *);
34 void destroy_tree(node_t *);
35 void swap_nodes(node_t *, node_t *);
36 void fit_monitor(monitor_t *, client_t *);
37 void transfer_node(monitor_t *, desktop_t *, monitor_t *, desktop_t *, node_t *);
38 void select_monitor(monitor_t *);
39 void select_desktop(desktop_t *);
40 void cycle_monitor(cycle_dir_t);
41 void cycle_desktop(monitor_t *, desktop_t *, cycle_dir_t, skip_desktop_t);
42 void cycle_leaf(monitor_t *, desktop_t *, node_t *, cycle_dir_t, skip_client_t);
43 void nearest_leaf(monitor_t *, desktop_t *, node_t *, nearest_arg_t, skip_client_t);
44 void circulate_leaves(monitor_t *, desktop_t *, circulate_dir_t);
45 void update_vacant_state(node_t *);
46 void put_status(void);
47 void list_history(desktop_t *, char *);
48 void list_monitors(list_option_t, char *);
49 void list_desktops(monitor_t *, list_option_t, unsigned int, char *);
50 void list(desktop_t *, node_t *, char *, unsigned int);
51 void restore(char *);
52
53 #endif