This commit is contained in:
Robert Jelic
2025-02-09 16:33:43 +01:00

View File

@@ -44,13 +44,24 @@
<div id="content"> <div id="content">
<h1>Module <code>basalt</code></h1> <h1>Module <code>basalt</code></h1>
<p>Basalt UI Framework main module</p> <p>Basalt UI Framework main module.</p>
<p> <p> This is the main entry point for the Basalt UI Framework.
It provides functions for creating and managing UI elements and handling events.</p>
</p> <h3>See also:</h3>
<ul>
</ul>
<h3>Usage:</h3>
<ul>
<pre class="example">local basalt = require(&quot;basalt&quot;)
local mainFrame = basalt.createFrame()
mainFrame:show()
basalt.run()
</pre>
</ul>
<h3>Info:</h3> <h3>Info:</h3>
<ul> <ul>
<li><strong>Copyright</strong>: 2025</li> <li><strong>Copyright</strong>: 2025</li>
<li><strong>Release</strong>: 2.0</li>
<li><strong>License</strong>: MIT</li> <li><strong>License</strong>: MIT</li>
<li><strong>Author</strong>: NyoriE</li> <li><strong>Author</strong>: NyoriE</li>
</ul> </ul>
@@ -60,7 +71,8 @@
<table class="function_list"> <table class="function_list">
<tr> <tr>
<td class="name" ><a href="#basalt:create">basalt:create(type[, id])</a></td> <td class="name" ><a href="#basalt:create">basalt:create(type[, id])</a></td>
<td class="summary">Creates a new UI element</td> <td class="summary">Creates a new UI element
Creates and returns a new UI element of the specified type</td>
</tr> </tr>
<tr> <tr>
<td class="name" ><a href="#basalt:createFrame">basalt:createFrame()</a></td> <td class="name" ><a href="#basalt:createFrame">basalt:createFrame()</a></td>
@@ -108,6 +120,7 @@
<div class="section-description"> <div class="section-description">
The main Basalt instance The main Basalt instance
Contains all core functionality and management functions
</div> </div>
<dl class="function"> <dl class="function">
<dt> <dt>
@@ -116,19 +129,16 @@
</dt> </dt>
<dd> <dd>
Creates a new UI element Creates a new UI element
Creates and returns a new UI element of the specified type
</ul>
</ul>
</ul>
</ul>
<h3>Parameters:</h3> <h3>Parameters:</h3>
<ul> <ul>
<li><span class="parameter">type</span> <li><span class="parameter">type</span>
string The type of element to create (e.g. "BaseFrame") string The type of element to create (e.g. "Button", "Label", "BaseFrame")
</li> </li>
<li><span class="parameter">id</span> <li><span class="parameter">id</span>
string Optional ID for the element string Optional unique identifier for the element
(<em>optional</em>) (<em>optional</em>)
</li> </li>
</ul> </ul>
@@ -136,14 +146,19 @@
<h3>Returns:</h3> <h3>Returns:</h3>
<ol> <ol>
table The created element instance <span class="types"><a class="type" href="https://www.lua.org/manual/5.3/manual.html#6.6">table</a></span>
The created element instance
</ol> </ol>
<h3>See also:</h3>
<ul>
</ul>
<h3>Usage:</h3> <h3>Usage:</h3>
<ul> <ul>
<pre class="example"><span class="keyword">local</span> button = basalt.<span class="function-name">create</span>(<span class="string">"Button"</span>, <span class="string">"myButton"</span>)</pre> <pre class="example"><span class="keyword">local</span> button = basalt.<span class="function-name">create</span>(<span class="string">"Button"</span>, <span class="string">"myButton"</span>)
button:<span class="function-name">setPosition</span>(<span class="number">5</span>, <span class="number">5</span>)</pre>
</ul> </ul>
</dd> </dd>
@@ -154,10 +169,6 @@
<dd> <dd>
Creates and returns a new frame Creates and returns a new frame
</ul>
</ul>
</ul>
</ul>
<h3>Returns:</h3> <h3>Returns:</h3>
@@ -181,10 +192,6 @@
<dd> <dd>
Returns the element manager instance Returns the element manager instance
</ul>
</ul>
</ul>
</ul>
<h3>Returns:</h3> <h3>Returns:</h3>
@@ -208,10 +215,6 @@
<dd> <dd>
Gets or creates the main frame Gets or creates the main frame
</ul>
</ul>
</ul>
</ul>
<h3>Returns:</h3> <h3>Returns:</h3>
@@ -235,10 +238,6 @@
<dd> <dd>
Removes a scheduled update Removes a scheduled update
</ul>
</ul>
</ul>
</ul>
<h3>Parameters:</h3> <h3>Parameters:</h3>
<ul> <ul>
@@ -263,10 +262,6 @@
<dd> <dd>
Starts the Basalt runtime Starts the Basalt runtime
</ul>
</ul>
</ul>
</ul>
<h3>Parameters:</h3> <h3>Parameters:</h3>
<ul> <ul>
@@ -293,10 +288,6 @@
<dd> <dd>
Schedules a function to be updated Schedules a function to be updated
</ul>
</ul>
</ul>
</ul>
<h3>Parameters:</h3> <h3>Parameters:</h3>
<ul> <ul>
@@ -326,10 +317,6 @@
<dd> <dd>
Sets the active frame Sets the active frame
</ul>
</ul>
</ul>
</ul>
<h3>Parameters:</h3> <h3>Parameters:</h3>
<ul> <ul>
@@ -359,10 +346,6 @@
<dd> <dd>
Stops the Basalt runtime Stops the Basalt runtime
</ul>
</ul>
</ul>
</ul>
@@ -381,10 +364,6 @@
<dd> <dd>
Updates all scheduled functions Updates all scheduled functions
</ul>
</ul>
</ul>
</ul>
@@ -403,7 +382,7 @@
</div> <!-- id="main" --> </div> <!-- id="main" -->
<div id="about"> <div id="about">
<i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i>
<i style="float:right;">Last updated 2025-02-09 15:18:44 </i> <i style="float:right;">Last updated 2025-02-09 15:27:10 </i>
</div> <!-- id="about" --> </div> <!-- id="about" -->
</div> <!-- id="container" --> </div> <!-- id="container" -->
</body> </body>