Scrollview Container#

Functions#

eg-overlay-ui.scrollview()#

Create a new uiscrollview.

Return type:

uiscrollview

Version History

Version

Notes

0.0.1

Added

Classes#

class eg-overlay-ui.uiscrollview#

A scrolling container.

Unlike other containers, the scrollview does not automatically resize to fit its child element. Instead, it presents a scrollable view based on its size.

Scrollviews can have a single child, which will be a layout container.

set_child(uielement)#

Set the child element.

Parameters:

uielement – The new child element.

Version History

Version

Notes

0.0.1

Added

scroll_max_y()#

Set the Y scroll position so that the bottom most portion of the child element is visible.

Version History

Version

Notes

0.0.1

Added

scroll_min_y()#

Set the Y scroll position so that the top most portion of the child element is visible.

Version History

Version

Notes

0.1.0

Added

scroll_amount(value)#

Set the amount the view is scrolled on mouse wheel movements.

Parameters:

value (integer)

Version History

Version

Notes

0.0.1

Added

background([color])#

Set or retrieve background color. If a background color with an alpha value of 0 is specified, no background is drawn.

Parameters:

color (integer) – A color, see Colors.

Return type:

integer

Version History

Version

Notes

0.1.0

Added