22 #ifndef BACKENDS_PLATFORM_SDL_WINDOW_H 23 #define BACKENDS_PLATFORM_SDL_WINDOW_H 25 #include "backends/platform/sdl/sdl-sys.h" 27 #include "common/rect.h" 28 #include "common/str.h" 104 float getSdlDpiScalingFactor()
const;
111 bool mouseIsGrabbed()
const {
112 #if SDL_VERSION_ATLEAST(2, 0, 0) 114 return SDL_GetWindowGrab(_window) == SDL_TRUE;
117 return _inputGrabState;
120 bool mouseIsLocked()
const {
121 #if SDL_VERSION_ATLEAST(2, 0, 0) 122 return SDL_GetRelativeMouseMode() == SDL_TRUE;
124 return _inputLockState;
130 bool _inputGrabState, _inputLockState;
134 void getDisplayDpi(
float *dpi,
float *defaultDpi)
const;
136 #if SDL_VERSION_ATLEAST(2, 0, 0) 141 SDL_Window *getSDLWindow()
const {
return _window; }
146 int getDisplayIndex()
const;
156 virtual bool createOrUpdateWindow(
int width,
int height, uint32 flags);
161 void destroyWindow();
void setMouseRect(const Common::Rect &rect)
Definition: sdl-window.h:180
void setWindowCaption(const Common::String &caption)
bool warpMouseInWindow(int x, int y)
bool lockMouse(bool lock)
bool hasMouseFocus() const
void grabMouse(bool grab)
bool getSDLWMInformation(SDL_SysWMinfo *info) const
Definition: sdl-window.h:30
virtual float getDpiScalingFactor() const
virtual void setupIcon()
Definition: sdl-window.h:182