2013-10-08 21:02:33 +02:00
|
|
|
#ifndef BSPWM_HISTORY_H
|
|
|
|
#define BSPWM_HISTORY_H
|
2013-09-19 15:02:49 +02:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2013-10-05 22:32:40 +02:00
|
|
|
history_t *make_history(monitor_t *m, desktop_t *d, node_t *n);
|
|
|
|
void history_add(monitor_t *m, desktop_t *d, node_t *n);
|
|
|
|
void history_transfer_node(monitor_t *m, desktop_t *d, node_t *n);
|
|
|
|
void history_transfer_desktop(monitor_t *m, desktop_t *d);
|
|
|
|
void history_swap_nodes(monitor_t *m1, desktop_t *d1, node_t *n1, monitor_t *m2, desktop_t *d2, node_t *n2);
|
|
|
|
void history_swap_desktops(monitor_t *m1, desktop_t *d1, monitor_t *m2, desktop_t *d2);
|
|
|
|
void history_remove(desktop_t *d, node_t *n);
|
2013-10-01 10:48:03 +02:00
|
|
|
void empty_history(void);
|
2013-10-05 22:32:40 +02:00
|
|
|
node_t *history_get_node(desktop_t *d, node_t *n);
|
|
|
|
desktop_t *history_get_desktop(monitor_t *m, desktop_t *d);
|
|
|
|
monitor_t *history_get_monitor(monitor_t *m);
|
2013-10-08 17:47:00 +02:00
|
|
|
bool history_find_node(history_dir_t hdi, coordinates_t *ref, coordinates_t *dst, client_select_t sel);
|
|
|
|
bool history_find_desktop(history_dir_t hdi, coordinates_t *ref, coordinates_t *dst, desktop_select_t sel);
|
|
|
|
bool history_find_monitor(history_dir_t hdi, coordinates_t *ref, coordinates_t *dst, desktop_select_t sel);
|
2013-10-05 22:32:40 +02:00
|
|
|
int history_rank(desktop_t *d, node_t *n);
|
2013-09-19 15:02:49 +02:00
|
|
|
|
|
|
|
#endif
|