RadioButton

@Composable
fun RadioButton(state: RadioGroupState, active: Boolean, onSelect: () -> Unit, modifier: Modifier = Modifier, inconsistent: Boolean = false, useUnderline: Boolean = false)

Creates a org.gnome.gtk.CheckButton as a radio button without a label or custom child content.

Parameters

state

Shared radio group state for grouping buttons.

active

Whether the check button is currently active.

onSelect

Callback invoked when the radio button is selected.

modifier

The modifier to apply to the widget.

inconsistent

Whether the button should display an inconsistent (partially active) state.

useUnderline

Whether to use an underscore in the label for mnemonic activation.


@Composable
fun RadioButton(state: RadioGroupState, active: Boolean, label: String, onSelect: () -> Unit, modifier: Modifier = Modifier, inconsistent: Boolean = false, useUnderline: Boolean = false)

Creates a org.gnome.gtk.CheckButton as a radio button with a simple text label.

Parameters

state

Shared radio group state for grouping buttons.

active

Whether the check button is currently active.

label

Text label.

onSelect

Callback invoked when the radio button is selected.

modifier

The modifier to apply to the widget.

inconsistent

Whether the button should display an inconsistent (partially active) state.

useUnderline

Whether to use an underscore in the label for mnemonic activation.


@Composable
fun RadioButton(state: RadioGroupState, active: Boolean, onSelect: () -> Unit, modifier: Modifier = Modifier, inconsistent: Boolean = false, useUnderline: Boolean = false, child: @Composable () -> Unit)

Creates a org.gnome.gtk.CheckButton as a radio button with a custom child composable as its content.

Parameters

modifier

The modifier to apply to the widget.

state

Shared radio group state for grouping buttons.

active

Whether the check button is currently active.

child

Custom composable content.

inconsistent

Whether the button should display an inconsistent (partially active) state.

useUnderline

Whether to use an underscore in the label for mnemonic activation.

onSelect

Callback invoked when the radio button is selected.