doc template

This commit is contained in:
airstruck
2015-12-16 22:23:20 -05:00
parent e9758df43d
commit f9924fb028
21 changed files with 834 additions and 519 deletions

View File

@@ -3,6 +3,8 @@ description = 'Lovely User Interfaces for Game Inventors'
full_description = 'A UI library'
file = { 'luigi' }
format = 'markdown'
style = 'css'
template = 'css'
new_type('widget', 'Widgets', true)
new_type('attrib', 'Attributes', false)

208
css/ldoc.css Normal file
View File

@@ -0,0 +1,208 @@
#product { display:none; }
#main { max-width: 960px; margin: auto !important; }
#content li { margin-left: 1.2em; }
#content_top h1, #content_top h2 { }
#content_top p, #content_top .function_list { }
#content_top { }
h1 { font-size: 200%; }
h2 { font-size: 150%; }
h1, h2 {
font-weight: normal;
margin:16px 0; padding: 0;
}
h3 {
color: #999;
text-transform: uppercase;
}
h3, h4, h5, h6 {
font-size: 100%;
font-weight: bold;
margin:16px 0 0 0; padding: 0;
}
dt strong {
font-family: monospace;
}
code {
background: #fdfdfd;
border-radius: 3px;
padding: 1px 3px;
border: 1px solid #ddd;
}
h1 code {
background: inherit;
border-radius: inherit;
padding: inherit;
border: inherit;
}
body {
margin: 0; padding:0;
font-family: sans-serif;
color: #333;
line-height: 150%;
font-size: 12px;
}
ul, ol { margin: 0; padding: 0; }
code, tt { font-family: monospace; }
span.parameter { font-family:monospace; }
span.parameter:after { content:":"; }
span.types:before { content:"("; }
span.types:after { content:")"; }
.type { font-weight: bold; font-style:italic }
strong { font-weight: bold;}
em { font-style: italic;}
a:link { color: #369; text-decoration: none; font-weight: bold; }
a:visited { color: #369; text-decoration: none; }
a:link:hover { text-decoration: underline; }
a[href^="http"] { color: #963; }
hr {
color:#cccccc;
background: #00007f;
height: 1px;
}
blockquote { margin-left: 32px; }
ul { list-style-type: disc; }
p.name {
font-family: monospace;
padding-top: 16px;
}
pre {
background-color: rgb(245, 245, 245);
border: 1px solid #ddd;
padding: 10px;
margin: 10px 0 10px 0;
overflow: auto;
font-family: monospace;
border-radius: 3px;
}
table.index { border: 1px #00007f; }
table.index td { text-align: left; vertical-align: top; }
#container {
margin: 0; padding: 0;
}
#product {
text-align: center;
}
#product big {
font-size: 14pt;
}
#main {
}
#navigation {
float: left;
width: 192px;
background-color: #eee;
box-shadow: 0 0 8px rgba(0,0,0,0.5);
padding: 16px;
border-radius: 4px;
}
#navigation br {
display: none;
}
#navigation h2 {
}
#navigation ul
{
list-style-type: none;
margin: 1px 1px 10px 1px;
}
#navigation li {
text-indent: -16px;
display: block;
margin: 4px 0px 0px 16px;
}
#navigation li li a {
margin: 0px 4px 0px -16px;
}
#content {
margin-left: 232px;
padding: 16px;
width: 700px;
position: relative;
z-index: 1;
}
#about {
clear: both;
text-align: center;
}
table.module_list, table.function_list {
border-collapse: collapse;
}
table.module_list td, table.function_list td {
border-width: 1px;
border-style: solid;
border-color: #cccccc;
padding: 8px 16px;
}
table.module_list td.name, table.function_list td.name { min-width: 200px; }
table.module_list td.summary, table.function_list td.summary { width: 100%; }
#content dl { padding: 0; margin: 0; }
dl.table dt, dl.function dt { background: #ccc;
margin-top: 32px; padding: 16px; border-radius: 4px 4px 0 0; }
dl.table dd, dl.function dd { background: #eee; border: 1px solid #ccc;
margin: 0; padding: 16px; border-radius: 0 0 4px 4px; }
dl.table h3, dl.function h3 { }
.section-header {
margin: 32px 0 16px; padding: 0;
}
.section-description {
margin: 16px 0; padding: 0;
}
/* stop sublists from having initial vertical space */
ul ul { margin-top: 0px; }
ol ul { margin-top: 0px; }
ol ol { margin-top: 0px; }
ul ol { margin-top: 0px; }
/* styles for prettification of source */
pre .comment { color: #558817; }
pre .constant { color: #a8660d; }
pre .escape { color: #844631; }
pre .keyword { color: #2239a8; font-weight: bold; }
pre .library { color: #0e7c6b; }
pre .marker { color: #512b1e; background: #fedc56; font-weight: bold; }
pre .string { color: #a8660d; }
pre .number { color: #f8660d; }
pre .operator { color: #2239a8; font-weight: bold; }
pre .preprocessor, pre .prepro { color: #a33243; }
pre .global { color: #800080; }
pre .prompt { color: #558817; }
pre .url { color: #272fc2; text-decoration: underline; }

302
css/ldoc.ltp Normal file
View File

@@ -0,0 +1,302 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>$(ldoc.title)</title>
<link rel="stylesheet" href="$(ldoc.css)" type="text/css">
</head>
<body>
<div id="container">
<div id="product">
<div id="product_logo"></div>
<div id="product_name"><big><b></b></big></div>
<div id="product_description"></div>
</div> <!-- id="product" -->
<div id="main">
# ldoc.kinds.put_kind_first = function () end -- don't move crap around
# local no_spaces = ldoc.no_spaces
# local use_li = ldoc.use_li
# local display_name = ldoc.display_name
# local iter = ldoc.modules.iter
# local function M(txt,item) return ldoc.markup(txt,item,ldoc.plain) end
# local nowrap = ldoc.wrap and '' or 'nowrap'
<!-- Menu -->
<div id="navigation">
<h1>$(ldoc.project)</h1>
# if not ldoc.single then -- reference back to project index
<ul>
# if module then
<li><a href="../$(ldoc.output).html">Index</a></li>
# else
<li><strong>Index</strong></li>
# end
</ul>
# end
# if ldoc.no_summary and module and not ldoc.one then -- bang out the functions on the side
# for kind, items in module.kinds() do
<h2>$(kind)</h2>
<ul class="nowrap">
# for item in items() do
<li><a href="#$(item.name)">$(display_name(item))</a></li>
# end
</ul>
# end
# end
# -------- contents of project ----------
# local this_mod = module and module.name
# for kind, mods, type in ldoc.kinds() do
# if ldoc.allowed_in_contents(type,module) then
<h2>$(kind)</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap')">
# for mod in mods() do local name = display_name(mod)
# if mod.name == this_mod then
<li><strong>$(name)</strong></li>
# else
<li><a href="$(ldoc.ref_to_module(mod))">$(name)</a></li>
# end
# end
# end
</ul>
# end
</div>
<div id="content">
<div id="content_top">
# if ldoc.body then -- verbatim HTML as contents; 'non-code' entries
$(ldoc.body)
# elseif module then -- module documentation
<h1>$(ldoc.module_typename(module)) <code>$(module.name)</code></h1>
<p>$(M(module.summary,module))</p>
<p>$(M(module.description,module))</p>
# if module.tags.include then
$(M(ldoc.include_file(module.tags.include)))
# end
# if module.see then
# local li,il = use_li(module.see)
<h3>See also:</h3>
<ul>
# for see in iter(module.see) do
$(li)<a href="$(ldoc.href(see))">$(see.label)</a>$(il)
# end -- for
</ul>
# end -- if see
# if module.usage then
# local li,il = use_li(module.usage)
<h3>Usage:</h3>
<ul>
# for usage in iter(module.usage) do
$(li)<pre class="example">$(ldoc.prettify(usage))</pre>$(il)
# end -- for
</ul>
# end -- if usage
# if module.info then
<h3>Info:</h3>
<ul>
# for tag, value in module.info:iter() do
<li><strong>$(tag)</strong>: $(M(value,module))</li>
# end
</ul>
# end -- if module.info
# if not ldoc.no_summary then
# -- bang out the tables of item types for this module (e.g Functions, Tables, etc)
# for kind,items in module.kinds() do
<h2><a href="#$(no_spaces(kind))">$(kind)</a></h2>
<table class="function_list">
# for item in items() do
<tr>
<td class="name" $(nowrap)><a href="#$(item.name)">$(display_name(item))</a></td>
<td class="summary">$(M(item.summary,item))</td>
</tr>
# end -- for items
</table>
#end -- for kinds
#end -- if not no_summary
</div>
# --- currently works for both Functions and Tables. The params field either contains
# --- function parameters or table fields.
# local show_return = not ldoc.no_return_or_parms
# local show_parms = show_return
# for kind, items in module.kinds() do
# local kitem = module.kinds:get_item(kind)
# local has_description = kitem and ldoc.descript(kitem) ~= ""
<h2 class="section-header $(has_description and 'has-description')"><a name="$(no_spaces(kind))"></a>$(kind)</h2>
$(M(module.kinds:get_section_description(kind),nil))
# if kitem then
# if has_description then
<div class="section-description">
$(M(ldoc.descript(kitem),kitem))
</div>
# end
# if kitem.usage then
<h3>Usage:</h3>
<pre class="example">$(ldoc.prettify(kitem.usage[1]))</pre>
# end
# end
<dl class="function">
# for item in items() do
<dt>
<a name = "$(item.name)"></a>
<strong>$(display_name(item))</strong>
# if ldoc.prettify_files and ldoc.is_file_prettified[item.module.file.filename] then
<a style="float:right;" href="$(ldoc.source_ref(item))">line $(item.lineno)</a>
# end
</dt>
<dd>
$(M(ldoc.descript(item),item))
# if ldoc.custom_tags then
# for custom in iter(ldoc.custom_tags) do
# local tag = item.tags[custom[1]]
# if tag and not custom.hidden then
# local li,il = use_li(tag)
<h3>$(custom.title or custom[1]):</h3>
<ul>
# for value in iter(tag) do
$(li)$(custom.format and custom.format(value) or M(value))$(il)
# end -- for
# end -- if tag
</ul>
# end -- iter tags
# end
# if show_parms and item.params and #item.params > 0 then
# local subnames = module.kinds:type_of(item).subnames
# if subnames then
<h3>$(subnames):</h3>
# end
<ul>
# for parm in iter(item.params) do
# local param,sublist = item:subparam(parm)
# if sublist then
<li><span class="parameter">$(sublist)</span>$(M(item.params.map[sublist],item))
<ul>
# end
# for p in iter(param) do
# local name,tp,def = item:display_name_of(p), ldoc.typename(item:type_of_param(p)), item:default_of_param(p)
<li><span class="parameter">$(name)</span>
# if tp ~= '' then
<span class="types">$(tp)</span>
# end
$(M(item.params.map[p],item))
# if def == true then
(<em>optional</em>)
# elseif def then
(<em>default</em> $(def))
# end
# if item:readonly(p) then
<em>readonly</em>
# end
</li>
# end
# if sublist then
</li></ul>
# end
# end -- for
</ul>
# end -- if params
# if show_return and item.retgroups then local groups = item.retgroups
<h3>Returns:</h3>
# for i,group in ldoc.ipairs(groups) do local li,il = use_li(group)
<ol>
# for r in group:iter() do local type, ctypes = item:return_type(r); local rt = ldoc.typename(type)
$(li)
# if rt ~= '' then
<span class="types">$(rt)</span>
# end
$(M(r.text,item))$(il)
# if ctypes then
<ul>
# for c in ctypes:iter() do
<li><span class="parameter">$(c.name)</span>
<span class="types">$(ldoc.typename(c.type))</span>
$(M(c.comment,item))</li>
# end
</ul>
# end -- if ctypes
# end -- for r
</ol>
# if i < #groups then
<h3>Or</h3>
# end
# end -- for group
# end -- if returns
# if show_return and item.raise then
<h3>Raises:</h3>
$(M(item.raise,item))
# end
# if item.see then
# local li,il = use_li(item.see)
<h3>See also:</h3>
<ul>
# for see in iter(item.see) do
$(li)<a href="$(ldoc.href(see))">$(see.label)</a>$(il)
# end -- for
</ul>
# end -- if see
# if item.usage then
# local li,il = use_li(item.usage)
<h3>Usage:</h3>
<ul>
# for usage in iter(item.usage) do
$(li)<pre class="example">$(ldoc.prettify(usage))</pre>$(il)
# end -- for
</ul>
# end -- if usage
</dd>
# end -- for items
</dl>
# end -- for kinds
# else -- if module; project-level contents
# if ldoc.description then
<h2>$(M(ldoc.description,nil))</h2>
# end
# if ldoc.full_description then
<p>$(M(ldoc.full_description,nil))</p>
# end
# for kind, mods in ldoc.kinds() do
<h2>$(kind)</h2>
# kind = kind:lower()
<table class="module_list">
# for m in mods() do
<tr>
<td class="name" $(nowrap)><a href="$(no_spaces(kind))/$(m.name).html">$(m.name)</a></td>
<td class="summary">$(M(ldoc.strip_header(m.summary),m))</td>
</tr>
# end -- for modules
</table>
# end -- for kinds
# end -- if module
</div> <!-- id="content" -->
</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 $(ldoc.updatetime) </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>

BIN
css/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,27 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Contents</h2>
<ul>
<li><a href="#Tables">Tables</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<li><strong>Event</strong></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -57,14 +43,21 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="nowrap">
<li><strong>Event</strong></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
</ul>
</div>
<div id="content">
<div id="content_top">
<h1>Class <code>Event</code></h1>
<p>Event class.</p>
<p>
@@ -80,9 +73,8 @@
</tr>
</table>
<br/>
<br/>
</div>
<h2 class="section-header "><a name="Tables"></a>Tables</h2>
@@ -165,7 +157,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,28 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Contents</h2>
<ul>
<li><a href="#Functions">Functions</a></li>
<li><a href="#Methods">Methods</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<li><a href="../classes/Event.html">Event</a></li>
<li><strong>Layout</strong></li>
<li><a href="../classes/Widget.html">Widget</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -58,14 +43,21 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><strong>Layout</strong></li>
<li><a href="../classes/Widget.html">Widget</a></li>
</ul>
</div>
<div id="content">
<div id="content_top">
<h1>Class <code>Layout</code></h1>
<p>A Layout contains a tree of widgets with a single <code>root</code> widget.</p>
<p>Layouts will resize to fit the window unless a <code>top</code> or <code>left</code>
@@ -130,9 +122,8 @@ and are trapped by the first layout that can handle the event
</tr>
</table>
<br/>
<br/>
</div>
<h2 class="section-header "><a name="Functions"></a>Functions</h2>
Methods
@@ -402,7 +393,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,31 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Contents</h2>
<ul>
<li><a href="#Functions">Functions</a></li>
<li><a href="#Methods">Methods</a></li>
<li><a href="#API_Properties">API Properties </a></li>
<li><a href="#Internal_Properties">Internal Properties </a></li>
<li><a href="#Constructor">Constructor</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><strong>Widget</strong></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -61,14 +43,21 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><strong>Widget</strong></li>
</ul>
</div>
<div id="content">
<div id="content_top">
<h1>Class <code>Widget</code></h1>
<p>Widget class.</p>
<p>
@@ -76,13 +65,6 @@
</p>
<h2><a href="#Functions">Functions</a></h2>
<table class="function_list">
<tr>
<td class="name" nowrap><a href="#Widget.register">Widget.register (name, decorator)</a></td>
<td class="summary">Register a custom widget type.</td>
</tr>
</table>
<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
<tr>
@@ -196,6 +178,13 @@
<td class="summary">The <code>Text</code> object associated with the widget.</td>
</tr>
</table>
<h2><a href="#Static_Functions">Static Functions </a></h2>
<table class="function_list">
<tr>
<td class="name" nowrap><a href="#Widget.register">Widget.register (name, decorator)</a></td>
<td class="summary">Register a custom widget type.</td>
</tr>
</table>
<h2><a href="#Constructor">Constructor</a></h2>
<table class="function_list">
<tr>
@@ -204,39 +193,9 @@
</tr>
</table>
<br/>
<br/>
</div>
<h2 class="section-header "><a name="Functions"></a>Functions</h2>
Methods
<dl class="function">
<dt>
<a name = "Widget.register"></a>
<strong>Widget.register (name, decorator)</strong>
</dt>
<dd>
Register a custom widget type.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">name</span>
<span class="types"><a class="type" href="http://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
A unique name for this type of widget.
</li>
<li><span class="parameter">decorator</span>
<span class="types"><span class="type">function(Widget)</span></span>
An initialization function for this type of widget.
</li>
</ul>
</dd>
</dl>
<h2 class="section-header "><a name="Methods"></a>Methods</h2>
<dl class="function">
@@ -837,6 +796,35 @@ initializers should run on the widget.
</dd>
</dl>
<h2 class="section-header "><a name="Static_Functions"></a>Static Functions </h2>
<dl class="function">
<dt>
<a name = "Widget.register"></a>
<strong>Widget.register (name, decorator)</strong>
</dt>
<dd>
Register a custom widget type.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">name</span>
<span class="types"><a class="type" href="http://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
A unique name for this type of widget.
</li>
<li><span class="parameter">decorator</span>
<span class="types"><span class="type">function(Widget)</span></span>
An initialization function for this type of widget.
</li>
</ul>
</dd>
</dl>
<h2 class="section-header "><a name="Constructor"></a>Constructor</h2>
@@ -882,7 +870,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="ldoc.css" type="text/css" />
<link rel="stylesheet" href="ldoc.css" type="text/css">
</head>
<body>
@@ -23,14 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><strong>Index</strong></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -44,11 +43,11 @@
<li><a href="widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="classes/Event.html">Event</a></li>
<li><a href="classes/Layout.html">Layout</a></li>
<li><a href="classes/Widget.html">Widget</a></li>
@@ -58,6 +57,7 @@
<div id="content">
<div id="content_top">
<h2>Lovely User Interfaces for Game Inventors</h2>
<p>A UI library</p>
@@ -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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,103 +1,74 @@
/* BEGIN RESET
#product { display:none; }
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.8.2r1
*/
html {
color: #000;
background: #FFF;
#main { max-width: 960px; margin: auto !important; }
#content li { margin-left: 1.2em; }
#content_top h1, #content_top h2 { }
#content_top p, #content_top .function_list { }
#content_top { }
h1 { font-size: 200%; }
h2 { font-size: 150%; }
h1, h2 {
font-weight: normal;
margin:16px 0; padding: 0;
}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td {
margin: 0;
padding: 0;
h3 {
color: #999;
text-transform: uppercase;
}
table {
border-collapse: collapse;
border-spacing: 0;
h3, h4, h5, h6 {
font-size: 100%;
font-weight: bold;
margin:16px 0 0 0; padding: 0;
}
fieldset,img {
border: 0;
dt strong {
font-family: monospace;
}
address,caption,cite,code,dfn,em,strong,th,var,optgroup {
font-style: inherit;
font-weight: inherit;
code {
background: #fdfdfd;
border-radius: 3px;
padding: 1px 3px;
border: 1px solid #ddd;
}
del,ins {
text-decoration: none;
h1 code {
background: inherit;
border-radius: inherit;
padding: inherit;
border: inherit;
}
li {
list-style: disc;
margin-left: 20px;
}
caption,th {
text-align: left;
}
h1,h2,h3,h4,h5,h6 {
font-size: 100%;
font-weight: bold;
}
q:before,q:after {
content: '';
}
abbr,acronym {
border: 0;
font-variant: normal;
}
sup {
vertical-align: baseline;
}
sub {
vertical-align: baseline;
}
legend {
color: #000;
}
input,button,textarea,select,optgroup,option {
font-family: inherit;
font-size: inherit;
font-style: inherit;
font-weight: inherit;
}
input,button,textarea,select {*font-size:100%;
}
/* END RESET */
body {
margin-left: 1em;
margin-right: 1em;
font-family: arial, helvetica, geneva, sans-serif;
background-color: #ffffff; margin: 0px;
margin: 0; padding:0;
font-family: sans-serif;
color: #333;
line-height: 150%;
font-size: 12px;
}
ul, ol { margin: 0; padding: 0; }
code, tt { font-family: monospace; font-size: 1.1em; }
code, tt { font-family: monospace; }
span.parameter { font-family:monospace; }
span.parameter:after { content:":"; }
span.types:before { content:"("; }
span.types:after { content:")"; }
.type { font-weight: bold; font-style:italic }
body, p, td, th { font-size: .95em; line-height: 1.2em;}
p, ul { margin: 10px 0 0 0px;}
strong { font-weight: bold;}
em { font-style: italic;}
h1 {
font-size: 1.5em;
margin: 0 0 20px 0;
}
h2, h3, h4 { margin: 15px 0 10px 0; }
h2 { font-size: 1.25em; }
h3 { font-size: 1.15em; }
h4 { font-size: 1.06em; }
a:link { font-weight: bold; color: #004080; text-decoration: none; }
a:visited { font-weight: bold; color: #006699; text-decoration: none; }
a:link { color: #369; text-decoration: none; font-weight: bold; }
a:visited { color: #369; text-decoration: none; }
a:link:hover { text-decoration: underline; }
a[href^="http"] { color: #963; }
hr {
color:#cccccc;
@@ -105,174 +76,114 @@ hr {
height: 1px;
}
blockquote { margin-left: 3em; }
blockquote { margin-left: 32px; }
ul { list-style-type: disc; }
p.name {
font-family: "Andale Mono", monospace;
padding-top: 1em;
font-family: monospace;
padding-top: 16px;
}
pre {
background-color: rgb(245, 245, 245);
border: 1px solid #C0C0C0; /* silver */
border: 1px solid #ddd;
padding: 10px;
margin: 10px 0 10px 0;
overflow: auto;
font-family: "Andale Mono", monospace;
font-family: monospace;
border-radius: 3px;
}
pre.example {
font-size: .85em;
}
table.index { border: 1px #00007f; }
table.index td { text-align: left; vertical-align: top; }
#container {
margin-left: 1em;
margin-right: 1em;
background-color: #f0f0f0;
margin: 0; padding: 0;
}
#product {
text-align: center;
border-bottom: 1px solid #cccccc;
background-color: #ffffff;
}
#product big {
font-size: 2em;
font-size: 14pt;
}
#main {
background-color: #f0f0f0;
border-left: 2px solid #cccccc;
}
#navigation {
float: left;
width: 14em;
vertical-align: top;
background-color: #f0f0f0;
overflow: visible;
width: 192px;
background-color: #eee;
box-shadow: 0 0 8px rgba(0,0,0,0.5);
padding: 16px;
border-radius: 4px;
}
#navigation br {
display: none;
}
#navigation h2 {
background-color:#e7e7e7;
font-size:1.1em;
color:#000000;
text-align: left;
padding:0.2em;
border-top:1px solid #dddddd;
border-bottom:1px solid #dddddd;
}
#navigation ul
{
font-size:1em;
list-style-type: none;
margin: 1px 1px 10px 1px;
}
#navigation li {
text-indent: -1em;
text-indent: -16px;
display: block;
margin: 3px 0px 0px 22px;
margin: 4px 0px 0px 16px;
}
#navigation li li a {
margin: 0px 3px 0px -1em;
margin: 0px 4px 0px -16px;
}
#content {
margin-left: 14em;
padding: 1em;
margin-left: 232px;
padding: 16px;
width: 700px;
border-left: 2px solid #cccccc;
border-right: 2px solid #cccccc;
background-color: #ffffff;
position: relative;
z-index: 1;
}
#about {
clear: both;
padding: 5px;
border-top: 2px solid #cccccc;
background-color: #ffffff;
text-align: center;
}
@media print {
body {
font: 12pt "Times New Roman", "TimeNR", Times, serif;
}
a { font-weight: bold; color: #004080; text-decoration: underline; }
#main {
background-color: #ffffff;
border-left: 0px;
}
#container {
margin-left: 2%;
margin-right: 2%;
background-color: #ffffff;
}
#content {
padding: 1em;
background-color: #ffffff;
}
#navigation {
display: none;
}
pre.example {
font-family: "Andale Mono", monospace;
font-size: 10pt;
page-break-inside: avoid;
}
}
table.module_list {
border-width: 1px;
border-style: solid;
border-color: #cccccc;
table.module_list, table.function_list {
border-collapse: collapse;
}
table.module_list td {
border-width: 1px;
padding: 3px;
border-style: solid;
border-color: #cccccc;
}
table.module_list td.name { background-color: #f0f0f0; min-width: 200px; }
table.module_list td.summary { width: 100%; }
table.function_list {
table.module_list td, table.function_list td {
border-width: 1px;
border-style: solid;
border-color: #cccccc;
border-collapse: collapse;
padding: 8px 16px;
}
table.function_list td {
border-width: 1px;
padding: 3px;
border-style: solid;
border-color: #cccccc;
}
table.function_list td.name { background-color: #f0f0f0; min-width: 200px; }
table.function_list td.summary { width: 100%; }
table.module_list td.name, table.function_list td.name { min-width: 200px; }
table.module_list td.summary, table.function_list td.summary { width: 100%; }
ul.nowrap {
overflow:auto;
white-space:nowrap;
}
#content dl { padding: 0; margin: 0; }
dl.table dt, dl.function dt { background: #ccc;
margin-top: 32px; padding: 16px; border-radius: 4px 4px 0 0; }
dl.table dd, dl.function dd { background: #eee; border: 1px solid #ccc;
margin: 0; padding: 16px; border-radius: 0 0 4px 4px; }
dl.table h3, dl.function h3 { }
dl.table dt, dl.function dt {border-top: 1px solid #ccc; padding-top: 1em;}
dl.table dd, dl.function dd {padding-bottom: 1em; margin: 10px 0 0 20px;}
dl.table h3, dl.function h3 {font-size: .95em;}
.section-header {
margin: 32px 0 16px; padding: 0;
}
.section-description {
margin: 16px 0; padding: 0;
}
/* stop sublists from having initial vertical space */
ul ul { margin-top: 0px; }
@@ -280,25 +191,18 @@ ol ul { margin-top: 0px; }
ol ol { margin-top: 0px; }
ul ol { margin-top: 0px; }
/* make the target distinct; helps when we're navigating to a function */
a:target + * {
background-color: #FF9;
}
/* styles for prettification of source */
pre .comment { color: #558817; }
pre .constant { color: #a8660d; }
pre .escape { color: #844631; }
pre .keyword { color: #aa5050; font-weight: bold; }
pre .keyword { color: #2239a8; font-weight: bold; }
pre .library { color: #0e7c6b; }
pre .marker { color: #512b1e; background: #fedc56; font-weight: bold; }
pre .string { color: #8080ff; }
pre .string { color: #a8660d; }
pre .number { color: #f8660d; }
pre .operator { color: #2239a8; font-weight: bold; }
pre .preprocessor, pre .prepro { color: #a33243; }
pre .global { color: #800080; }
pre .user-keyword { color: #800080; }
pre .prompt { color: #558817; }
pre .url { color: #272fc2; text-decoration: underline; }

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,30 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Contents</h2>
<ul>
<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>
<li><a href="#Visual_Attributes">Visual Attributes </a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<li><strong>attribute</strong></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -59,8 +42,12 @@
<li><a href="../widgets/stepper.html">stepper</a></li>
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
<li><strong>attribute</strong></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -70,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Module <code>attribute</code></h1>
<p>Widget attributes.</p>
<p>This module defines "attributes" (special fields) that are
@@ -201,9 +189,8 @@ to recalculate their size and position.</p>
</tr>
</table>
<br/>
<br/>
</div>
<h2 class="section-header "><a name="Attributes"></a>Attributes</h2>
@@ -755,7 +742,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,17 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><strong>button</strong></li>
<li><a href="../widgets/check.html">check</a></li>
<li><a href="../widgets/menu.html">menu</a></li>
@@ -47,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -61,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>button</code></h1>
<p>A button.</p>
<p>Buttons have no special behavior beyond that of generic widgets,
@@ -68,30 +65,28 @@ 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,
<span class="comment">-- create a layout containing only a button
</span><span class="keyword">local</span> layout = Layout {
<span class="global">type</span> = <span class="string">'button'</span>,
id = <span class="string">'exampleButton'</span>,
text = <span class="string">'Press me'</span>,
width = <span class="number">100</span>,
height = <span class="number">32</span>,
}
-- handle Press events
layout.exampleButton:onPress(function (event)
print &apos;You pressed the button.&apos;
end)
<span class="comment">-- handle Press events
</span>layout.exampleButton:onPress(<span class="keyword">function</span> (event)
<span class="global">print</span> <span class="string">'You pressed the button.'</span>
<span class="keyword">end</span>)
-- show the layout
layout:show()
</pre>
<span class="comment">-- show the layout
</span>layout:show()</pre>
</ul>
<br/>
<br/>
</div>
@@ -99,7 +94,7 @@ layout:show()
</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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,17 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../widgets/button.html">button</a></li>
<li><strong>check</strong></li>
<li><a href="../widgets/menu.html">menu</a></li>
@@ -47,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -61,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>check</code></h1>
<p>A check box.</p>
<p>Check boxes toggle their <a href="../modules/attribute.html#value">value</a> attribute between
@@ -73,9 +70,8 @@ standard themes, the widget's value should be indicated in some other way.</p>
<br/>
<br/>
</div>
@@ -83,7 +79,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,17 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../widgets/button.html">button</a></li>
<li><a href="../widgets/check.html">check</a></li>
<li><strong>menu</strong></li>
@@ -47,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -61,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>menu</code></h1>
<p>A menu bar.</p>
<p>
@@ -69,9 +66,8 @@
<br/>
<br/>
</div>
@@ -79,7 +75,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,17 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -47,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -61,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>menu.item</code></h1>
<p>A menu item.</p>
<p>When a <a href="../widgets/menu.html#">menu</a> is created, any sub-items not having a specified type
@@ -69,9 +66,8 @@ not be explicitly created.</p>
<br/>
<br/>
</div>
@@ -79,7 +75,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,17 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -47,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -61,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>progress</code></h1>
<p>A progress bar.</p>
<p>Set the widget's <code>value</code> property to a decimal value
@@ -68,9 +65,8 @@ between 0 and 1 (inclusive) to change the width of the bar.</p>
<br/>
<br/>
</div>
@@ -78,7 +74,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,21 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Contents</h2>
<ul>
<li><a href="#Special_Attributes">Special Attributes </a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -51,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -65,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>radio</code></h1>
<p>A radio widget.</p>
<p>When pressed, a radio widget's <a href="../modules/attribute.html#value">value</a> changes to
@@ -85,9 +78,8 @@ standard themes, the widget's value should be indicated in some other way.</p>
</tr>
</table>
<br/>
<br/>
</div>
<h2 class="section-header "><a name="Special_Attributes"></a>Special Attributes </h2>
@@ -119,7 +111,7 @@ in the same group change to <code>false</code>.
</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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,17 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -47,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -61,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>sash</code></h1>
<p>A sash.</p>
<p>Dragging this widget resizes the widgets adjacent to it.
@@ -73,24 +70,22 @@ 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 },
<span class="comment">-- create a layout containing two widgets separated by a sash
</span><span class="keyword">local</span> layout = Layout {
<span class="global">type</span> = <span class="string">'panel'</span>, flow = <span class="string">'x'</span>,
{ text = <span class="string">'This is the left side'</span>, wrap = <span class="keyword">true</span>, width = <span class="number">100</span> },
{ <span class="global">type</span> = <span class="string">'sash'</span> },
{ text = <span class="string">'This is the right side'</span>, wrap = <span class="keyword">true</span> },
}
-- show the layout
layout:show()
</pre>
<span class="comment">-- show the layout
</span>layout:show()</pre>
</ul>
<br/>
<br/>
</div>
@@ -98,7 +93,7 @@ layout:show()
</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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,17 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -47,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -61,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>slider</code></h1>
<p>A slider.</p>
<p>Dragging this widget changes its <code>value</code> property to a
@@ -68,9 +65,8 @@ number between 0 and 1, inclusive.</p>
<br/>
<br/>
</div>
@@ -78,7 +74,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,17 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -47,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -61,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>status</code></h1>
<p>A status bar.</p>
<p>This widget will display the <a href="../modules/attribute.html#status">status</a> attribute of the
@@ -70,25 +67,23 @@ 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; },
<span class="comment">-- create a layout containing some buttons and a status bar
</span><span class="keyword">local</span> layout = Layout {
{ <span class="global">type</span> = <span class="string">'panel'</span>, flow = <span class="string">'x'</span>,
{ text = <span class="string">'Do stuff'</span>, status = <span class="string">'Press to do stuff'</span> },
{ text = <span class="string">'Quit'</span>, status = <span class="string">'Press to quit'</span> },
},
{ type = &apos;status&apos;, height = 24 },
{ <span class="global">type</span> = <span class="string">'status'</span>, height = <span class="number">24</span> },
}
-- show the layout
layout:show()
</pre>
<span class="comment">-- show the layout
</span>layout:show()</pre>
</ul>
<br/>
<br/>
</div>
@@ -96,7 +91,7 @@ layout:show()
</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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,21 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Contents</h2>
<ul>
<li><a href="#Special_Attributes">Special Attributes </a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -51,11 +43,11 @@
<li><a href="../widgets/text.html">text</a></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -65,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>stepper</code></h1>
<p>A stepper.</p>
<p>This widget is composed of two buttons and a content area.
@@ -86,9 +79,8 @@ item displayed in the content area.</p>
</tr>
</table>
<br/>
<br/>
</div>
<h2 class="section-header "><a name="Special_Attributes"></a>Special Attributes </h2>
@@ -132,7 +124,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>

View File

@@ -1,10 +1,9 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<meta charset="utf-8">
<title>Reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
<link rel="stylesheet" href="../ldoc.css" type="text/css">
</head>
<body>
@@ -23,21 +22,14 @@
<!-- Menu -->
<div id="navigation">
<br/>
<h1>LUIGI</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Contents</h2>
<ul>
<li><a href="#Special_Attributes">Special Attributes </a></li>
</ul>
<h2>Widgets</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<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>
@@ -51,11 +43,11 @@
<li><strong>text</strong></li>
</ul>
<h2>Modules</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../modules/attribute.html">attribute</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<ul class="nowrap">
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
@@ -65,6 +57,7 @@
<div id="content">
<div id="content_top">
<h1>Widget <code>text</code></h1>
<p>A text entry area.</p>
<p>
@@ -80,9 +73,8 @@
</tr>
</table>
<br/>
<br/>
</div>
<h2 class="section-header "><a name="Special_Attributes"></a>Special Attributes </h2>
@@ -112,7 +104,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-15 19:13:36 </i>
<i style="float:right;">Last updated 2015-12-16 14:12:04 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>