Difference between revisions of "Screen:setState"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2017.8<br/>
'''<translate>Available since</translate>:''' Gideros 2017.8<br/>
+
'''Class:''' [[Screen]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Screen|Screen]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Attempts to configure this screen or window, if allowed by the platform.</translate>
+
Attempts to configure the screen or window, if allowed by the platform.
<source lang="lua">
+
<syntaxhighlight lang="lua">
Screen:setState(state)
+
Screen:setState(state)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''state''': (number) <translate>The required state of this screen</translate> <br/>
+
'''''state''''' is the sum of the following possible values:
 +
* Screen.STATE_NORMAL '''0''': Screen/Window is normal
 +
* Screen.STATE_MINIMIZED '''1''': Screen/Window is minimized
 +
* Screen.STATE_MAXIMIZED '''2''': Screen/Window is maximized
 +
* Screen.STATE_FULLSCREEN '''4''': Screen/Window is fullscreen
 +
* Screen.STATE_ACTIVE '''8''': Screen/Window is active/focused
 +
* Screen.STATE_HIDDEN '''16''': Screen/Window is not displayed
 +
* Screen.STATE_CLOSED '''32''': Screen/Window is closed
 +
 
 +
=== Parameters ===
 +
'''state''': (number) the required state of the screen<br/>
  
 
{{Screen}}
 
{{Screen}}

Latest revision as of 14:31, 13 July 2023

Available since: Gideros 2017.8
Class: Screen

Description

Attempts to configure the screen or window, if allowed by the platform.

Screen:setState(state)

state is the sum of the following possible values:

  • Screen.STATE_NORMAL 0: Screen/Window is normal
  • Screen.STATE_MINIMIZED 1: Screen/Window is minimized
  • Screen.STATE_MAXIMIZED 2: Screen/Window is maximized
  • Screen.STATE_FULLSCREEN 4: Screen/Window is fullscreen
  • Screen.STATE_ACTIVE 8: Screen/Window is active/focused
  • Screen.STATE_HIDDEN 16: Screen/Window is not displayed
  • Screen.STATE_CLOSED 32: Screen/Window is closed

Parameters

state: (number) the required state of the screen