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 ///