xglcomp
annotate 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 |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef COMP_WIN_H_ |
nuclear@0 | 2 #define COMP_WIN_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include <X11/Xlib.h> |
nuclear@3 | 5 #include "texture.h" |
nuclear@0 | 6 |
nuclear@2 | 7 class CompWindow { |
nuclear@2 | 8 public: |
nuclear@0 | 9 Window xwin; |
nuclear@0 | 10 Pixmap xpixmap; |
nuclear@0 | 11 |
nuclear@2 | 12 XWindowAttributes attr; |
nuclear@3 | 13 bool mapped; |
nuclear@3 | 14 |
nuclear@3 | 15 Texture tex; |
nuclear@2 | 16 |
nuclear@2 | 17 CompWindow(Window xid = 0); |
nuclear@0 | 18 }; |
nuclear@0 | 19 |
nuclear@0 | 20 void add_window(CompWindow *cwin); |
nuclear@2 | 21 bool remove_window(CompWindow *cwin); |
nuclear@0 | 22 bool have_window(CompWindow *cwin); |
nuclear@0 | 23 CompWindow *find_window_xid(Window xid); |
nuclear@1 | 24 CompWindow *find_window_pixmap(Pixmap pix); |
nuclear@0 | 25 |
nuclear@0 | 26 int get_window_count(); |
nuclear@0 | 27 CompWindow *get_window(int idx); |
nuclear@0 | 28 |
nuclear@0 | 29 #endif // COMP_WIN_H_ |