Difference between revisions of "Chroma:getWidth"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2020.7<br/>
'''<translate>Available since</translate>:''' Gideros 2020.7<br/>
+
'''Class:''' [[chroma]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/chroma|chroma]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Returns the number of LED columns, zero if none.</translate>
+
Returns the number of LED columns, zero if none.
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(number) = Chroma:getWidth(device)
 
(number) = Chroma:getWidth(device)
 
</syntaxhighlight>
 
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''device''': (text) <translate>Name of the device, eg keyboard, mouse.</translate><br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''device''': (text) name of the device, eg keyboard, mouse<br/>
'''<translate>Returns</translate>''' (number) <translate>Number of columns or zero.</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (number) number of columns or zero<br/>
  
 
{{Chroma}}
 
{{Chroma}}

Latest revision as of 21:55, 6 November 2024

Available since: Gideros 2020.7
Class: chroma

Description

Returns the number of LED columns, zero if none.

(number) = Chroma:getWidth(device)

Parameters

device: (text) name of the device, eg keyboard, mouse

Return values

Returns (number) number of columns or zero