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 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 OnMouseLeave
 Fired when the mouse cursor leaves 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 a ToggleButton is clicked, or when a [url] link of a RichTextArea is clicked.
 
string OnStateChange
 Fired when a CheckWidget changes state (checked ↔ unchecked).
 
string OnValueChange
 Fired when the value of a ValueSelect / ScrollBar changes.
 
string OnUserDataChange
 Fired when the user data of a widget changes.
 
string OnRangeChange
 Fired when the min/max range of a ValueSelect / ScrollBar changes.
 
string OnColorChange
 Fired when the color of a ColorWheel, a ColorPicker or a ColorPickerButton 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, a TreeView, a Menu, a TabBar or a TabContainer changes.
 
string OnExpandItem
 Fired when an item of a TreeView is expanded or collapsed, or when the content of a FoldableContainer is folded or unfolded.
 
string OnDoubleClickItem
 Fired when an item of a TreeView is double-clicked.
 
string OnSortColumn
 Fired when the sorted column or the sort direction of a Table changes.
 
string OnResizeColumn
 Fired when the width of a column of a Table is changed with the mouse.
 

Property Documentation

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 OnMouseLeave

Fired when the mouse cursor leaves 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 a ToggleButton is clicked, or when a [url] link of a RichTextArea is clicked.

string OnStateChange

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

string OnValueChange

Fired when the value of a ValueSelect / ScrollBar changes.

string OnUserDataChange

Fired when the user data of a widget changes.

string OnRangeChange

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

string OnColorChange

Fired when the color of a ColorWheel, a ColorPicker or a ColorPickerButton 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, a TreeView, a Menu, a TabBar or a TabContainer changes.

string OnExpandItem

Fired when an item of a TreeView is expanded or collapsed, or when the content of a FoldableContainer is folded or unfolded.

string OnDoubleClickItem

Fired when an item of a TreeView is double-clicked.

string OnSortColumn

Fired when the sorted column or the sort direction of a Table changes.

string OnResizeColumn

Fired when the width of a column of a Table is changed with the mouse.