Pop.Box/docs/classes/element.html
2016-09-07 21:42:19 -07:00

321 lines
6.6 KiB
HTML

<!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>
<li><a href="#Methods">Methods</a></li>
</ul>
<h2>Classes</h2>
<ul class="$(kind=='Topics' and '' or 'nowrap'">
<li><strong>element</strong></li>
</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>
<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
<tr>
<td class="name" nowrap><a href="#element.new">element.new (parent, data)</a></td>
<td class="summary">Constructor expects nothing, or a data table describing it.</td>
</tr>
<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>
</table>
<br/>
<br/>
<h2 class="section-header "><a name="Methods"></a>Methods</h2>
<dl class="function">
<dt>
<a name = "element.new"></a>
<strong>element.new (parent, data)</strong>
</dt>
<dd>
Constructor expects nothing, or a data table describing it.
<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>
Sets an element's width/height.
<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.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">self</span>
</li>
</ul>
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">integer</span></span>
Width.
</ol>
</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.
</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.getHeight"></a>
<strong>element.getHeight (self)</strong>
</dt>
<dd>
Returns an element's height.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">self</span>
</li>
</ul>
<h3>Returns:</h3>
<ol>
<span class="types"><span class="type">integer</span></span>
Height.
</ol>
</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>
<i style="float:right;">Last updated 2016-09-07 21:37:53 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>