X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=tree.h;h=360b26924c66cd105b51a2f32d8b00ea1d14e483;hb=7fb314a3d48916f376bd9dc7fde80d474a7e91f2;hp=ad076e6ad472bfa8a763ee231faeb8bc7175ac89;hpb=85c2983df21db8660901e8865ca0e28783f2eb82;p=bspwm.git diff --git a/tree.h b/tree.h index ad076e6..360b269 100644 --- a/tree.h +++ b/tree.h @@ -10,18 +10,29 @@ bool is_floating(client_t *); bool is_first_child(node_t *); bool is_second_child(node_t *); void change_split_ratio(node_t *, value_change_t); +void change_layout(monitor_t *, desktop_t *, layout_t); node_t *first_extrema(node_t *); node_t *second_extrema(node_t *); -node_t *next_leaf(node_t *); -node_t *prev_leaf(node_t *); +node_t *next_leaf(node_t *, node_t *); +node_t *prev_leaf(node_t *, node_t *); node_t *find_fence(node_t *, direction_t); node_t *find_neighbor(node_t *, direction_t); +void get_opposite(direction_t, direction_t*); +node_t *nearest_neighbor(desktop_t *, node_t *, direction_t); +int tiled_area(node_t *); +node_t *find_biggest(desktop_t *); void move_fence(node_t *, direction_t, fence_move_t); void rotate_tree(node_t *, rotate_t); +void rotate_brother(node_t *); +void unrotate_tree(node_t *, rotate_t); +void unrotate_brother(node_t *); +void flip_tree(node_t *, flip_t); +int balance_tree(node_t *); void arrange(monitor_t *, desktop_t *); void apply_layout(monitor_t *, desktop_t *, node_t *, xcb_rectangle_t, xcb_rectangle_t); void insert_node(monitor_t *, desktop_t *, node_t *); -void focus_node(monitor_t *, desktop_t *, node_t *, bool); +void pseudo_focus(desktop_t *, node_t *); +void focus_node(monitor_t *, desktop_t *, node_t *); void update_current(void); void unlink_node(desktop_t *, node_t *); void remove_node(desktop_t *, node_t *); @@ -30,7 +41,7 @@ void swap_nodes(node_t *, node_t *); void fit_monitor(monitor_t *, client_t *); void transfer_node(monitor_t *, desktop_t *, monitor_t *, desktop_t *, node_t *); void select_monitor(monitor_t *); -void select_desktop(desktop_t *); +void select_desktop(monitor_t *, desktop_t *); void cycle_monitor(cycle_dir_t); void cycle_desktop(monitor_t *, desktop_t *, cycle_dir_t, skip_desktop_t); void cycle_leaf(monitor_t *, desktop_t *, node_t *, cycle_dir_t, skip_client_t); @@ -38,9 +49,11 @@ void nearest_leaf(monitor_t *, desktop_t *, node_t *, nearest_arg_t, skip_client void circulate_leaves(monitor_t *, desktop_t *, circulate_dir_t); void update_vacant_state(node_t *); void put_status(void); +void list_history(char *); void list_monitors(list_option_t, char *); void list_desktops(monitor_t *, list_option_t, unsigned int, char *); void list(desktop_t *, node_t *, char *, unsigned int); -void restore(char *); +void restore_layout(char *); +void restore_history(char *); #endif