diff --git a/MiniEngine.cpp b/MiniEngine.cpp index 8303ab8..e3d1478 100644 --- a/MiniEngine.cpp +++ b/MiniEngine.cpp @@ -829,6 +829,16 @@ namespace MiniEngine return std::string(SDL_GetWindowTitle(_get())); } + void Window::setGrab(bool isGrab) + { + SDL_SetWindowGrab(_get(),isGrab?SDL_TRUE:SDL_FALSE); + } + + bool Window::getGrab() + { + return (SDL_GetWindowGrab(_get())==SDL_TRUE)?true:false; + } + void Window::setResizable(bool resizable) { //SDL_SetWindowResizable(_get(), resizable?SDL_TRUE:SDL_FALSE); diff --git a/MiniEngine.h b/MiniEngine.h index da5154a..176094a 100644 --- a/MiniEngine.h +++ b/MiniEngine.h @@ -268,6 +268,9 @@ namespace MiniEngine void setTitle(std::string Title); std::string getTitle(); + void setGrab(bool); + bool getGrab(); + void setResizable(bool resizable); /// Use UTF8 in Title and Message please.