Difference between revisions of "Application:getDeviceWidth"

From GiderosMobile
Line 9: Line 9:
 
<br /></translate>
 
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
(number) = Application:getDeviceWidth()
+
(number) = application:getDeviceWidth()
 
</source>
 
</source>
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (number) <translate>The physical width of the device in pixels</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>The physical width of the device in pixels</translate><br/>

Revision as of 22:59, 31 May 2019


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