add

fun add(uiElement: UIElement)

Add a ui element to the screen

The add order defines the Z order. If a ui element is added again to the tree it will be moved to be topmost

The behaviour of adding the same ui element to 2 different screens is undefined

Parameters

uiElement

the ui element to be added to the screen