Difference between revisions of "Chroma:getWidth"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2020.6<br/> '''<translate>Class</translate>:''' chroma<br/> === <tr...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2020.7<br/>
'''<translate>Available since</translate>:''' Gideros 2020.6<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.
<source lang="lua">
+
<syntaxhighlight lang="lua">
(number) = chroma.getWidth(device)
+
(number) = Chroma:getWidth(device)
</source>
+
</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