From 19590df462aa90d27c6adfb200191f0a339ce9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 9 Feb 2016 16:09:57 +0100 Subject: [PATCH] Platform: added iOS HiDPI and menu bar toggles to Sdl2Application. Except for the documentation the project is now ready for iOS! --- src/Magnum/Platform/Sdl2Application.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index be4ad3934..aabd3f8a0 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/src/Magnum/Platform/Sdl2Application.h @@ -578,6 +578,18 @@ class Sdl2Application::Configuration { enum class WindowFlag: Uint32 { Resizable = SDL_WINDOW_RESIZABLE, /**< Resizable window */ Fullscreen = SDL_WINDOW_FULLSCREEN, /**< Fullscreen window */ + + /** No window decoration. On iOS this hides the menu bar. */ + Borderless = SDL_WINDOW_BORDERLESS, + + #ifndef CORRADE_TARGET_EMSCRIPTEN + /** + * Allow high DPI. + * @note Not available in @ref CORRADE_TARGET_EMSCRIPTEN "Emscripten". + */ + AllowHighDpi = SDL_WINDOW_ALLOW_HIGHDPI, + #endif + Hidden = SDL_WINDOW_HIDDEN, /**< Hidden window */ Maximized = SDL_WINDOW_MAXIMIZED, /**< Maximized window */ Minimized = SDL_WINDOW_MINIMIZED, /**< Minimized window */