Separator Elements#

Separators provide a visual break between elements by rendering a simple line either horizontally or vertically.

Important

Separators do not request a large size, so they should be used with fill alignment when used with boxes and grids.

A new separator can be created with the separator() function in the eg-overlay-ui module.

Functions#

eg-overlay-ui.separator(orientation)#

Create a new uiseparator.

Parameters:

orientation (string) – 'horizontal' or 'vertical'.

Return type:

uiseparator

Version History

Version

Notes

0.3.0

Added

Classes#

class eg-overlay-ui.uiseparator#
thickness(pixels)#

Set the thickness of this separator.

Parameters:

pixels (integer)

Version History

Version

Notes

0.3.0

Added

Note

The following methods are inherited from uielement

x([position])#

Set or get the current position X.

Parameters:

position (integer) – (Optional)

Return type:

integer

Important

It is normally not necessary to manually position an element.

Version History

Version

Notes

0.3.0

Added

y([position])#

Set or get the current position Y.

Parameters:

position (integer) – (Optional)

Return type:

integer

Important

It is normally not necessary to manually position an element.

Version History

Version

Notes

0.3.0

Added

width([value])#

Get or set the element’s width.

Parameters:

width (integer) – (Optional)

Return type:

integer

Important

It is normally not necessary to manually set an element’s size.

Version History

Version

Notes

0.3.0

Added

height([value])#

Get or set the element’s height.

Parameters:

width (integer) – (Optional)

Return type:

integer

Important

It is normally not necessary to manually set an element’s size.

Version History

Version

Notes

0.3.0

Added

bgcolor([color])#

Get or set the element’s background color.

Parameters:

color (integer) – (Optional)

Return type:

integer

Version History

Version

Notes

0.3.0

Added