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"
|
|
|
|
|
2012-12-14 15:43:22 +01:00
|
|
|
void center(xcb_rectangle_t, xcb_rectangle_t *);
|
2012-12-13 14:00:45 +01:00
|
|
|
bool contains(xcb_rectangle_t, xcb_rectangle_t);
|
|
|
|
bool might_cover(desktop_t *, node_t *);
|
2012-09-18 17:21:04 +02:00
|
|
|
bool locate_window(xcb_window_t, window_location_t *);
|
2012-10-17 16:18:40 +02:00
|
|
|
bool locate_desktop(char *, desktop_location_t *);
|
2012-11-08 18:24:17 +01:00
|
|
|
bool is_inside(monitor_t *, xcb_point_t);
|
|
|
|
monitor_t *underlying_monitor(client_t *);
|
2012-10-25 21:49:14 +02:00
|
|
|
void manage_window(monitor_t *, desktop_t *, xcb_window_t);
|
2012-10-25 21:02:04 +02:00
|
|
|
void adopt_orphans(void);
|
2012-10-17 16:18:40 +02:00
|
|
|
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-10-18 11:09:17 +02:00
|
|
|
void toggle_fullscreen(monitor_t *, 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-11-04 14:35:17 +01:00
|
|
|
void window_pseudo_raise(desktop_t *, 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-12-23 12:11:08 +01:00
|
|
|
void toggle_visibility(void);
|
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
|