1.2 KiB
1.2 KiB
Rendering optimization (only render when screen changed) Eventsystem improvement Cursor is sometimes not visible on time
Program : VisualElement
Functions
| Method | Returns | Description |
|---|---|---|
| BasaltProgram.new | - | |
| BasaltProgram:resize | - | |
| BasaltProgram:resume | - | |
| BasaltProgram:run | - | |
| BasaltProgram:stop | - | |
| Program.new | Program | |
| Program:dispatchEvent | - | |
| Program:execute | - | |
| Program:focus | - | |
| Program:init | - | |
| Program:render | - |
BasaltProgram.new()
BasaltProgram:resize()
BasaltProgram:resume()
BasaltProgram:run()
BasaltProgram:stop()
Program.new(props, basalt)
Creates a new Program instance
Parameters
propstableThe properties to initialize the element withbasalttableThe basalt instance
Returns
ProgramobjectThe newly created Program instance
Usage
local element = Program.new("myId", basalt)