diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-06 17:03:05 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-08-06 17:07:43 +0100 |
commit | f7ce70d139effc5553c4ed2fa604724413b9d9b2 (patch) | |
tree | 5a05620ed6a65cf999b4ea0f3976b803b44504c8 /include/YAGE/window.hpp | |
parent | 932537776012c33dcdb6ae34dbb419f13717804d (diff) | |
download | YAGE-f7ce70d139effc5553c4ed2fa604724413b9d9b2.tar.gz YAGE-f7ce70d139effc5553c4ed2fa604724413b9d9b2.zip |
Adding clang format with my style based on google
Diffstat (limited to 'include/YAGE/window.hpp')
-rw-r--r-- | include/YAGE/window.hpp | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/include/YAGE/window.hpp b/include/YAGE/window.hpp index beefae3d..c2003a94 100644 --- a/include/YAGE/window.hpp +++ b/include/YAGE/window.hpp @@ -13,43 +13,41 @@ #include <string> -namespace yage -{ +namespace yage { // window flags that can change it's appearance -enum WindowFlags : unsigned -{ - SHOWN=0x1, - HIDDEN=0x2, - FULLSCREEN=0x4, - BORDERLESS=0x8, +enum WindowFlags : unsigned { + SHOWN = 0x1, + HIDDEN = 0x2, + FULLSCREEN = 0x4, + BORDERLESS = 0x8, }; // window wrapper around SDL_Window pointer -class Window -{ +class Window { private: /// window handle - SDL_Window *window_=nullptr; - + SDL_Window* window_ = nullptr; + public: Window(); - Window(const Window&)=delete; - Window(Window&&)=delete; + Window(const Window&) = delete; + Window(Window&&) = delete; /// destroys the window handle - ~Window(); + ~Window(); - Window& operator=(const Window&)=delete; - Window& operator=(Window&&)=delete; + Window& operator=(const Window&) = delete; + Window& operator=(Window&&) = delete; /// create the window, initialize the handle and update the width and height - void create(const std::string &window_name, int width, int height, unsigned flags=WindowFlags::SHOWN); + void create(const std::string& window_name, int width, int height, + unsigned flags = WindowFlags::SHOWN); /// swap the buffer void swapBuffer(); /// clear buffer void clearBuffer(); }; - -} // namespace yage + +} // namespace yage #endif |