VisibilityWrapper

class VisibilityWrapper(element: HudElement, visibilityProvider: () -> Boolean) : BaseHudElementWrapper

HUD element wrapper changing visibility of the wrapped element.

Constructors

Link copied to clipboard
fun VisibilityWrapper(element: HudElement, visibilityProvider: () -> Boolean)

Functions

Link copied to clipboard
open override fun addInputEventListener(listener: HudElement.InputEventListener)

Adds given input events listener to the wrapped element.

Link copied to clipboard
open override fun handleInputEvent(position: <Error class: unknown class>, event: Any?): Boolean

Handles given input event at given position.

Link copied to clipboard
open override fun removeInputEventListener(listener: HudElement.InputEventListener)

Removes given input events listener from the wrapped element.

Properties

Link copied to clipboard
open override val atoms: Iterable<HudAtom>

Atoms making up the wrapped element.

Link copied to clipboard
open override val boundingBox: BoundingBox

Bounding box of the wrapped element.

Link copied to clipboard
open override var isVisible: Boolean

true the wrapped element is visible.

Link copied to clipboard
open override var position: <Error class: unknown class>

Position of the wrapped element.