buttonGroup

inline fun <S> KWidget<S>.buttonGroup(minCheckedCount: Int, maxCheckedCount: Int, skin: Skin = Scene2DSkin.defaultSkin, init: KButtonTable.(S) -> Unit = {}): KButtonTable

Return

a KButtonTable instance (which manages an internal ButtonGroup) added to this group. All direct Button-extending children of this widget will be added to the internal ButtonGroup.

Parameters

minCheckedCount

minimum amount of buttons checked at once.

maxCheckedCount

maximum amount of buttons checked at once.

skin

Skin instance that contains the widget style. Defaults to Scene2DSkin.defaultSkin.

init

will be invoked with the widget as "this". Consumes actor container (usually a Cell or Node) that contains the widget. Might consume the actor itself if this group does not keep actors in dedicated containers. Inlined.