Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

AuRea 1.0.2

class AuText(val lines: List<String>, val paint: AuPaint, margin: AuInsets = AuInsets()) : AuWidget

A widget that displays text.

Parameters

lines

The list of lines to be displayed.

paint

The AuPaint used to draw the text.

margin

The margin around the text.

Constructors

constructor(lines: List<String>, paint: AuPaint, margin: AuInsets = AuInsets())
constructor(text: String, paint: AuPaint, margin: AuInsets = AuInsets())

Constructs a AuText widget with a single line of text.

Properties

open override val contentHeight: Float

The height of the widget excluding margins.

open override val contentWidth: Float

The width of the widget excluding margins.

Inherited properties

val height: Int

The height of the widget including margins.

val width: Int

The width of the widget including margins.

Functions

open override fun draw(canvas: AuCanvas, x: Float, y: Float)

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

Inherited functions

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

Builds a textured 3D object from this widget.