X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fwindow.h;h=09ab25b1b42e3d9bebb86e659bbe62228a0b74f2;hb=294c354ae3b1f26887c37f866f082e52c08d80f1;hp=325f8c97d6bbcb2b2bb1bdf7b3767fbb8255ef32;hpb=2ed9d7a0a96638bdf0614c1cf858719e7ced40d3;p=libs%2Fgui.git diff --git a/source/graphics/window.h b/source/graphics/window.h index 325f8c9..09ab25b 100644 --- a/source/graphics/window.h +++ b/source/graphics/window.h @@ -12,17 +12,15 @@ struct Monitor; struct WindowOptions { - int x; - int y; - bool user_position; - unsigned width; - unsigned height; - bool fullscreen; - const Monitor *fullscreen_monitor; - bool fullscreen_exclusive; - bool resizable; - - WindowOptions(); + int x = 0; + int y = 0; + bool user_position = false; + unsigned width = 640; + unsigned height = 480; + bool fullscreen = false; + const Monitor *fullscreen_monitor = 0; + bool fullscreen_exclusive = true; + bool resizable = false; }; class Window @@ -47,12 +45,12 @@ public: protected: Display &display; WindowOptions options; - bool visible; - bool kbd_autorepeat; - bool touch_input; - bool resizing; - bool moving; - Private *priv; + bool visible = false; + bool kbd_autorepeat = true; + bool touch_input = false; + bool resizing = false; + bool moving = false; + Private *priv = 0; public: Window(Display &, unsigned w, unsigned h, bool fs = false);