diff --git a/SDL2pp/Window.cc b/SDL2pp/Window.cc index 9f77d7c..b63660f 100644 --- a/SDL2pp/Window.cc +++ b/SDL2pp/Window.cc @@ -219,4 +219,9 @@ Window& Window::SetIcon(const Surface& icon) { return *this; } +Window& Window::SetBordered(bool bordered) { + SDL_SetWindowBordered(window_, bordered ? SDL_TRUE : SDL_FALSE); + return *this; +} + } diff --git a/SDL2pp/Window.hh b/SDL2pp/Window.hh index 7506920..1159e2b 100644 --- a/SDL2pp/Window.hh +++ b/SDL2pp/Window.hh @@ -488,6 +488,16 @@ public: /// //////////////////////////////////////////////////////////// Window& SetIcon(const Surface& icon); + + //////////////////////////////////////////////////////////// + /// \brief Set the border state of a window + /// + /// \param[in] bordered False to remove border, true to add border + /// + /// \see SDL_SetWindowBordered + /// + //////////////////////////////////////////////////////////// + Window& SetBordered(bool bordered = true); }; }