Quad

class Quad(    val texture: <Error class: unknown class>,     var position: <Error class: unknown class> = Vec2.nullVector,     origin: <Error class: unknown class> = Vec2(x = 0.5f, y = 0.5f)) : BaseHudElement, HudAtom

A single quad.

A quad is the most atomic element of HUD.

Constructors

Link copied to clipboard
fun Quad(    texture: <Error class: unknown class>,     position: <Error class: unknown class> = Vec2.nullVector,     origin: <Error class: unknown class> = Vec2(x = 0.5f, y = 0.5f))

Types

Link copied to clipboard
object Companion

Functions

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

Adds given input events listener to this 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 this element.

Properties

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

A singleton list consisting of this quad.

Link copied to clipboard
open override val boundingBox: BoundingBox

Bounding box of this quad.

Link copied to clipboard
var height: Float

Height of this quad.

Link copied to clipboard
open val intrinsicHeight: Float

Intrinsic height of this atom.

Link copied to clipboard
open val intrinsicWidth: Float

Intrinsic width of this atom.

Link copied to clipboard
open override var isVisible: Boolean = true

true if this element is visible.

Link copied to clipboard
open override val modelMatrix: <Error class: unknown class>

Output model matrix for this quad.

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

Position of this element.

Link copied to clipboard
var rotation: <Error class: unknown class>

Rotation angle of this quad.

Link copied to clipboard
open override val texture: <Error class: unknown class>

Texture of this quad.

Link copied to clipboard
var width: Float

Width of this quad.