2016-08-21 07:49:16 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
|
|
<head>
|
|
|
|
<title>Documentation</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">
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Menu -->
|
|
|
|
|
|
|
|
<div id="navigation">
|
|
|
|
<br/>
|
|
|
|
<h1>Pop.Box()</h1>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="../index.html">Index</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h2>Contents</h2>
|
|
|
|
<ul>
|
2017-04-08 20:44:31 +00:00
|
|
|
<li><a href="#Issues">Issues</a></li>
|
2016-08-21 07:49:16 +00:00
|
|
|
<li><a href="#Methods">Methods</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Classes</h2>
|
|
|
|
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
|
|
|
<li><strong>element</strong></li>
|
2017-04-08 20:44:31 +00:00
|
|
|
<li><a href="../classes/window.html">window</a></li>
|
2016-08-21 07:49:16 +00:00
|
|
|
</ul>
|
|
|
|
<h2>Modules</h2>
|
|
|
|
<ul class="$(kind=='Topics' and '' or 'nowrap'">
|
|
|
|
<li><a href="../modules/pop.html">pop</a></li>
|
|
|
|
<li><a href="../modules/main.html">main</a></li>
|
|
|
|
<li><a href="../modules/util.html">util</a></li>
|
|
|
|
<li><a href="../modules/Element.html">Element</a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
|
|
|
<h1>Class <code>element</code></h1>
|
|
|
|
<p>A generic element every element must inherit from.</p>
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<h3>Info:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><strong>Copyright</strong>: Paul Liverman III (2016)</li>
|
|
|
|
<li><strong>License</strong>: The MIT License (MIT)</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
2017-04-08 20:44:31 +00:00
|
|
|
<h2><a href="#Issues">Issues</a></h2>
|
|
|
|
<table class="function_list">
|
|
|
|
<tr>
|
2017-04-11 05:47:51 +00:00
|
|
|
<td class="name" nowrap><a href="#element.new-todo7">element.new-todo7</a></td>
|
2017-04-08 20:44:31 +00:00
|
|
|
<td class="summary">doc me</td>
|
|
|
|
</tr>
|
2017-04-09 09:02:14 +00:00
|
|
|
<tr>
|
2017-04-11 05:47:51 +00:00
|
|
|
<td class="name" nowrap><a href="#element.new-todo7-todo8">element.new-todo7-todo8</a></td>
|
2017-04-09 09:02:14 +00:00
|
|
|
<td class="summary">document this</td>
|
|
|
|
</tr>
|
2017-04-08 20:44:31 +00:00
|
|
|
</table>
|
2016-08-21 07:49:16 +00:00
|
|
|
<h2><a href="#Methods">Methods</a></h2>
|
|
|
|
<table class="function_list">
|
|
|
|
<tr>
|
2016-09-08 04:42:19 +00:00
|
|
|
<td class="name" nowrap><a href="#element.new">element.new (parent, data)</a></td>
|
2016-08-23 01:19:58 +00:00
|
|
|
<td class="summary">Constructor expects nothing, or a data table describing it.</td>
|
2016-08-21 07:49:16 +00:00
|
|
|
</tr>
|
2016-09-08 04:42:19 +00:00
|
|
|
<tr>
|
|
|
|
<td class="name" nowrap><a href="#element.setSize">element.setSize (w, h)</a></td>
|
|
|
|
<td class="summary">Sets an element's width/height.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="name" nowrap><a href="#element.getSize">element.getSize (self)</a></td>
|
|
|
|
<td class="summary">Returns an element's width and height.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="name" nowrap><a href="#element.setWidth">element.setWidth (w)</a></td>
|
|
|
|
<td class="summary">Sets an element's width.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="name" nowrap><a href="#element.getWidth">element.getWidth (self)</a></td>
|
|
|
|
<td class="summary">Returns an element's width.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="name" nowrap><a href="#element.setHeight">element.setHeight (h)</a></td>
|
|
|
|
<td class="summary">Sets an element's height.</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="name" nowrap><a href="#element.getHeight">element.getHeight (self)</a></td>
|
|
|
|
<td class="summary">Returns an element's height.</td>
|
|
|
|
</tr>
|
2017-04-08 20:44:31 +00:00
|
|
|
<tr>
|
|
|
|
<td class="name" nowrap><a href="#element.move">element.move (self, x, y)</a></td>
|
|
|
|
<td class="summary">Moves an element by specified x/y.</td>
|
|
|
|
</tr>
|
2017-04-09 09:02:14 +00:00
|
|
|
<tr>
|
|
|
|
<td class="name" nowrap><a href="#element.delete">element.delete (self)</a></td>
|
|
|
|
<td class="summary">Deletes references to this element and then deletes it.</td>
|
|
|
|
</tr>
|
2016-08-21 07:49:16 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2017-04-08 20:44:31 +00:00
|
|
|
<h2 class="section-header "><a name="Issues"></a>Issues</h2>
|
|
|
|
|
|
|
|
<dl class="function">
|
|
|
|
<dt>
|
2017-04-11 05:47:51 +00:00
|
|
|
<a name = "element.new-todo7"></a>
|
|
|
|
<strong>element.new-todo7</strong>
|
2017-04-08 20:44:31 +00:00
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
doc me
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-09 09:02:14 +00:00
|
|
|
</dd>
|
|
|
|
<dt>
|
2017-04-11 05:47:51 +00:00
|
|
|
<a name = "element.new-todo7-todo8"></a>
|
|
|
|
<strong>element.new-todo7-todo8</strong>
|
2017-04-09 09:02:14 +00:00
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
document this
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-08 20:44:31 +00:00
|
|
|
</dd>
|
|
|
|
</dl>
|
2016-08-21 07:49:16 +00:00
|
|
|
<h2 class="section-header "><a name="Methods"></a>Methods</h2>
|
|
|
|
|
|
|
|
<dl class="function">
|
|
|
|
<dt>
|
|
|
|
<a name = "element.new"></a>
|
2016-09-08 04:42:19 +00:00
|
|
|
<strong>element.new (parent, data)</strong>
|
2016-08-21 07:49:16 +00:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2016-08-23 01:19:58 +00:00
|
|
|
Constructor expects nothing, or a data table describing it.
|
2016-08-21 07:49:16 +00:00
|
|
|
|
|
|
|
|
2016-09-08 04:42:19 +00:00
|
|
|
<h3>Parameters:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><span class="parameter">parent</span>
|
|
|
|
<span class="types"><span class="type">Element</span> or <span class="type">false</span></span>
|
|
|
|
The parent element.
|
|
|
|
</li>
|
|
|
|
<li><span class="parameter">data</span>
|
|
|
|
<span class="types"><a class="type" href="http://www.lua.org/manual/5.1/manual.html#5.5">table</a></span>
|
|
|
|
[opt] The data (state) for this element.
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
|
|
<ol>
|
|
|
|
|
|
|
|
<span class="types"><a class="type" href="../classes/element.html#">element</a></span>
|
|
|
|
self
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<a name = "element.setSize"></a>
|
|
|
|
<strong>element.setSize (w, h)</strong>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
2017-04-08 20:44:31 +00:00
|
|
|
Sets an element's width/height. Fixes alignment if needed.
|
2016-09-08 04:42:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><span class="parameter">w</span>
|
|
|
|
<span class="types"><span class="type">integer</span></span>
|
|
|
|
[opt] Width.
|
|
|
|
</li>
|
|
|
|
<li><span class="parameter">h</span>
|
|
|
|
<span class="types"><span class="type">integer</span></span>
|
|
|
|
[opt] Height.
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
|
|
<ol>
|
|
|
|
|
|
|
|
<span class="types"><a class="type" href="../classes/element.html#">element</a></span>
|
|
|
|
self
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<a name = "element.getSize"></a>
|
|
|
|
<strong>element.getSize (self)</strong>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
Returns an element's width and height.
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><span class="parameter">self</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
|
|
<ol>
|
|
|
|
<li>
|
|
|
|
<span class="types"><span class="type">integer</span></span>
|
|
|
|
Width.</li>
|
|
|
|
<li>
|
|
|
|
<span class="types"><span class="type">integer</span></span>
|
|
|
|
Height.</li>
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<a name = "element.setWidth"></a>
|
|
|
|
<strong>element.setWidth (w)</strong>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
Sets an element's width.
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><span class="parameter">w</span>
|
|
|
|
<span class="types"><span class="type">integer</span></span>
|
|
|
|
Width.
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
|
|
<ol>
|
|
|
|
|
|
|
|
<span class="types"><a class="type" href="../classes/element.html#">element</a></span>
|
|
|
|
self
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<a name = "element.getWidth"></a>
|
|
|
|
<strong>element.getWidth (self)</strong>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
Returns an element's width.
|
|
|
|
|
|
|
|
|
2016-08-21 07:49:16 +00:00
|
|
|
<h3>Parameters:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><span class="parameter">self</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
2016-09-08 04:42:19 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
|
|
<ol>
|
2016-08-23 01:19:58 +00:00
|
|
|
|
2016-09-08 04:42:19 +00:00
|
|
|
<span class="types"><span class="type">integer</span></span>
|
|
|
|
Width.
|
|
|
|
</ol>
|
2016-08-23 01:19:58 +00:00
|
|
|
|
|
|
|
|
2016-09-08 04:42:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<a name = "element.setHeight"></a>
|
|
|
|
<strong>element.setHeight (h)</strong>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
Sets an element's height.
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><span class="parameter">h</span>
|
|
|
|
<span class="types"><span class="type">integer</span></span>
|
|
|
|
Height.
|
2016-08-23 01:19:58 +00:00
|
|
|
</li>
|
2016-09-08 04:42:19 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
|
|
<ol>
|
|
|
|
|
|
|
|
<span class="types"><a class="type" href="../classes/element.html#">element</a></span>
|
|
|
|
self
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<a name = "element.getHeight"></a>
|
|
|
|
<strong>element.getHeight (self)</strong>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
Returns an element's height.
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><span class="parameter">self</span>
|
2016-08-21 07:49:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2016-09-08 04:42:19 +00:00
|
|
|
<h3>Returns:</h3>
|
|
|
|
<ol>
|
|
|
|
|
|
|
|
<span class="types"><span class="type">integer</span></span>
|
|
|
|
Height.
|
|
|
|
</ol>
|
2016-08-21 07:49:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-08 20:44:31 +00:00
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<a name = "element.move"></a>
|
|
|
|
<strong>element.move (self, x, y)</strong>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
Moves an element by specified x/y.
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><span class="parameter">self</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li><span class="parameter">x</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
<li><span class="parameter">y</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<h3>Returns:</h3>
|
|
|
|
<ol>
|
|
|
|
|
|
|
|
<span class="types"><a class="type" href="../classes/element.html#">element</a></span>
|
|
|
|
self
|
|
|
|
</ol>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-09 09:02:14 +00:00
|
|
|
</dd>
|
|
|
|
<dt>
|
|
|
|
<a name = "element.delete"></a>
|
|
|
|
<strong>element.delete (self)</strong>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
Deletes references to this element and then deletes it.
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Parameters:</h3>
|
|
|
|
<ul>
|
|
|
|
<li><span class="parameter">self</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-08-21 07:49:16 +00:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
|
|
</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>
|
2017-04-11 08:23:10 +00:00
|
|
|
<i style="float:right;">Last updated 2017-04-11 01:22:59 </i>
|
2016-08-21 07:49:16 +00:00
|
|
|
</div> <!-- id="about" -->
|
|
|
|
</div> <!-- id="container" -->
|
|
|
|
</body>
|
|
|
|
</html>
|