From 6fe57dec0d8c5845b03cc86fb9931840dd6e2293 Mon Sep 17 00:00:00 2001 From: boost2017 Date: Sat, 13 Jan 2018 02:03:46 -0500 Subject: [PATCH] Add to ToggleFullscreen() header file --- SDL2pp/Window.hh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SDL2pp/Window.hh b/SDL2pp/Window.hh index 1679567..52b590d 100644 --- a/SDL2pp/Window.hh +++ b/SDL2pp/Window.hh @@ -302,6 +302,18 @@ public: //////////////////////////////////////////////////////////// Window& SetFullscreen(Uint32 flags); + //////////////////////////////////////////////////////////// + /// \brief Toggle the window's fullscreen state + /// + /// \returns Reference to self + /// + /// \throws SDL2pp::Exception + /// + /// \see http://wiki.libsdl.org/SDL_SetWindowFullscreen + /// + //////////////////////////////////////////////////////////// + Window& ToggleFullscreen(); + //////////////////////////////////////////////////////////// /// \brief Set the size of a window's client area ///