CheckButton

@Composable
fun CheckButton(active: Boolean, onActiveRequest: (active: Boolean) -> Unit, modifier: Modifier = Modifier, inconsistent: Boolean = false, useUnderline: Boolean = false)

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

Parameters

active

Whether the check button is currently active.

onActiveRequest

Callback invoked when the check button is toggled.

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 CheckButton(active: Boolean, label: String, onActiveRequest: (active: Boolean) -> Unit, modifier: Modifier = Modifier, inconsistent: Boolean = false, useUnderline: Boolean = false)

Creates a org.gnome.gtk.CheckButton with a simple text label.

Parameters

active

Whether the check button is currently active.

label

Text label.

onActiveRequest

Callback invoked when the check button is toggled.

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 CheckButton(active: Boolean, onActiveRequest: (active: Boolean) -> Unit, modifier: Modifier = Modifier, inconsistent: Boolean = false, useUnderline: Boolean = false, child: @Composable () -> Unit)

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

Parameters

active

Whether the check button is currently active.

onActiveRequest

Callback invoked when the check button is toggled.

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.

child

Custom composable content.