Doc - gui - UiElement


Abstract Class: UiElement

UiElement is the base class for GUI elements

Constructor

pos.gui.UiElement()

Creates a new UiElement.

Variables

Type Name Description
number x Screen x position
number y Screen y position
number w Pixel width
number h Pixel height
string type Element type, overridden by classes witch inherit from UiElement

Instance Functions

Return Name Description
nil draw(window: Window) Abstract. Called when the element is drawn
nil process(event: table, window: Window) Abstract. Called when the an event is processed by the window the element is in

Users

MenuOption TextBox TextInput Button ScrollField