mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-01 17:55:48 +00:00
add fullscreen toggle
This commit is contained in:
@@ -193,4 +193,23 @@ bool RAY::Window::isReady() const
|
||||
void RAY::Window::setExitKey(RAY::Controller::Keyboard::Key key)
|
||||
{
|
||||
SetExitKey(key);
|
||||
}
|
||||
|
||||
unsigned RAY::Window::getConfigFlags(void) const
|
||||
{
|
||||
return this->_flags;
|
||||
}
|
||||
|
||||
RAY::Window &RAY::Window::setConfigFlags(unsigned flags)
|
||||
{
|
||||
if (this->_isOpen)
|
||||
SetWindowState(flags);
|
||||
this->_flags = flags;
|
||||
return *this;
|
||||
}
|
||||
|
||||
RAY::Window &RAY::Window::toggleFullscreen()
|
||||
{
|
||||
ToggleFullscreen();
|
||||
return *this;
|
||||
}
|
||||
@@ -139,6 +139,14 @@ namespace RAY {
|
||||
//! @info Calling this function override the previous closing key
|
||||
void setExitKey(Controller::Keyboard::Key key);
|
||||
|
||||
//! @return the configuration flgs for the window
|
||||
unsigned getConfigFlags(void) const;
|
||||
|
||||
//! @param flag the configuration flgs for the window
|
||||
RAY::Window &setConfigFlags(unsigned flags);
|
||||
|
||||
//! @brief set window to fullscreen
|
||||
RAY::Window &toggleFullscreen();
|
||||
|
||||
private:
|
||||
//! @brief Creates window, and opens it if openNow is set to true
|
||||
|
||||
Reference in New Issue
Block a user