Window

Class of snx.android.ui · Window.java

public final class Window

The host window: an SDL window with the runtime's Vulkan renderer (src/android/hwui/render.c), the Abstract of SurfaceFlinger and the input dispatcher in docs/platforms/android-apps/interfaces.md. Without a display the renderer draws into an image of its own (--shot saves one). --headless draws nothing at all.

The main looper waits in short steps and reads the window's events between them, since SDL's event queue belongs to the thread that made the window, and that is the main thread.

Methods

public static void rotate(int width, int height) source

The display turned to width by height (snx.android.Device.rotate): the host window takes the size (an SDL window's size event follows, with the same size), and the display, its configuration and the windows' roots take it now, so an app that waits for the new orientation sees it at once.


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.