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...")
 
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]]
 
* [[parent::Canvas]]
 
[[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}}

Revision as of 11:07, 28 November 2012

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