Implement Window::SetBordered

This commit is contained in:
Dmitry Marakasov 2015-01-21 23:13:41 +03:00
parent 50a73c1377
commit 3ac98e50f6
2 changed files with 15 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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);
};
}