-
Notifications
You must be signed in to change notification settings - Fork 0
WidgetText
Starlon edited this page Nov 30, 2011
·
2 revisions
<tr>
<td class="name" nowrap><a href="#LibScriptableWidgetText.Draw">LibScriptableWidgetText.Draw</a> (text)</td>
<td class="summary">Executes the widget's draw function -- the callback parameter </td>
</tr>
<tr>
<td class="name" nowrap><a href="#WidgetText:Del">WidgetText:Del</a> ()</td>
<td class="summary">Delete a LibScriptableWidgetText object </td>
</tr>
<tr>
<td class="name" nowrap><a href="#WidgetText:Init">WidgetText:Init</a> (config)</td>
<td class="summary">Initialize this widget </td>
</tr>
<tr>
<td class="name" nowrap><a href="#WidgetText:New">WidgetText:New</a> (visitor, name, config, row, col, layer, errorLevel, callback)</td>
<td class="summary">Create a new LibScriptableWidgetText object </td>
</tr>
<tr>
<td class="name" nowrap><a href="#WidgetText:Start">WidgetText:Start</a> (unit)</td>
<td class="summary">Start a LibScriptableWidgetText object </td>
</tr>
<tr>
<td class="name" nowrap><a href="#WidgetText:Stop">WidgetText:Stop</a> ()</td>
<td class="summary">Stop a LibScriptableWidgetText object </td>
</tr>
<tr>
<td class="name" nowrap><a href="#WidgetText:Update">WidgetText:Update</a> ()</td>
<td class="summary">Update data.</td>
</tr>
- LibScriptableWidgetText.Draw (text)
-
Executes the widget's draw function -- the callback parameter
Nothing
<li> text: The text to print. </li> - WidgetText:Del ()
- Delete a LibScriptableWidgetText object :Del() Nothing
- WidgetText:Init (config)
-
Initialize this widget
:Init() Nothing
<li> config: </li> - WidgetText:New (visitor, name, config, row, col, layer, errorLevel, callback)
-
Create a new LibScriptableWidgetText object
WidgetText:New(visitor, name, config, row, col, layer, errorLevel, callback, timer) A new LibScriptableWidgetText object
<li> visitor: An LibScriptableCore-1.0 object. There's also a visitor pointer in the script environment provided by LibCore, so you can create new widgets at runtime. </li> <li> name: </li> <li> config: This widget's settings </li> <li> row: This widget's row </li> <li> col: This widget's column </li> <li> layer: This widget's layer </li> <li> errorLevel: The self.errorLevel for this object </li> <li> callback: Your draw function. The widget is passed as first parameter. </li> - WidgetText:Start (unit)
-
Start a LibScriptableWidgetText object
:Start() Nothing
<li> unit: </li> - WidgetText:Stop ()
- Stop a LibScriptableWidgetText object :Stop() Nothing
- WidgetText:Update ()
- Update data. This will be called by this widget's timer, or else call it yourself. :Update() Nothing