Difference between revisions of "Application:getContentWidth"

From GiderosMobile
Line 9: Line 9:
 
<br /></translate>
 
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
(number) = Application:getContentWidth()
+
(number) = application:getContentWidth()
 
</source>
 
</source>
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
 
'''<translate>Returns</translate>''' (number) <translate>Logical width or logical height depending on orientation.</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>Logical width or logical height depending on orientation.</translate><br/>

Revision as of 22:57, 31 May 2019


Available since: Gideros 2011.6
Class: Application

Description


If the orientation is portrait, this function returns logical width. If the orientation is landscape, this function
returns logical height.

(number) = application:getContentWidth()

Return values

Returns (number) Logical width or logical height depending on orientation.