support vertical slider

This commit is contained in:
airstruck
2015-12-07 21:56:56 -05:00
parent 66f652b295
commit c43d8bcf22
27 changed files with 251 additions and 184 deletions

View File

@@ -165,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -402,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -621,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -136,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -741,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -68,22 +68,22 @@ but themes should give buttons an appropriate appearance.</p>
<h3>Usage:</h3>
<ul>
<pre class="example">
-- create a layout containing only a button
local layout = Layout {
type = &apos;button&apos;,
id = &apos;exampleButton&apos;,
text = &apos;Press me&apos;,
width = 100,
height = 32,
}
-- create a layout containing only a button
local layout = Layout {
type = &apos;button&apos;,
id = &apos;exampleButton&apos;,
text = &apos;Press me&apos;,
width = 100,
height = 32,
}
-- handle Press events
layout.exampleButton:onPress(function (event)
print &apos;You pressed the button.&apos;
end)
-- handle Press events
layout.exampleButton:onPress(function (event)
print &apos;You pressed the button.&apos;
end)
-- show the layout
layout:show()
-- show the layout
layout:show()
</pre>
</ul>
@@ -99,7 +99,7 @@ but themes should give buttons an appropriate appearance.</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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -83,7 +83,7 @@ standard themes, the widget's value should be indicated in some other way.</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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -79,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -79,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -78,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -86,7 +86,7 @@ standard themes, the widget's value should be indicated in some other way.</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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -73,16 +73,16 @@ should have a specified <a href="../modules/attribute.html#width">width</a> attr
<h3>Usage:</h3>
<ul>
<pre class="example">
-- create a layout containing two widgets separated by a sash
local layout = Layout {
type = &apos;panel&apos;, flow = &apos;x&apos;,
{ text = &apos;This is the left side&apos;, wrap = true, width = 100 },
{ type = &apos;sash&apos; },
{ text = &apos;This is the right side&apos;, wrap = true },
}
-- create a layout containing two widgets separated by a sash
local layout = Layout {
type = &apos;panel&apos;, flow = &apos;x&apos;,
{ text = &apos;This is the left side&apos;, wrap = true, width = 100 },
{ type = &apos;sash&apos; },
{ text = &apos;This is the right side&apos;, wrap = true },
}
-- show the layout
layout:show()
-- show the layout
layout:show()
</pre>
</ul>
@@ -98,7 +98,7 @@ should have a specified <a href="../modules/attribute.html#width">width</a> attr
</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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -78,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -70,17 +70,17 @@ display status messages.</p>
<h3>Usage:</h3>
<ul>
<pre class="example">
-- create a layout containing some buttons and a status bar
local layout = Layout {
{ type = &apos;panel&apos;, flow = &apos;x&apos;,
{ text = &apos;Do stuff&apos;, status = &apos;Press to do stuff&apos; },
{ text = &apos;Quit&apos;, status = &apos;Press to quit&apos; },
},
{ type = &apos;status&apos;, height = 24 },
}
-- create a layout containing some buttons and a status bar
local layout = Layout {
{ type = &apos;panel&apos;, flow = &apos;x&apos;,
{ text = &apos;Do stuff&apos;, status = &apos;Press to do stuff&apos; },
{ text = &apos;Quit&apos;, status = &apos;Press to quit&apos; },
},
{ type = &apos;status&apos;, height = 24 },
}
-- show the layout
layout:show()
-- show the layout
layout:show()
</pre>
</ul>
@@ -96,7 +96,7 @@ display status messages.</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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -81,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -79,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-12-07 03:00:19 </i>
<i style="float:right;">Last updated 2015-12-07 05:47:24 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>