Skip to content

Program : VisualElement

This is the program class. It provides a program that runs in a window.

Properties

PropertyTypeDefaultDescription
programtablenilThe program instance
pathstring""The path to the program
runningbooleanfalseWhether the program is running

Functions

MethodReturnsDescription
Program:executeProgramExecutes a program

Protected Functions

MethodReturnsDescription
Program:dispatchEventanyHandles all incomming events
Program:focus-Gets called when the element gets focused
Program:initProgramInitializes the Program instance
Program:render-Renders the program

Program:execute(path)

Executes a program

Parameters

  • path string The path to the program

Returns

  • Program self The Program instance

Released under the MIT License.