addTooltip

fun Group.addTooltip(text: String, size: Float = 26f, always: Boolean = false)

Add a Label-based Tooltip with a rounded-corner background to a Table or other Group.

Tip is positioned over top right corner, slightly overshooting the receiver widget, longer tip texts will extend to the left.

Parameters

text

Automatically translated tooltip text

size

Vertical size of the entire Tooltip including background

always

override requirement: presence of physical keyboard

fun Group.addTooltip(char: Char, size: Float = 26f, always: Boolean = false)

Add a single Char Label-based Tooltip with a rounded-corner background to a Table or other Group.

Tip is positioned over top right corner, slightly overshooting the receiver widget.

Parameters

size

Vertical size of the entire Tooltip including background

always

override requirement: presence of physical keyboard

fun Group.addTooltip(key: KeyCharAndCode, size: Float = 26f, always: Boolean = false)

Add a Label-based Tooltip for a keyboard binding with a rounded-corner background to a Table or other Group.

Tip is positioned over top right corner, slightly overshooting the receiver widget.

Parameters

size

Vertical size of the entire Tooltip including background

always

override requirement: presence of physical keyboard