Lysa.ui  0.0
Lysa 3D Engine
ScrollBox Class Referenceabstract

Detailed Description

A scrollable container with horizontal and vertical scroll bars. Add children via add_content.

Inherits from: Box

Lua full name: lysa.ui.ScrollBox

Public Member Functions

nil set_resources (resBox: string, resVScroll: string, resHScroll: string)
 Reloads the visual style: resBox = inner box, resVScroll = vertical scroll bar, resHScroll = horizontal scroll bar. More...
 
Widget add_content (child: Widget, alignment: integer, resource: string)
 Adds a child widget to the scrollable inner box. More...
 
nil remove_content (child: Widget)
 Removes a child widget from the inner box. More...
 
nil remove_all_content ()
 Removes all children from the inner box. More...
 

Properties

Box inner_box
 The scrollable inner box containing the added content widgets. (read-only)
 

Member Function Documentation

nil set_resources ( string  resBox,
string  resVScroll,
string  resHScroll)

Reloads the visual style: resBox = inner box, resVScroll = vertical scroll bar, resHScroll = horizontal scroll bar.

Parameters
resBoxstring
resVScrollstring
resHScrollstring
Widget add_content ( Widget  child,
integer  alignment,
string  resource)

Adds a child widget to the scrollable inner box.

Parameters
childWidget
alignmentinteger
resourcestring
Returns
Widget
nil remove_content ( Widget  child)

Removes a child widget from the inner box.

Parameters
childWidget
nil remove_all_content ( )

Removes all children from the inner box.

Property Documentation

Box inner_box

The scrollable inner box containing the added content widgets. (read-only)