include/SDL_hints.h
changeset 10614 63c2c6c8762c
parent 10553 c1bb718f6c3f
child 10636 e692b9291c81
     1.1 --- a/include/SDL_hints.h	Tue Nov 15 01:14:30 2016 -0800
     1.2 +++ b/include/SDL_hints.h	Sun Nov 13 10:39:04 2016 +0100
     1.3 @@ -401,6 +401,33 @@
     1.4  #define SDL_HINT_TIMER_RESOLUTION "SDL_TIMER_RESOLUTION"
     1.5  
     1.6  
     1.7 +/**
     1.8 + *  \brief  A variable describing the content orientation on QtWayland-based platforms.
     1.9 + *
    1.10 + *  On QtWayland platforms, windows are rotated client-side to allow for custom
    1.11 + *  transitions. In order to correctly position overlays (e.g. volume bar) and
    1.12 + *  gestures (e.g. events view, close/minimize gestures), the system needs to
    1.13 + *  know in which orientation the application is currently drawing its contents.
    1.14 + *
    1.15 + *  This does not cause the window to be rotated or resized, the application
    1.16 + *  needs to take care of drawing the content in the right orientation (the
    1.17 + *  framebuffer is always in portrait mode).
    1.18 + *
    1.19 + *  This variable can be one of the following values:
    1.20 + *    "primary" (default), "portrait", "landscape", "inverted-portrait", "inverted-landscape"
    1.21 + */
    1.22 +#define SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION "SDL_QTWAYLAND_CONTENT_ORIENTATION"
    1.23 +
    1.24 +/**
    1.25 + *  \brief  Flags to set on QtWayland windows to integrate with the native window manager.
    1.26 + *
    1.27 + *  On QtWayland platforms, this hint controls the flags to set on the windows.
    1.28 + *  For example, on Sailfish OS "OverridesSystemGestures" disables swipe gestures.
    1.29 + *
    1.30 + *  This variable is a space-separated list of the following values (empty = no flags):
    1.31 + *    "OverridesSystemGestures", "StaysOnTop", "BypassWindowManager"
    1.32 + */
    1.33 +#define SDL_HINT_QTWAYLAND_WINDOW_FLAGS "SDL_QTWAYLAND_WINDOW_FLAGS"
    1.34  
    1.35  /**
    1.36  *  \brief  A string specifying SDL's threads stack size in bytes or "0" for the backend's default size