![]() |
DDNet documentation
|
Functions | |
| void | IosDisplayCutoutInsets (SDL_Window *pWindow, int *pLeft, int *pRight) |
| const char * | InitIos () |
iOS-specific functions.
| 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.
| 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.
| pWindow | The window to determine the insets of. |
| pLeft | Pointer to variable that will receive the left inset. |
| pRight | Pointer to variable that will receive the right inset. |