#ifndef WINDOW_H #define WINDOW_H #include "command.h" #include struct Point{ int x, y; }; class Window{ public: Window( const char * title, int w, int h, int x = SDL_WINDOWPOS_UNDEFINED, int y = SDL_WINDOWPOS_UNDEFINED ); ~Window(); SDL_Window* window(); Command* handleEvent( SDL_Event e ); void toggleFullscreen(); Point getSize(); private: SDL_Window* window_; bool fullscreen_; bool closed_; bool focused_; Command* close; Command* unfocus; Command* focus; Command* nop; }; #endif