xglcomp

view src/cwin.h @ 7:03ca0fd49916

merged
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 30 Jan 2016 07:48:51 +0200
parents e831d38e6faa
children 1c0d056ec360
line source
1 #ifndef COMP_WIN_H_
2 #define COMP_WIN_H_
4 #include <X11/Xlib.h>
5 #include <X11/extensions/Xdamage.h>
6 #include "texture.h"
8 class CompWindow {
9 public:
10 Window xwin;
11 Pixmap xpixmap;
13 XWindowAttributes attr;
14 bool mapped;
16 Damage damage;
17 XRectangle damage_rect;
19 Texture tex;
21 CompWindow(Window xid = 0);
22 ~CompWindow();
23 };
25 void add_window(CompWindow *cwin);
26 bool remove_window(CompWindow *cwin);
27 bool have_window(CompWindow *cwin);
28 CompWindow *find_window_xid(Window xid);
29 CompWindow *find_window_pixmap(Pixmap pix);
31 int get_window_count();
32 CompWindow *get_window(int idx);
34 #endif // COMP_WIN_H_