Advertisement
Guest User

include/MyWindow.h

a guest
Feb 13th, 2011
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #ifndef MYWINDOW_H
  2. #define MYWINDOW_H
  3.  
  4. #include <X11/Xlib.h>
  5. #include <string>
  6.  
  7. class MyWindow
  8. {
  9. //=============================================
  10. public:
  11. MyWindow();
  12. MyWindow(int width, int height);
  13. MyWindow(bool fullscreen);
  14. MyWindow(int width, int height, bool fullscreen);
  15. virtual ~MyWindow();
  16. //=============================================
  17. static int default_width;
  18. static int default_height;
  19. static std::string default_caption;
  20. void show();
  21. //=============================================
  22. protected:
  23. void loop();
  24. //=============================================
  25. private:
  26. Display* display;
  27. Visual* visual;
  28. int depth;
  29. XSetWindowAttributes attributes;
  30. Window window;
  31. //=============================================
  32. };
  33. #endif // MYWINDOW_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement