UIElementsGroup

The UIElementsGroup class is the base class for all ui element containers

Each UIElementsGroup can contain zero or more UIElements and can be added to a screen or to a other UIElementsGroup in order to draw it on the glasses display

You can easily create your own ui elements group, for e.g. to create custom layouts

See also

Inheritors

Constructors

Link copied to clipboard
constructor()
constructor(id: String)

Functions

Link copied to clipboard
open fun add(uiElement: UIElement): UIElementsGroup

Add an UIElement to the group

Link copied to clipboard

Add a list of UIElements to the group

Link copied to clipboard

This method searches recursively the added ui elements and returns the first element found with id id

Link copied to clipboard

Returns List<UIElement> containing the added ui elements

Link copied to clipboard

Return the number of elements added to the group via add or addAll

Link copied to clipboard

Return true if the group has at least one ui element added via add or addAll

Link copied to clipboard
open fun remove(uiElement: UIElement): UIElementsGroup

Removes an UIElement from the group

Link copied to clipboard

Removes all the ui elements from the group

Link copied to clipboard

Set the UIElement to be the last element in the group

Link copied to clipboard

Set the UIElement to be the topmost element in the group