Application:getDeviceWidth: Difference between revisions

From GiderosMobile
prefixindex
m Text replacement - "<source" to "<syntaxhighlight"
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:
<br/>
<br/>


<source lang="lua">
<syntaxhighlight lang="lua">
(number) = application:getDeviceWidth()
(number) = application:getDeviceWidth()
</source>
</syntaxhighlight>


=== Return values ===
=== Return values ===
'''Returns''' (number) The physical width of the device in pixels
'''Returns''' (number) The physical width of the device in pixels


----
{{Application}}
{{Special:PrefixIndex/Application}}
<br/>
 
{{Special:PrefixIndex/Event.APPLICATION}}

Latest revision as of 16:17, 12 July 2023

Available since: Gideros 2011.6
Class: Application

Description

Returns the physical width of the device in pixels. For example, for iPhone 3GS this function returns 320 and for iPhone 4 (with retina display enabled) this function returns 640.

(number) = application:getDeviceWidth()

Return values

Returns (number) The physical width of the device in pixels