Difference between revisions of "Screen"

From GiderosMobile
Line 5: Line 5:
 
'''<translate>Available since</translate>:''' Gideros 2017.8<br/>
 
'''<translate>Available since</translate>:''' Gideros 2017.8<br/>
 
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Object|Object]]<br/>
 
'''<translate>Inherits from</translate>:''' [[Special:MyLanguage/Object|Object]]<br/>
 +
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Screen class allows to access secondary displays or windows.</translate>
 
<translate>Screen class allows to access secondary displays or windows.</translate>
 +
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
Line 21: Line 23:
 
[[Special:MyLanguage/Screen:setSize|Screen:setSize]] ''<translate>Sets the size of this screen, if possible.</translate>''<br/><!-- GIDEROSMTD:Screen:setSize(w,h) Sets the size of this screen, if possible. -->
 
[[Special:MyLanguage/Screen:setSize|Screen:setSize]] ''<translate>Sets the size of this screen, if possible.</translate>''<br/><!-- GIDEROSMTD:Screen:setSize(w,h) Sets the size of this screen, if possible. -->
 
[[Special:MyLanguage/Screen:setState|Screen:setState]] ''<translate>Sets the state of this screen, if possible.</translate>''<br/><!-- GIDEROSMTD:Screen:setState(state) Sets the state of this screen, if possible. -->
 
[[Special:MyLanguage/Screen:setState|Screen:setState]] ''<translate>Sets the state of this screen, if possible.</translate>''<br/><!-- GIDEROSMTD:Screen:setState(state) Sets the state of this screen, if possible. -->
 +
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Events</translate> ===
 
=== <translate>Events</translate> ===
 
=== <translate>Constants</translate> ===
 
=== <translate>Constants</translate> ===
 
|}
 
|}
 
{{Screen}}
 

Revision as of 23:58, 9 December 2019


Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.pngPlatform html5.pngPlatform winrt.pngPlatform win32.png
Available since: Gideros 2017.8
Inherits from: Object

Description

Screen class allows to access secondary displays or windows.

Methods

Screen.new Open a new screen
Screen:clear Sets the background color of this screen
Screen:getId Returns the screen's id
Screen:getMaxSize Returns the maximum size this screen can have
Screen:getPosition Returns the position of this screen
Screen:getSize Returns the size of this screen
Screen:getState Returns the state of this screen
Screen:setContent
Screen:setPosition Sets the position of this screen, if possible.
Screen:setSize Sets the size of this screen, if possible.
Screen:setState Sets the state of this screen, if possible.

Events

Constants