Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MYWINDOW_H
- #define MYWINDOW_H
- #include <X11/Xlib.h>
- #include <string>
- class MyWindow
- {
- //=============================================
- public:
- MyWindow();
- MyWindow(int width, int height);
- MyWindow(bool fullscreen);
- MyWindow(int width, int height, bool fullscreen);
- virtual ~MyWindow();
- //=============================================
- static int default_width;
- static int default_height;
- static std::string default_caption;
- void show();
- //=============================================
- protected:
- void loop();
- //=============================================
- private:
- Display* display;
- Visual* visual;
- int depth;
- XSetWindowAttributes attributes;
- Window window;
- //=============================================
- };
- #endif // MYWINDOW_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement