bspwm/window.h

61 lines
2.6 KiB
C
Raw Normal View History

2013-10-08 11:58:54 +02:00
#ifndef WINDOW_H
#define WINDOW_H
2012-09-18 17:21:04 +02:00
#include <stdarg.h>
#include <xcb/xcb.h>
#include <xcb/xcb_event.h>
#include <xcb/xcb_icccm.h>
2012-09-18 17:21:04 +02:00
#include "types.h"
2013-10-05 22:32:40 +02:00
void manage_window(monitor_t *m, desktop_t *d, xcb_window_t win);
void window_draw_border(node_t *n, bool focused_window, bool focused_monitor);
pointer_state_t *make_pointer_state(void);
2013-10-05 22:32:40 +02:00
void center(xcb_rectangle_t a, xcb_rectangle_t *b);
bool contains(xcb_rectangle_t a, xcb_rectangle_t b);
bool is_inside(monitor_t *m, xcb_point_t pt);
xcb_rectangle_t get_rectangle(client_t *c);
void get_side_handle(client_t *c, direction_t dir, xcb_point_t *pt);
monitor_t *monitor_from_point(xcb_point_t pt);
monitor_t *underlying_monitor(client_t *c);
void adopt_orphans(void);
2013-10-05 22:32:40 +02:00
void window_close(node_t *n);
void window_kill(monitor_t *m, desktop_t *d, node_t *n);
2013-10-05 22:32:40 +02:00
void set_fullscreen(node_t *n, bool value);
void set_floating(node_t *n, bool value);
void set_locked(monitor_t *m, desktop_t *d, node_t *n, bool value);
void set_sticky(monitor_t *m, desktop_t *d, node_t *n, bool value);
void set_urgency(monitor_t *m, desktop_t *d, node_t *n, bool value);
void set_floating_atom(xcb_window_t win, uint32_t value);
void enable_floating_atom(xcb_window_t win);
void disable_floating_atom(xcb_window_t win);
uint32_t get_border_color(client_t *c, bool focused_window, bool focused_monitor);
void update_floating_rectangle(client_t *c);
void query_pointer(xcb_window_t *win, xcb_point_t *pt);
bool window_focus(xcb_window_t win);
void window_border_width(xcb_window_t win, uint32_t bw);
void window_move(xcb_window_t win, int16_t x, int16_t y);
void window_resize(xcb_window_t win, uint16_t w, uint16_t h);
void window_move_resize(xcb_window_t win, int16_t x, int16_t y, uint16_t w, uint16_t h);
void window_raise(xcb_window_t win);
void window_stack(xcb_window_t w1, xcb_window_t w2, uint32_t mode);
void window_above(xcb_window_t w1, xcb_window_t w2);
void window_below(xcb_window_t w1, xcb_window_t w2);
void window_lower(xcb_window_t win);
void window_set_visibility(xcb_window_t win, bool visible);
void window_hide(xcb_window_t win);
void window_show(xcb_window_t win);
void toggle_visibility(void);
2013-03-04 11:25:12 +01:00
void enable_motion_recorder(void);
void disable_motion_recorder(void);
void update_motion_recorder(void);
void update_input_focus(void);
2013-10-05 22:32:40 +02:00
void set_input_focus(node_t *n);
void clear_input_focus(void);
2013-10-05 22:32:40 +02:00
void center_pointer(monitor_t *m);
void get_atom(char *name, xcb_atom_t *atom);
void set_atom(xcb_window_t win, xcb_atom_t atom, uint32_t value);
bool has_proto(xcb_atom_t atom, xcb_icccm_get_wm_protocols_reply_t *protocols);
void send_client_message(xcb_window_t win, xcb_atom_t property, xcb_atom_t value);
2012-09-18 17:21:04 +02:00
#endif