X-Git-Url: http://git.localhorst.tv/?p=space.git;a=blobdiff_plain;f=src%2Fgraphics%2FWindow.h;fp=src%2Fgraphics%2FWindow.h;h=00418afd5d2cb2b40baf9a479d6f503201ceb6c8;hp=0000000000000000000000000000000000000000;hb=61c2d30a60d586cbe63885885c6a373c7713af1e;hpb=08d0e47634e1632c96ebe3308535a86f5e625b40 diff --git a/src/graphics/Window.h b/src/graphics/Window.h new file mode 100644 index 0000000..00418af --- /dev/null +++ b/src/graphics/Window.h @@ -0,0 +1,41 @@ +#ifndef SPACE_WINDOW_H_ +#define SPACE_WINDOW_H + +#include "Canvas.h" +#include "Vector.h" + +#include + + +namespace space { + +class Window { + +public: + static const Vector POS_CENTER; + static const Vector POS_UNDEF; + +public: + Window() : win(nullptr) { } + Window(const char *title, Vector pos, Vector size, Uint32 flags); + ~Window(); + + Window(Window &&); + Window &operator =(Window &&); + + Window(const Window &) = delete; + Window &operator =(const Window &) = delete; + +public: + Vector Size() const; + + Canvas CreateCanvas(Uint32 flags); + +private: + SDL_Window *win; + +}; + +} + +#endif