Files
Basalt2/docs/references/elements/Program.md
2025-02-18 08:47:22 +00:00

980 B

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()

Creates a new Program instance

Returns

  • Program object The newly created Program instance

Usage

local element = Program.new("myId", basalt)

Program:dispatchEvent()

Program:execute()

Program:focus()

Program:init()

Program:render()