Skip to main content

The "display_get_bbox_bottom" Function

Syntax#

display_get_bbox_bottom();
ArgumentTypeDescription
N/AN/ANo arguments

Description#

Android/iOS only. Returns the height in pixels of the bottom bounding box (or letterbox) of a display with one or more cutouts (aka "notch" or "hole-punch"). Will return 0 on other displays.

Note that bounding box will change depending on device orientation. This function will always return the value for the bottom side of the display relative to the user's perspective.

Example#

var str = "Hello, world!";
var sx = 50;
var sy = display_get_height() - display_get_bbox_bottom() - string_height(str);
draw_text(sx, sy, str);