Skip to content
Select language:English

AuRea 1.0.2

abstract class AuWidget(var margin: AuInsets)

Represent a 2D widget tha can be drawn into a canvas.

Inheritors

Constructors

constructor(margin: AuInsets)

Properties

abstract val contentHeight: Float

The height of the widget excluding margins.

abstract val contentWidth: Float

The width of the widget excluding margins.

val height: Int

The height of the widget including margins.

val width: Int

The width of the widget including margins.

Functions

fun buildObject(trans: Mat4f, pixelsPerMeters: Float = 10000.0f): AuObject

Builds a textured 3D object from this widget.

abstract fun draw(canvas: AuCanvas, x: Float, y: Float)

Draws the widget on the given canvas at the specified position.