Difference between revisions of "Screen"

From GiderosMobile
Line 7: Line 7:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
[[Screen.new]] ''<translate>Open a new screen</translate>''<br/>
+
[[Special:MyLanguage/Screen.new|Screen.new]] ''<translate>Open a new screen</translate>''<br/>
[[Screen:clear]] ''<translate>Sets the background color of this screen</translate>''<br/>
+
[[Special:MyLanguage/Screen:clear|Screen:clear]] ''<translate>Sets the background color of this screen</translate>''<br/>
[[Screen:getId]] ''<translate>Returns the screen's id</translate>''<br/>
+
[[Special:MyLanguage/Screen:getId|Screen:getId]] ''<translate>Returns the screen's id</translate>''<br/>
[[Screen:getMaxSize]] ''<translate>Returns the maximum size this screen can have</translate>''<br/>
+
[[Special:MyLanguage/Screen:getMaxSize|Screen:getMaxSize]] ''<translate>Returns the maximum size this screen can have</translate>''<br/>
[[Screen:getPosition]] ''<translate>Returns the position of this screen</translate>''<br/>
+
[[Special:MyLanguage/Screen:getPosition|Screen:getPosition]] ''<translate>Returns the position of this screen</translate>''<br/>
[[Screen:getSize]] ''<translate>Returns the size of this screen</translate>''<br/>
+
[[Special:MyLanguage/Screen:getSize|Screen:getSize]] ''<translate>Returns the size of this screen</translate>''<br/>
[[Screen:getState]] ''<translate>Returns the state of this screen</translate>''<br/>
+
[[Special:MyLanguage/Screen:getState|Screen:getState]] ''<translate>Returns the state of this screen</translate>''<br/>
[[Screen:setContent]] <br/>
+
[[Special:MyLanguage/Screen:setContent|Screen:setContent]] <br/>
[[Screen:setPosition]] ''<translate>Sets the position of this screen, if possible.</translate>''<br/>
+
[[Special:MyLanguage/Screen:setPosition|Screen:setPosition]] ''<translate>Sets the position of this screen, if possible.</translate>''<br/>
[[Screen:setSize]] ''<translate>Sets the size of this screen, if possible.</translate>''<br/>
+
[[Special:MyLanguage/Screen:setSize|Screen:setSize]] ''<translate>Sets the size of this screen, if possible.</translate>''<br/>
[[Screen:setState]] ''<translate>Sets the state of this screen, if possible.</translate>''<br/>
+
[[Special:MyLanguage/Screen:setState|Screen:setState]] ''<translate>Sets the state of this screen, if possible.</translate>''<br/>
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 16:35, 23 August 2018

Supported platforms:
Available since: Gideros 2017.8

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