gtk.check_button

Module for [CheckButton] class

Types 3

A #GtkCheckButton places a discrete #GtkToggleButton next to a widget, (usually a #GtkLabel). See the section on #GtkToggleButton widgets for more information about toggle/check buttons.

The important signal ( #GtkToggleButton::toggled ) is also inherited from #GtkToggleButton.

CSS nodes

checkbutton
├── check
╰── <child>

A GtkCheckButton with indicator (see [gtk.toggle_button.ToggleButton.setMode]) has a main CSS node with name checkbutton and a subnode with name check.

button.check
├── check
╰── <child>

A GtkCheckButton without indicator changes the name of its main node to button and adds a .check style class to it. The subnode is invisible in this case.

Methods
GType _gType() @property
CheckButton self()Returns `this`, for use in `with` statements.
CheckButtonGidBuilder builder()Get builder for [gtk.check_button.CheckButton] Returns: New builder object
gtk.check_button.CheckButton newWithLabel(string label)Creates a new #GtkCheckButton with a #GtkLabel to the right of it.
gtk.check_button.CheckButton newWithMnemonic(string label)Creates a new #GtkCheckButton containing a label. The label will be created using [gtk.label.Label.newWithMnemonic], so underscores in label indicate the mnemonic for the check button.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GtkCheckButton. Returns: a #GtkWidget.

Fluent builder for [gtk.check_button.CheckButton]