Difference between revisions of "cock.new"

m
m
Line 1: Line 1:
 
Creates a new control object.  
 
Creates a new control object.  
== Synopsis ==
+
== Function ==
=== Function ===
+
=== Synopsis ===
 
<source lang="Lua">control = cock.new ( id, data )</source>
 
<source lang="Lua">control = cock.new ( id, data )</source>
 
=== Arguments ===
 
=== Arguments ===

Revision as of 15:06, 2 September 2013

Creates a new control object.

Function

Synopsis

control = cock.new ( id, data )

Arguments

string id
Optional. An identifier to use for this object. Generated automatically if not provided.
table data
Optional. Specifically formated setup data to build layouts from. Will not instantly create layout if not provided.

Returns

table control
Newly created control object

See also