Application:getContentWidth: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
<br /> | <translate><br /> | ||
If the orientation is portrait, this function returns logical width. If the orientation is landscape, this function<br /> | If the orientation is portrait, this function returns logical width. If the orientation is landscape, this function<br /> | ||
returns logical height.<br /> | returns logical height.<br /> | ||
<br /> | <br /></translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
(number) = Application:getContentWidth() | (number) = Application:getContentWidth() | ||
</source> | </source> | ||
=== Return values === | === Return values === | ||
'''Returns''' (number) Logical width or logical height depending on orientation.<br/> | '''Returns''' (number) <translate>Logical width or logical height depending on orientation.</translate><br/> | ||
Revision as of 12:34, 23 August 2018
Available since: Gideros 2011.6
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.