Difference between revisions of "Canvas:getWidth"

(Created page with "Returns the width of the Canvas. == Function == === Synopsis === <source lang="lua"> w = Canvas:getWidth( ) </source> === Arguments === None. === Returns === {{param|number|w|The...")
 
(De-parented (Use Texture:getWidth))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Returns the width of the Canvas.
+
Gets the width of the Canvas.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
w = Canvas:getWidth( )
+
width = Canvas:getWidth( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|number|w|The width of the Canvas, in pixels.}}
+
{{param|number|width|The width of the Canvas, in pixels.}}
 
== See Also ==
 
== See Also ==
* [[parent::Canvas]]
+
* [[Canvas]]
 +
* [[Canvas:getHeight]]
 +
* [[Canvas:getDimensions]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Returns the width of the Canvas.}}
+
{{#set:Description=Gets the width of the Canvas.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Canvas:getWidth}}
 
{{i18n|Canvas:getWidth}}

Latest revision as of 01:44, 19 July 2017

Gets the width of the Canvas.

Function

Synopsis

width = Canvas:getWidth( )

Arguments

None.

Returns

number width
The width of the Canvas, in pixels.

See Also


Other Languages