DDNet documentation
Loading...
Searching...
No Matches
iOS

Functions

void IosDisplayCutoutInsets (SDL_Window *pWindow, int *pLeft, int *pRight)
const char * InitIos ()

Detailed Description

iOS-specific functions.

Function Documentation

◆ InitIos()

const char * InitIos ( )

Initializes iOS specific runtime settings.

This changes the current working directory to the app bundle so the data files can be read directly from the packaged app.

Failure must be handled by exiting the app.

Returns
nullptr on success, error message on failure.

◆ IosDisplayCutoutInsets()

void IosDisplayCutoutInsets ( SDL_Window * pWindow,
int * pLeft,
int * pRight )

Determines the insets of the drawable area of a window which are covered by the cutout of the display, in pixels.

Only the cutout hides content. The home indicator is drawn on top of the content instead, so the entire height of the display stays usable.

Parameters
pWindowThe window to determine the insets of.
pLeftPointer to variable that will receive the left inset.
pRightPointer to variable that will receive the right inset.