Display get height: Difference between revisions

From ENIGMA
Jump to navigation Jump to search
m (replacing function titles with notation using AWB, removed: == Notation ==)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{LAYTITLE:display_get_height}}
__NOTOC__
{{Function:GM}}
{{-}}
{{FuncTitle|display_get_height}}
{{FuncTitle|display_get_height}}
== Description ==
== Description ==
Retrieves the height of the display in pixels.
Gets the height of the display, in pixels, and returns the result.


== Parameters ==
== Parameters ==
''none''
{| class="funcpars"
! Parameter !! Description
|-
| none || this function has no parameters.
|}


== Return Values ==
== Return Values ==
Returns the height of the display as an integer.
'''integer''': Returns the height of the display, in pixels.


== Example Call ==
== Example Call ==
<syntaxhighlight lang="gml">
<syntaxhighlight lang="edl">
show_message("Your screen is " + string(display_get_height()) + " pixels tall!");
// demonstrates obtaining the current display resolution
var rx, ry;
rx = display_get_width();
ry = display_get_height();
</syntaxhighlight>
</syntaxhighlight>
__NOTOC__
{{Function:GM}}

Latest revision as of 17:10, 14 November 2013

Description

Gets the height of the display, in pixels, and returns the result.

Parameters

Parameter Description
none this function has no parameters.

Return Values

integer: Returns the height of the display, in pixels.

Example Call

// demonstrates obtaining the current display resolution
var rx, ry;
rx = display_get_width();
ry = display_get_height();