mirror of
https://github.com/airstruck/luigi.git
synced 2025-11-18 12:25:06 +00:00
fix backspace in text widget
This commit is contained in:
@@ -42,18 +42,19 @@
|
||||
<li><a href="../classes/Layout.html">Layout</a></li>
|
||||
<li><a href="../classes/Widget.html">Widget</a></li>
|
||||
</ul>
|
||||
<h2>Widget Types</h2>
|
||||
<h2>Widgets</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
<li><a href="../widget types/button.html">button</a></li>
|
||||
<li><a href="../widget types/check.html">check</a></li>
|
||||
<li><a href="../widget types/menu.html">menu</a></li>
|
||||
<li><a href="../widget types/menu.item.html">menu.item</a></li>
|
||||
<li><a href="../widget types/progress.html">progress</a></li>
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
<li><a href="../widgets/button.html">button</a></li>
|
||||
<li><a href="../widgets/check.html">check</a></li>
|
||||
<li><a href="../widgets/menu.html">menu</a></li>
|
||||
<li><a href="../widgets/menu.item.html">menu.item</a></li>
|
||||
<li><a href="../widgets/progress.html">progress</a></li>
|
||||
<li><a href="../widgets/radio.html">radio</a></li>
|
||||
<li><a href="../widgets/sash.html">sash</a></li>
|
||||
<li><a href="../widgets/slider.html">slider</a></li>
|
||||
<li><a href="../widgets/status.html">status</a></li>
|
||||
<li><a href="../widgets/stepper.html">stepper</a></li>
|
||||
<li><a href="../widgets/text.html">text</a></li>
|
||||
</ul>
|
||||
<h2>Modules</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
@@ -147,6 +148,9 @@
|
||||
<li><span class="parameter">Change</span>
|
||||
A widget's value changed.
|
||||
</li>
|
||||
<li><span class="parameter">WheelMove</span>
|
||||
The scroll wheel on the mouse moved.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -161,7 +165,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-06 11:22:48 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -43,18 +43,19 @@
|
||||
<li><strong>Layout</strong></li>
|
||||
<li><a href="../classes/Widget.html">Widget</a></li>
|
||||
</ul>
|
||||
<h2>Widget Types</h2>
|
||||
<h2>Widgets</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
<li><a href="../widget types/button.html">button</a></li>
|
||||
<li><a href="../widget types/check.html">check</a></li>
|
||||
<li><a href="../widget types/menu.html">menu</a></li>
|
||||
<li><a href="../widget types/menu.item.html">menu.item</a></li>
|
||||
<li><a href="../widget types/progress.html">progress</a></li>
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
<li><a href="../widgets/button.html">button</a></li>
|
||||
<li><a href="../widgets/check.html">check</a></li>
|
||||
<li><a href="../widgets/menu.html">menu</a></li>
|
||||
<li><a href="../widgets/menu.item.html">menu.item</a></li>
|
||||
<li><a href="../widgets/progress.html">progress</a></li>
|
||||
<li><a href="../widgets/radio.html">radio</a></li>
|
||||
<li><a href="../widgets/sash.html">sash</a></li>
|
||||
<li><a href="../widgets/slider.html">slider</a></li>
|
||||
<li><a href="../widgets/status.html">status</a></li>
|
||||
<li><a href="../widgets/stepper.html">stepper</a></li>
|
||||
<li><a href="../widgets/text.html">text</a></li>
|
||||
</ul>
|
||||
<h2>Modules</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
@@ -401,7 +402,7 @@ found, and focuses that widget.
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-06 11:22:48 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -44,18 +44,19 @@
|
||||
<li><a href="../classes/Layout.html">Layout</a></li>
|
||||
<li><strong>Widget</strong></li>
|
||||
</ul>
|
||||
<h2>Widget Types</h2>
|
||||
<h2>Widgets</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
<li><a href="../widget types/button.html">button</a></li>
|
||||
<li><a href="../widget types/check.html">check</a></li>
|
||||
<li><a href="../widget types/menu.html">menu</a></li>
|
||||
<li><a href="../widget types/menu.item.html">menu.item</a></li>
|
||||
<li><a href="../widget types/progress.html">progress</a></li>
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
<li><a href="../widgets/button.html">button</a></li>
|
||||
<li><a href="../widgets/check.html">check</a></li>
|
||||
<li><a href="../widgets/menu.html">menu</a></li>
|
||||
<li><a href="../widgets/menu.item.html">menu.item</a></li>
|
||||
<li><a href="../widgets/progress.html">progress</a></li>
|
||||
<li><a href="../widgets/radio.html">radio</a></li>
|
||||
<li><a href="../widgets/sash.html">sash</a></li>
|
||||
<li><a href="../widgets/slider.html">slider</a></li>
|
||||
<li><a href="../widgets/status.html">status</a></li>
|
||||
<li><a href="../widgets/stepper.html">stepper</a></li>
|
||||
<li><a href="../widgets/text.html">text</a></li>
|
||||
</ul>
|
||||
<h2>Modules</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
@@ -127,6 +128,14 @@
|
||||
<td class="summary">Get the widget's calculated height.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#Widget:getContentWidth">Widget:getContentWidth ()</a></td>
|
||||
<td class="summary">Get the content width.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#Widget:getContentHeight">Widget:getContentHeight ()</a></td>
|
||||
<td class="summary">Get the content height.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#Widget:getRectangle">Widget:getRectangle (useMargin, usePadding)</a></td>
|
||||
<td class="summary">Get x/y/width/height values describing a rectangle within the widget.</td>
|
||||
</tr>
|
||||
@@ -432,6 +441,50 @@ Cycles back around to the last widget in the tree from the layout root.
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "Widget:getContentWidth"></a>
|
||||
<strong>Widget:getContentWidth ()</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Get the content width. </p>
|
||||
|
||||
<p>Gets the combined width of the widget's children.
|
||||
|
||||
|
||||
|
||||
<h3>Returns:</h3>
|
||||
<ol>
|
||||
|
||||
<span class="types"><span class="type">number</span></span>
|
||||
The content width.
|
||||
</ol>
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "Widget:getContentHeight"></a>
|
||||
<strong>Widget:getContentHeight ()</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Get the content height. </p>
|
||||
|
||||
<p>Gets the combined height of the widget's children.
|
||||
|
||||
|
||||
|
||||
<h3>Returns:</h3>
|
||||
<ol>
|
||||
|
||||
<span class="types"><span class="type">number</span></span>
|
||||
The content height.
|
||||
</ol>
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "Widget:getRectangle"></a>
|
||||
@@ -568,7 +621,7 @@ This table is identical to the constructed widget.
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-06 11:22:48 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -29,18 +29,19 @@
|
||||
|
||||
|
||||
|
||||
<h2>Widget Types</h2>
|
||||
<h2>Widgets</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
<li><a href="widget types/button.html">button</a></li>
|
||||
<li><a href="widget types/check.html">check</a></li>
|
||||
<li><a href="widget types/menu.html">menu</a></li>
|
||||
<li><a href="widget types/menu.item.html">menu.item</a></li>
|
||||
<li><a href="widget types/progress.html">progress</a></li>
|
||||
<li><a href="widget types/radio.html">radio</a></li>
|
||||
<li><a href="widget types/sash.html">sash</a></li>
|
||||
<li><a href="widget types/slider.html">slider</a></li>
|
||||
<li><a href="widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="widget types/text.html">text</a></li>
|
||||
<li><a href="widgets/button.html">button</a></li>
|
||||
<li><a href="widgets/check.html">check</a></li>
|
||||
<li><a href="widgets/menu.html">menu</a></li>
|
||||
<li><a href="widgets/menu.item.html">menu.item</a></li>
|
||||
<li><a href="widgets/progress.html">progress</a></li>
|
||||
<li><a href="widgets/radio.html">radio</a></li>
|
||||
<li><a href="widgets/sash.html">sash</a></li>
|
||||
<li><a href="widgets/slider.html">slider</a></li>
|
||||
<li><a href="widgets/status.html">status</a></li>
|
||||
<li><a href="widgets/stepper.html">stepper</a></li>
|
||||
<li><a href="widgets/text.html">text</a></li>
|
||||
</ul>
|
||||
<h2>Modules</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
@@ -61,46 +62,50 @@
|
||||
<h2>Lovely User Interfaces for Game Inventors</h2>
|
||||
<p>A UI library</p>
|
||||
|
||||
<h2>Widget Types</h2>
|
||||
<h2>Widgets</h2>
|
||||
<table class="module_list">
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/button.html">button</a></td>
|
||||
<td class="name" nowrap><a href="widgets/button.html">button</a></td>
|
||||
<td class="summary">A simple button.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/check.html">check</a></td>
|
||||
<td class="name" nowrap><a href="widgets/check.html">check</a></td>
|
||||
<td class="summary">A check box.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/menu.html">menu</a></td>
|
||||
<td class="name" nowrap><a href="widgets/menu.html">menu</a></td>
|
||||
<td class="summary">A menu bar.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/menu.item.html">menu.item</a></td>
|
||||
<td class="name" nowrap><a href="widgets/menu.item.html">menu.item</a></td>
|
||||
<td class="summary">A menu item.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/progress.html">progress</a></td>
|
||||
<td class="name" nowrap><a href="widgets/progress.html">progress</a></td>
|
||||
<td class="summary">A progress bar.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/radio.html">radio</a></td>
|
||||
<td class="name" nowrap><a href="widgets/radio.html">radio</a></td>
|
||||
<td class="summary">A radio button.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/sash.html">sash</a></td>
|
||||
<td class="name" nowrap><a href="widgets/sash.html">sash</a></td>
|
||||
<td class="summary">A sash.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/slider.html">slider</a></td>
|
||||
<td class="name" nowrap><a href="widgets/slider.html">slider</a></td>
|
||||
<td class="summary">A slider.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/stepper.html">stepper</a></td>
|
||||
<td class="name" nowrap><a href="widgets/status.html">status</a></td>
|
||||
<td class="summary">A status bar.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widgets/stepper.html">stepper</a></td>
|
||||
<td class="summary">A stepper.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="widget_types/text.html">text</a></td>
|
||||
<td class="name" nowrap><a href="widgets/text.html">text</a></td>
|
||||
<td class="summary">A text entry area.</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -131,7 +136,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-06 11:22:48 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -32,7 +32,8 @@
|
||||
|
||||
<h2>Contents</h2>
|
||||
<ul>
|
||||
<li><a href="#Widget_Attributes">Widget Attributes</a></li>
|
||||
<li><a href="#Attributes">Attributes</a></li>
|
||||
<li><a href="#Keyboard_Attributes">Keyboard Attributes </a></li>
|
||||
<li><a href="#Size_Attributes">Size Attributes </a></li>
|
||||
<li><a href="#Font_Attributes">Font Attributes </a></li>
|
||||
<li><a href="#Text_Attributes">Text Attributes </a></li>
|
||||
@@ -44,18 +45,19 @@
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
<li><strong>attribute</strong></li>
|
||||
</ul>
|
||||
<h2>Widget Types</h2>
|
||||
<h2>Widgets</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
<li><a href="../widget types/button.html">button</a></li>
|
||||
<li><a href="../widget types/check.html">check</a></li>
|
||||
<li><a href="../widget types/menu.html">menu</a></li>
|
||||
<li><a href="../widget types/menu.item.html">menu.item</a></li>
|
||||
<li><a href="../widget types/progress.html">progress</a></li>
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
<li><a href="../widgets/button.html">button</a></li>
|
||||
<li><a href="../widgets/check.html">check</a></li>
|
||||
<li><a href="../widgets/menu.html">menu</a></li>
|
||||
<li><a href="../widgets/menu.item.html">menu.item</a></li>
|
||||
<li><a href="../widgets/progress.html">progress</a></li>
|
||||
<li><a href="../widgets/radio.html">radio</a></li>
|
||||
<li><a href="../widgets/sash.html">sash</a></li>
|
||||
<li><a href="../widgets/slider.html">slider</a></li>
|
||||
<li><a href="../widgets/status.html">status</a></li>
|
||||
<li><a href="../widgets/stepper.html">stepper</a></li>
|
||||
<li><a href="../widgets/text.html">text</a></li>
|
||||
</ul>
|
||||
<h2>Classes</h2>
|
||||
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
||||
@@ -72,7 +74,7 @@
|
||||
<p>Widget attributes.</p>
|
||||
<p>This module defines "attributes" (special fields) that are
|
||||
recognized by all widgets. Their interpretation may vary
|
||||
depending on the <a href="http://www.lua.org/manual/5.1/manual.html#pdf-type">type</a> of widget. Some widget types may also
|
||||
depending on the <a href="../modules/attribute.html#type">type</a> of widget. Some widget types may also
|
||||
recognize additional attributes.</p>
|
||||
|
||||
<p>Setting attributes can have side effects. For example, setting
|
||||
@@ -80,24 +82,43 @@ recognize additional attributes.</p>
|
||||
to recalculate their size and position.</p>
|
||||
|
||||
|
||||
<h2><a href="#Widget_Attributes">Widget Attributes</a></h2>
|
||||
<h2><a href="#Attributes">Attributes</a></h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#type">type</a></td>
|
||||
<td class="summary">Type of widget.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#id">id</a></td>
|
||||
<td class="summary">widget identifier.</td>
|
||||
<td class="summary">Widget identifier.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#value">value</a></td>
|
||||
<td class="summary">Widget value.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#style">style</a></td>
|
||||
<td class="summary">Widget style.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#status">status</a></td>
|
||||
<td class="summary">Status message.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#scroll">scroll</a></td>
|
||||
<td class="summary">Scroll ability.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2><a href="#Keyboard_Attributes">Keyboard Attributes </a></h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#focusable">focusable</a></td>
|
||||
<td class="summary">Focusable.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#key">key</a></td>
|
||||
<td class="summary">Keyboard accelerator.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#value">value</a></td>
|
||||
<td class="summary">widget value.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap><a href="#style">style</a></td>
|
||||
<td class="summary">widget style.</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2><a href="#Size_Attributes">Size Attributes </a></h2>
|
||||
<table class="function_list">
|
||||
@@ -184,15 +205,43 @@ to recalculate their size and position.</p>
|
||||
<br/>
|
||||
|
||||
|
||||
<h2 class="section-header "><a name="Widget_Attributes"></a>Widget Attributes</h2>
|
||||
<h2 class="section-header "><a name="Attributes"></a>Attributes</h2>
|
||||
|
||||
<dl class="function">
|
||||
<dt>
|
||||
<a name = "type"></a>
|
||||
<strong>type</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Type of widget. </p>
|
||||
|
||||
<p>Should contain a string identifying the widget's type.
|
||||
After the layout is built, may be replaced by an array
|
||||
of strings identifying multiple types. This is used
|
||||
internally by some widgets to provide information about
|
||||
the widget's state to the theme (themes describe the
|
||||
appearance of widgets according to their type).</p>
|
||||
|
||||
<p>If a type is registered with the widget's layout, the registered
|
||||
type initializer function will run once when the widget is constructed.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>See also:</h3>
|
||||
<ul>
|
||||
<a href="../classes/Widget.html#Widget.register">Widget.register</a>
|
||||
</ul>
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "id"></a>
|
||||
<strong>id</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
widget identifier. </p>
|
||||
Widget identifier. </p>
|
||||
|
||||
<p>Should contain a unique string identifying the widget, if present.</p>
|
||||
|
||||
@@ -207,6 +256,118 @@ in a property having the same name as the widget's id.</p>
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "value"></a>
|
||||
<strong>value</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Widget value. </p>
|
||||
|
||||
<p>Some widget types expect the value to be of a specific type and
|
||||
within a specific range. For example, <a href="../widgets/slider.html#">slider</a> and <a href="../widgets/progress.html#">progress</a>
|
||||
widgets expect a normalized number, <a href="../widgets/text.html#">text</a> widgets expect
|
||||
a string, and <a href="../widgets/check.html#">check</a> and <a href="../widgets/radio.html#">radio</a> widgets expect a boolean.</p>
|
||||
|
||||
<p>Setting this attribute bubbles the <code>Change</code> event.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "style"></a>
|
||||
<strong>style</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Widget style. </p>
|
||||
|
||||
<p>Should contain a string or array of strings identifying
|
||||
style rules to be applied to the widget. When resolving
|
||||
any attribute with a <code>nil</code> value, these style rules are
|
||||
searched for a corresponding attribute.</p>
|
||||
|
||||
<p>Setting this attribute resets the <code>Font</code> and <code>Text</code> object
|
||||
associated with this widget.</p>
|
||||
|
||||
<p>Setting this attribute recalculates the size and position
|
||||
of the parent widget and its descendants.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "status"></a>
|
||||
<strong>status</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
|
||||
<p>Status message. </p>
|
||||
|
||||
<p>Should contain a string with a short message describing the
|
||||
purpose or state of the widget.</p>
|
||||
|
||||
<p>This message will appear in the last created <a href="../widgets/status.html#">status</a> widget
|
||||
in the same layout, or in the master layout if one exists.</p>
|
||||
|
||||
<ul>
|
||||
<li>This attribute cascades.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "scroll"></a>
|
||||
<strong>scroll</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Scroll ability. </p>
|
||||
|
||||
<p>Should contain <code>true</code> or <code>false</code> (or <code>nil</code>).</p>
|
||||
|
||||
<p>If set to <code>true</code>, moving the scroll wheel over the widget will adjust
|
||||
its scroll position when the widget's contents overflow its boundary.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
<h2 class="section-header "><a name="Keyboard_Attributes"></a>Keyboard Attributes </h2>
|
||||
|
||||
<dl class="function">
|
||||
<dt>
|
||||
<a name = "focusable"></a>
|
||||
<strong>focusable</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Focusable. </p>
|
||||
|
||||
<p>Should contain <code>true</code> if the widget can be focused by pressing the tab key.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "key"></a>
|
||||
@@ -229,52 +390,6 @@ as if it had been pressed with a mouse or touch interface.</p>
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "value"></a>
|
||||
<strong>value</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
widget value. </p>
|
||||
|
||||
<p>Some widget types expect the value to be of a specific type and
|
||||
within a specific range. For example, <a href="../widget types/slider.html#">slider</a> and <a href="../widget types/progress.html#">progress</a>
|
||||
widgets expect a normalized number, and <a href="../widget types/text.html#">text</a> widgets expect
|
||||
a string.</p>
|
||||
|
||||
<p>Setting this attribute bubbles the <code>Change</code> event.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
<dt>
|
||||
<a name = "style"></a>
|
||||
<strong>style</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
widget style. </p>
|
||||
|
||||
<p>Should contain a string or array of strings identifying
|
||||
style rules to be applied to the widget. When resolving
|
||||
any attribute with a <code>nil</code> value, these style rules are
|
||||
searched for a corresponding attribute.</p>
|
||||
|
||||
<p>Setting this attribute resets the <code>Font</code> and <code>Text</code> object
|
||||
associated with this widget.</p>
|
||||
|
||||
<p>Setting this attribute recalculates the size and position
|
||||
of the parent widget and its descendants.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
<h2 class="section-header has-description"><a name="Size_Attributes"></a>Size Attributes </h2>
|
||||
@@ -391,10 +506,17 @@ objects associated with the widget.
|
||||
<strong>font</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Font path. </p>
|
||||
|
||||
<p>Font path. </p>
|
||||
|
||||
<p>Should contain a path to a TrueType font to use for displaying
|
||||
this widget's <a href="../widget types/text.html#">text</a>.
|
||||
this widget's <a href="../widgets/text.html#">text</a>.</p>
|
||||
|
||||
<ul>
|
||||
<li>This attribute cascades.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -408,10 +530,17 @@ this widget's <a href="../widget types/text.html#">text</a>.
|
||||
<strong>size</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Font size. </p>
|
||||
|
||||
<p>Font size. </p>
|
||||
|
||||
<p>Should contain a number representing the size of the font, in points.
|
||||
Defaults to 12.
|
||||
Defaults to 12.</p>
|
||||
|
||||
<ul>
|
||||
<li>This attribute cascades.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -447,9 +576,16 @@ associated with the widget.
|
||||
<strong>color</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Text color. </p>
|
||||
|
||||
<p>Should contain an array with 3 or 4 values (RGB or RGBA) from 0 to 255.
|
||||
<p>Text color. </p>
|
||||
|
||||
<p>Should contain an array with 3 or 4 values (RGB or RGBA) from 0 to 255.</p>
|
||||
|
||||
<ul>
|
||||
<li>This attribute cascades.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -463,7 +599,13 @@ associated with the widget.
|
||||
<strong>align</strong>
|
||||
</dt>
|
||||
<dd>
|
||||
Text and icon alignment.
|
||||
Text and icon alignment. </p>
|
||||
|
||||
<p>Should contain a string defining vertical and horizontal alignment.
|
||||
Vertical alignment is defined by either 'top', 'middle', or 'bottom',
|
||||
and horizontal alignment is defined by either 'left', 'center', or 'right'.</p>
|
||||
|
||||
<p>For example, <code>align = 'top left'</code>
|
||||
|
||||
|
||||
|
||||
@@ -566,7 +708,7 @@ as a single line when this attribute is not set to <code>true</code>.
|
||||
Padding size. </p>
|
||||
|
||||
<p>The padding area occupies space inside the <a href="../modules/attribute.html#outline">outline</a> and <a href="../modules/attribute.html#slices">slices</a>,
|
||||
and outside the space where the <a href="../modules/attribute.html#icon">icon</a> and <a href="../widget types/text.html#">text</a> and any
|
||||
and outside the space where the <a href="../modules/attribute.html#icon">icon</a> and <a href="../widgets/text.html#">text</a> and any
|
||||
child widgets appear.
|
||||
|
||||
|
||||
@@ -599,7 +741,7 @@ child widgets appear.
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-06 11:22:48 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
</ul>
|
||||
@@ -78,7 +79,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
</ul>
|
||||
@@ -78,7 +79,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
</ul>
|
||||
@@ -78,7 +79,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
</ul>
|
||||
@@ -78,7 +79,7 @@ not be explicitly created.</p>
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
</ul>
|
||||
@@ -77,7 +78,7 @@ between 0 and 1 (inclusive) to change the width of the bar.</p>
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><strong>radio</strong></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
</ul>
|
||||
@@ -78,7 +79,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><strong>sash</strong></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
</ul>
|
||||
@@ -82,7 +83,7 @@ must have a specified <code>width</code> property.</p>
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><strong>slider</strong></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
</ul>
|
||||
@@ -77,7 +78,7 @@ number between 0 and 1, inclusive.</p>
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><strong>stepper</strong></li>
|
||||
<li><a href="../widget types/text.html">text</a></li>
|
||||
</ul>
|
||||
@@ -80,7 +81,7 @@ item displayed in the content area.</p>
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
<li><a href="../widget types/radio.html">radio</a></li>
|
||||
<li><a href="../widget types/sash.html">sash</a></li>
|
||||
<li><a href="../widget types/slider.html">slider</a></li>
|
||||
<li><a href="../widget types/status.html">status</a></li>
|
||||
<li><a href="../widget types/stepper.html">stepper</a></li>
|
||||
<li><strong>text</strong></li>
|
||||
</ul>
|
||||
@@ -78,7 +79,7 @@
|
||||
</div> <!-- id="main" -->
|
||||
<div id="about">
|
||||
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.3</a></i>
|
||||
<i style="float:right;">Last updated 2015-11-29 23:24:00 </i>
|
||||
<i style="float:right;">Last updated 2015-12-05 16:15:11 </i>
|
||||
</div> <!-- id="about" -->
|
||||
</div> <!-- id="container" -->
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user