Lysa.ui  0.0
Lysa 3D Engine
Style Class Referenceabstract

Detailed Description

The drawing backend of the widgets, configured with a map of name-value options.

Lua full name: lysa.ui.Style

Public Member Functions

nil set_option (name: string, value: string)
 Sets a style-specific option, e.g. `color_focus`, `color_text` or `size_scroll_bar`. More...
 
string get_option (name: string)
 Returns a style-specific option value, or an empty string if the option is not set. More...
 

Properties

lysa.float4 text_color
 The default RGBA color of the texts, read from the `color_text` option. (read-only)
 

Member Function Documentation

nil set_option ( string  name,
string  value)

Sets a style-specific option, e.g. `color_focus`, `color_text` or `size_scroll_bar`.

Parameters
namestring
valuestring
string get_option ( string  name)

Returns a style-specific option value, or an empty string if the option is not set.

Parameters
namestring
Returns
string

Property Documentation

lysa.float4 text_color

The default RGBA color of the texts, read from the `color_text` option. (read-only)