#ifndef NOISE_GENERATOR_WINDOWMANAGER_HPP #define NOISE_GENERATOR_WINDOWMANAGER_HPP #include #include #include "err.h" class WindowManager { public: WindowManager(int width, int height); ~WindowManager(); u_int32_t *get_image_addr() { return img; } void display_image(); void loop(); private: u_int32_t *img; int WindowX; int WindowY; int WindowWidth; int WindowHeight; int BorderWidth; int WindowDepth; int WindowClass; Visual *WindowVisual; int AttributeValueMask; XSetWindowAttributes WindowAttributes; Window MainWindow; Display *MainDisplay; Window RootWindow; Atom wmDelete; bool isWindowOpen; }; #endif //NOISE_GENERATOR_WINDOWMANAGER_HPP