Skip to content
Starlon edited this page Nov 30, 2011 · 2 revisions

Functions

<tr>
<td class="name" nowrap><a href="#LibScriptableWidgetText.Draw">LibScriptableWidgetText.Draw</a>&nbsp;(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>&nbsp;()</td>
<td class="summary">Delete a LibScriptableWidgetText object </td>
</tr>

<tr>
<td class="name" nowrap><a href="#WidgetText:Init">WidgetText:Init</a>&nbsp;(config)</td>
<td class="summary">Initialize this widget </td>
</tr>

<tr>
<td class="name" nowrap><a href="#WidgetText:New">WidgetText:New</a>&nbsp;(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>&nbsp;(unit)</td>
<td class="summary">Start a LibScriptableWidgetText object </td>
</tr>

<tr>
<td class="name" nowrap><a href="#WidgetText:Stop">WidgetText:Stop</a>&nbsp;()</td>
<td class="summary">Stop a LibScriptableWidgetText object </td>
</tr>

<tr>
<td class="name" nowrap><a href="#WidgetText:Update">WidgetText:Update</a>&nbsp;()</td>
<td class="summary">Update data.</td>
</tr>


Functions

LibScriptableWidgetText.Draw (text)
Executes the widget's draw function -- the callback parameter

Parameters

<li>
  text: The text to print.
</li>

Return value:

Nothing
WidgetText:Del ()
Delete a LibScriptableWidgetText object

Usage:

:Del()

Return value:

Nothing
WidgetText:Init (config)
Initialize this widget

Parameters

<li>
  config: 
</li>

Usage:

:Init()

Return value:

Nothing
WidgetText:New (visitor, name, config, row, col, layer, errorLevel, callback)
Create a new LibScriptableWidgetText object

Parameters

<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>

Usage:

WidgetText:New(visitor, name, config, row, col, layer, errorLevel, callback, timer)

Return value:

A new LibScriptableWidgetText object
WidgetText:Start (unit)
Start a LibScriptableWidgetText object

Parameters

<li>
  unit: 
</li>

Usage:

:Start()

Return value:

Nothing
WidgetText:Stop ()
Stop a LibScriptableWidgetText object

Usage:

:Stop()

Return value:

Nothing
WidgetText:Update ()
Update data. This will be called by this widget's timer, or else call it yourself.

Usage:

:Update()

Return value:

Nothing

Clone this wiki locally