mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-05 11:56:00 -04:00
Implement Window::SetBordered
This commit is contained in:
parent
50a73c1377
commit
3ac98e50f6
@ -219,4 +219,9 @@ Window& Window::SetIcon(const Surface& icon) {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Window& Window::SetBordered(bool bordered) {
|
||||||
|
SDL_SetWindowBordered(window_, bordered ? SDL_TRUE : SDL_FALSE);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -488,6 +488,16 @@ public:
|
|||||||
///
|
///
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
Window& SetIcon(const Surface& icon);
|
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user