pub const SDL_HINT_QTWAYLAND_CONTENT_ORIENTATION: &[u8];
Expand description

A variable describing the content orientation on QtWayland-based platforms.

On QtWayland platforms, windows are rotated client-side to allow for custom transitions. In order to correctly position overlays (e.g. volume bar) and gestures (e.g. events view, close/minimize gestures), the system needs to know in which orientation the application is currently drawing its contents.

This does not cause the window to be rotated or resized, the application needs to take care of drawing the content in the right orientation (the framebuffer is always in portrait mode).

This variable can be one of the following values:

  • “primary” (default)
  • “portrait”
  • “landscape”
  • “inverted-portrait”
  • “inverted-landscape”