Difference between revisions of "Application:getDeviceWidth"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2011.6<br/>
<languages />
+
'''Class:''' [[Application|Application]]<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]<br/>
+
=== Description ===
=== <translate>Description</translate> ===
+
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.
<translate><br />
+
<br/>
Returns the physical width of the device in pixels. For example,<br />
+
 
for iPhone 3GS this function returns 320 and for iPhone 4 (with retina display enabled) this function returns 640.<br />
+
<syntaxhighlight lang="lua">
<br /></translate>
 
<source lang="lua">
 
 
(number) = application:getDeviceWidth()
 
(number) = application:getDeviceWidth()
</source>
+
</syntaxhighlight>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>The physical width of the device in pixels</translate><br/>
+
=== Return values ===
 +
'''Returns''' (number) The physical width of the device in pixels
 +
 
 +
{{Application}}

Latest revision as of 17: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