DisplayWidgets

value class DisplayWidgets(display: CanvasScope)(source)

Stateless widgets: the caller polls input and owns telemetry, commands and frame publication.

Constructors

Link copied to clipboard
constructor(display: CanvasScope)

Functions

Link copied to clipboard
fun button(bounds: Rect2i, label: String, click: DisplayClick?): Boolean
fun button(bounds: Rect2i, label: String, click: DisplayClick?, enabled: Boolean): Boolean
Link copied to clipboard
fun chart(bounds: Rect2i, history: DisplayHistory, minimum: Float, maximum: Float, color: Int = 65535)

Draws oldest samples on the left and breaks the line at unavailable readings.

Link copied to clipboard
fun gauge(bounds: Rect2i, value: Float, minimum: Float, maximum: Float, color: Int = 65280)

Non-finite readings leave an empty gauge. Range endpoints must be finite and ordered.

Link copied to clipboard
fun indicator(bounds: Rect2i, label: String, color: Int)