Safe-area, orientation, lifecycle, and mobile text-input demonstration
← All examples29_safe_area
Safe rectangles and input positions use SDL's native window-coordinate space. Portable margins and control sizes are multiplied by mk_get_window_ui_scale() before they are combined with the safe rectangle.

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.
- Number
- 29
- Tags
- Source
examples/29_safe_area/main.c
Build and run
./scripts/build-linux.sh release --target=29_safe_area --run