xglcomp

view src/cwin.h @ 3:e831d38e6faa

textures
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 22 Jan 2016 07:46:47 +0200
parents 876efea9424c
children 03ca0fd49916
line source
1 #ifndef COMP_WIN_H_
2 #define COMP_WIN_H_
4 #include <X11/Xlib.h>
5 #include "texture.h"
7 class CompWindow {
8 public:
9 Window xwin;
10 Pixmap xpixmap;
12 XWindowAttributes attr;
13 bool mapped;
15 Texture tex;
17 CompWindow(Window xid = 0);
18 };
20 void add_window(CompWindow *cwin);
21 bool remove_window(CompWindow *cwin);
22 bool have_window(CompWindow *cwin);
23 CompWindow *find_window_xid(Window xid);
24 CompWindow *find_window_pixmap(Pixmap pix);
26 int get_window_count();
27 CompWindow *get_window(int idx);
29 #endif // COMP_WIN_H_