Lysa.ui  0.0
Lysa 3D Engine
UIEvent Struct Reference

Detailed Description

String event-type constants used when subscribing to widget events via EventManager.

Lua full name: lysa.ui.UIEvent

Properties

string OnCreate
 Fired after the widget has been created and added to the hierarchy.
 
string OnDestroy
 Fired just before the widget is destroyed.
 
string OnKeyDown
 Fired when a key is pressed while the widget has keyboard focus.
 
string OnKeyUp
 Fired when a key is released while the widget has keyboard focus.
 
string OnMouseDown
 Fired when a mouse button is pressed over the widget.
 
string OnMouseUp
 Fired when a mouse button is released over the widget.
 
string OnMouseMove
 Fired when the mouse cursor moves over the widget.
 
string OnGotFocus
 Fired when the widget acquires keyboard focus.
 
string OnLostFocus
 Fired when the widget loses keyboard focus.
 
string OnShow
 Fired when the widget's visibility changes to visible.
 
string OnHide
 Fired when the widget's visibility changes to hidden.
 
string OnEnable
 Fired when the widget transitions to the enabled state.
 
string OnDisable
 Fired when the widget transitions to the disabled state.
 
string OnTextChange
 Fired when the widget's text content changes (TextEdit, Text).
 
string OnTextInput
 Fired on each character input from the user (TextEdit).
 
string OnClick
 Fired when a Button or ToggleButton is clicked.
 
string OnStateChange
 Fired when a CheckWidget changes state (checked ↔ unchecked).
 
string OnValueChange
 Fired when the value of a ValueSelect / ScrollBar changes.
 
string OnRangeChange
 Fired when the min/max range of a ValueSelect / ScrollBar changes.
 
string OnResize
 Fired when the window size changes.
 
string OnMove
 Fired when the window position changes.
 
string OnInsertItem
 Fired when an item is inserted into a List (ListBox, etc.).
 
string OnRemoveItem
 Fired when an item is removed from a List.
 
string OnSelectItem
 Fired when the selected item of a List changes.
 

Property Documentation

string OnCreate

Fired after the widget has been created and added to the hierarchy.

string OnDestroy

Fired just before the widget is destroyed.

string OnKeyDown

Fired when a key is pressed while the widget has keyboard focus.

string OnKeyUp

Fired when a key is released while the widget has keyboard focus.

string OnMouseDown

Fired when a mouse button is pressed over the widget.

string OnMouseUp

Fired when a mouse button is released over the widget.

string OnMouseMove

Fired when the mouse cursor moves over the widget.

string OnGotFocus

Fired when the widget acquires keyboard focus.

string OnLostFocus

Fired when the widget loses keyboard focus.

string OnShow

Fired when the widget's visibility changes to visible.

string OnHide

Fired when the widget's visibility changes to hidden.

string OnEnable

Fired when the widget transitions to the enabled state.

string OnDisable

Fired when the widget transitions to the disabled state.

string OnTextChange

Fired when the widget's text content changes (TextEdit, Text).

string OnTextInput

Fired on each character input from the user (TextEdit).

string OnClick

Fired when a Button or ToggleButton is clicked.

string OnStateChange

Fired when a CheckWidget changes state (checked ↔ unchecked).

string OnValueChange

Fired when the value of a ValueSelect / ScrollBar changes.

string OnRangeChange

Fired when the min/max range of a ValueSelect / ScrollBar changes.

string OnResize

Fired when the window size changes.

string OnMove

Fired when the window position changes.

string OnInsertItem

Fired when an item is inserted into a List (ListBox, etc.).

string OnRemoveItem

Fired when an item is removed from a List.

string OnSelectItem

Fired when the selected item of a List changes.