2012-09-18 17:21:04 +02:00
|
|
|
#ifndef _WINDOW_H
|
|
|
|
#define _WINDOW_H
|
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <xcb/xcb.h>
|
|
|
|
#include <xcb/xcb_event.h>
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
bool locate_window(xcb_window_t, window_location_t *);
|
2012-10-17 16:18:40 +02:00
|
|
|
bool locate_desktop(char *, desktop_location_t *);
|
|
|
|
void window_draw_border(node_t *, bool, bool);
|
2012-09-28 15:59:29 +02:00
|
|
|
void window_close(node_t *);
|
|
|
|
void window_kill(desktop_t *, node_t *);
|
2012-09-18 17:21:04 +02:00
|
|
|
void toggle_fullscreen(client_t *);
|
2012-09-20 23:32:32 +02:00
|
|
|
void toggle_floating(node_t *);
|
|
|
|
void toggle_locked(client_t *);
|
2012-09-18 17:21:04 +02:00
|
|
|
void window_border_width(xcb_window_t, uint32_t);
|
2012-09-22 15:10:59 +02:00
|
|
|
void window_move(xcb_window_t, int16_t, int16_t);
|
2012-09-18 17:21:04 +02:00
|
|
|
void window_move_resize(xcb_window_t, int16_t, int16_t, uint16_t, uint16_t);
|
|
|
|
void window_raise(xcb_window_t);
|
2012-09-19 22:59:13 +02:00
|
|
|
void window_lower(xcb_window_t);
|
2012-09-21 19:05:42 +02:00
|
|
|
void window_set_visibility(xcb_window_t, bool);
|
|
|
|
void window_hide(xcb_window_t);
|
|
|
|
void window_show(xcb_window_t);
|
2012-10-17 16:18:40 +02:00
|
|
|
uint32_t get_main_border_color(client_t *, bool, bool);
|
2012-09-22 15:10:59 +02:00
|
|
|
void update_floating_rectangle(client_t *);
|
2012-09-20 23:32:32 +02:00
|
|
|
void list_windows(char *);
|
2012-09-18 17:21:04 +02:00
|
|
|
|
|
|
|
#endif
|