Difference between revisions of "cock.setDefault"

(Created page with "Restores specified default layout, permanently erasing previously defined bindings. == Synopsis == === Function === <source lang="Lua">cock.setDefault ( self, default )</source> ...")
 
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Restores specified default layout, permanently erasing previously defined bindings.
 
Restores specified default layout, permanently erasing previously defined bindings.
== Synopsis ==
+
== Function ==
=== Function ===
+
=== Synopsis ===
 
<source lang="Lua">cock.setDefault ( self, default )</source>
 
<source lang="Lua">cock.setDefault ( self, default )</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|string|self|An object to use.}}
+
{{param|table|self|An object to use.}}
{{param|string|default|Optional. One of the defaults created earlier. Will substitute with cock.defaultLayout field if not provided.}}
+
{{param|string|default|Optional. One of the defaults created earlier. Will revert to [[Common Organization of Controls Kit Fields|control.defaultLayout]] field if not provided.}}
 +
 
 
==See also==
 
==See also==
 
*[[cock.setControls]]
 
*[[cock.setControls]]
 +
*[[Common Organization of Controls Kit Fields]]
 
*[[parent::Common Organization of Controls Kit Manual]]
 
*[[parent::Common Organization of Controls Kit Manual]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 15:10, 2 September 2013

Restores specified default layout, permanently erasing previously defined bindings.

Function

Synopsis

cock.setDefault ( self, default )

Arguments

table self
An object to use.
string default
Optional. One of the defaults created earlier. Will revert to control.defaultLayout field if not provided.

See also