Lysa.ui  0.0
Lysa 3D Engine
TextEdit Class Referenceabstract

Detailed Description

A single-line editable text input field. Fires OnTextChange and OnTextInput events.

Inherits from: Widget

Lua full name: lysa.ui.TextEdit

Public Member Functions

nil set_resources (resource: string)
 Reloads the visual style of this TextEdit from the given resource string. More...
 

Properties

boolean is_read_only
 True if the field is read-only; the user can view but not edit the text.
 
string text
 The current text content of the input field.
 
integer sel_start
 Character index of the start of the current text selection.
 
integer first_displayed_char
 Index of the first character currently visible in the field (scroll offset). (read-only)
 
string displayed_text
 The substring of text currently visible inside the widget bounds. (read-only)
 

Member Function Documentation

nil set_resources ( string  resource)

Reloads the visual style of this TextEdit from the given resource string.

Parameters
resourcestring

Property Documentation

boolean is_read_only

True if the field is read-only; the user can view but not edit the text.

string text

The current text content of the input field.

integer sel_start

Character index of the start of the current text selection.

integer first_displayed_char

Index of the first character currently visible in the field (scroll offset). (read-only)

string displayed_text

The substring of text currently visible inside the widget bounds. (read-only)