4.9 KiB
4.9 KiB
<html>
<head>
</head>
Module
basalt:createFrame ()
Creates and returns a new frame
basalt:getElementManager ()
Returns the element manager instance
basalt:getMainFrame ()
Gets or creates the main frame
basalt:setActiveFrame (frame)
Sets the active frame
basalt:scheduleUpdate (func)
Schedules a function to be updated
basalt:removeSchedule (id)
Removes a scheduled update
basalt.updateEvent
Internal event handler
basalt.renderFrames
Internal render function
basalt:update ()
Updates all scheduled functions
basalt:stop ()
Stops the Basalt runtime
basalt:run (isActive)
Starts the Basalt runtime
</html>
Module basalt
Basalt UI Framework main module.
This is the main entry point for the Basalt UI Framework. It provides functions for creating and managing UI elements and handling events.
<dl class="function">
<dt>
<a name = "basalt:create"></a>
<strong>basalt:create (type, id)</strong>
</dt>
<dd>
Creates and returns a new UI element of the specified type
<h3>Usage:</h3>
<ul>
<pre class="example">local button = basalt.create("Button")
<h3>Usage:</h3>
<ul>
<pre class="example">local mainFrame = basalt.createFrame()
<h3>Usage:</h3>
<ul>
<pre class="example">local manager = basalt.getElementManager()
<h3>Usage:</h3>
<ul>
<pre class="example">local frame = basalt.getMainFrame()
<h3>Usage:</h3>
<ul>
<pre class="example">basalt.setActiveFrame(myFrame)
<h3>Usage:</h3>
<ul>
<pre class="example">local id = basalt.scheduleUpdate(myFunction)
<h3>Usage:</h3>
<ul>
<pre class="example">basalt.removeSchedule(scheduleId)
<h3>Usage:</h3>
<ul>
<pre class="example">basalt.update()
<h3>Usage:</h3>
<ul>
<pre class="example">basalt.stop()
<h3>Usage:</h3>
<ul>
<li><pre class="example">basalt.run()
basalt.run(false)