Difference between revisions of "Screen"

From GiderosMobile
Line 10: Line 10:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== <translate>Methods</translate> ===
 
=== <translate>Methods</translate> ===
[[Special:MyLanguage/Screen.new|Screen.new]] ''<translate>Open a new screen</translate>''<br/><!-- GIDEROSMTD:Screen.new -->
+
[[Special:MyLanguage/Screen.new|Screen.new]] ''<translate>Open a new screen</translate>''<br/><!-- GIDEROSMTD:Screen.new(id) Open a new screen -->
[[Special:MyLanguage/Screen:clear|Screen:clear]] ''<translate>Sets the background color of this screen</translate>''<br/><!-- GIDEROSMTD:Screen:clear -->
+
[[Special:MyLanguage/Screen:clear|Screen:clear]] ''<translate>Sets the background color of this screen</translate>''<br/><!-- GIDEROSMTD:Screen:clear(color,alpha) Sets the background color of this screen -->
[[Special:MyLanguage/Screen:getId|Screen:getId]] ''<translate>Returns the screen's id</translate>''<br/><!-- GIDEROSMTD:Screen:getId -->
+
[[Special:MyLanguage/Screen:getId|Screen:getId]] ''<translate>Returns the screen's id</translate>''<br/><!-- GIDEROSMTD:Screen:getId() Returns the screen's id -->
[[Special:MyLanguage/Screen:getMaxSize|Screen:getMaxSize]] ''<translate>Returns the maximum size this screen can have</translate>''<br/><!-- GIDEROSMTD:Screen:getMaxSize -->
+
[[Special:MyLanguage/Screen:getMaxSize|Screen:getMaxSize]] ''<translate>Returns the maximum size this screen can have</translate>''<br/><!-- GIDEROSMTD:Screen:getMaxSize() Returns the maximum size this screen can have -->
[[Special:MyLanguage/Screen:getPosition|Screen:getPosition]] ''<translate>Returns the position of this screen</translate>''<br/><!-- GIDEROSMTD:Screen:getPosition -->
+
[[Special:MyLanguage/Screen:getPosition|Screen:getPosition]] ''<translate>Returns the position of this screen</translate>''<br/><!-- GIDEROSMTD:Screen:getPosition() Returns the position of this screen -->
[[Special:MyLanguage/Screen:getSize|Screen:getSize]] ''<translate>Returns the size of this screen</translate>''<br/><!-- GIDEROSMTD:Screen:getSize -->
+
[[Special:MyLanguage/Screen:getSize|Screen:getSize]] ''<translate>Returns the size of this screen</translate>''<br/><!-- GIDEROSMTD:Screen:getSize() Returns the size of this screen -->
[[Special:MyLanguage/Screen:getState|Screen:getState]] ''<translate>Returns the state of this screen</translate>''<br/><!-- GIDEROSMTD:Screen:getState -->
+
[[Special:MyLanguage/Screen:getState|Screen:getState]] ''<translate>Returns the state of this screen</translate>''<br/><!-- GIDEROSMTD:Screen:getState() Returns the state of this screen -->
[[Special:MyLanguage/Screen:setContent|Screen:setContent]] <br/><!-- GIDEROSMTD:Screen:setContent -->
+
[[Special:MyLanguage/Screen:setContent|Screen:setContent]] <br/><!-- GIDEROSMTD:Screen:setContent(content)  -->
[[Special:MyLanguage/Screen:setPosition|Screen:setPosition]] ''<translate>Sets the position of this screen, if possible.</translate>''<br/><!-- GIDEROSMTD:Screen:setPosition -->
+
[[Special:MyLanguage/Screen:setPosition|Screen:setPosition]] ''<translate>Sets the position of this screen, if possible.</translate>''<br/><!-- GIDEROSMTD:Screen:setPosition(x,y) Sets the position 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 -->
+
[[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 -->
+
[[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> ===
 
|}
 
|}

Revision as of 15:33, 13 September 2018


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

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