Difference between revisions of "cock.new"

m (Returns)
m
Line 5: Line 5:
 
=== Arguments ===
 
=== Arguments ===
 
{{param|string|id|Optional. An identifier to use for this object. Generated automatically if not provided.}}
 
{{param|string|id|Optional. An identifier to use for this object. Generated automatically if not provided.}}
{{param|table|data|Optional. Specifically formated [[cock.setupdata|setup data]] to build layouts from. Will not instantly create layout if not provided.}}
+
{{param|table|data|Optional. Specifically formated [[Common Organization of Controls Kit Setup data|setup data]] to build layouts from. Will not instantly create layout if not provided.}}
  
 
=== Returns ===
 
=== Returns ===
{{param|table|control|Newly created [[cock.control|control object]]}}
+
{{param|table|control|Newly created [[Common Organization of Controls Kit Object|control object]]}}
  
 
==See also==
 
==See also==
 
*[[cock.delete]]
 
*[[cock.delete]]
 
*[[cock.find]]
 
*[[cock.find]]
 +
*[[Common Organization of Controls Kit Setup data]]
 +
*[[Common Organization of Controls Kit Object]]
 
*[[parent::Common Organization of Controls Kit Manual]]
 
*[[parent::Common Organization of Controls Kit Manual]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 11:16, 1 September 2013

Creates a new control object.

Synopsis

Function

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