51 lines
980 B
Markdown
51 lines
980 B
Markdown
# Program : VisualElement
|
|
|
|
## Functions
|
|
|
|
|Method|Returns|Description|
|
|
|---|---|---|
|
|
|[BasaltProgram.new](#BasaltProgram.new)|-|
|
|
|[BasaltProgram:resize](#BasaltProgram:resize)|-|
|
|
|[BasaltProgram:resume](#BasaltProgram:resume)|-|
|
|
|[BasaltProgram:run](#BasaltProgram:run)|-|
|
|
|[BasaltProgram:stop](#BasaltProgram:stop)|-|
|
|
|[Program.new](#Program.new)|Program|
|
|
|[Program:dispatchEvent](#Program:dispatchEvent)|-|
|
|
|[Program:execute](#Program:execute)|-|
|
|
|[Program:focus](#Program:focus)|-|
|
|
|[Program:init](#Program:init)|-|
|
|
|[Program:render](#Program:render)|-|
|
|
|
|
## BasaltProgram.new()
|
|
|
|
## BasaltProgram:resize()
|
|
|
|
## BasaltProgram:resume()
|
|
|
|
## BasaltProgram:run()
|
|
|
|
## BasaltProgram:stop()
|
|
|
|
## Program.new()
|
|
Creates a new Program instance
|
|
|
|
### Returns
|
|
* `Program` `object` The newly created Program instance
|
|
|
|
### Usage
|
|
```lua
|
|
local element = Program.new("myId", basalt)
|
|
```
|
|
|
|
## Program:dispatchEvent()
|
|
|
|
## Program:execute()
|
|
|
|
## Program:focus()
|
|
|
|
## Program:init()
|
|
|
|
## Program:render()
|
|
|
|
|