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

AuRea 1.0.2

class AuCallout(val message: AuWidget, val title: AuWidget? = null) : AuWidget

A widget composed of a message and an optional title.

The callout is rendered with rounded corners and can optionally include a "flag" (pointer) at the bottom. It supports:

  • A title section with its own background and styling

  • A message section that can contain text or a combination of image and text

  • Customizable paints for title and message backgrounds

The layout automatically adapts to the presence or absence of the title.

Use build to conveniently create a callout with default styling.

Constructors

constructor(message: AuWidget, title: AuWidget? = null)

Types

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.