unit class GTK::V3::Gtk::GtkCheckButton; also is GTK::V3::Gtk::GtkToggleButton;
my GTK::V3::Gtk::GtkCheckButton $bold-option .= new(:label<Bold>); # later ... if $bold-option.get-active { # Insert text in bold }
method gtk_check_button_new ( --> N-GObject )
Creates a new native checkbutton object
method gtk_check_button_new_with_label ( Str $label --> N-GObject )
Creates a new native checkbutton object with a label
method gtk_check_button_new_with_mnemonic ( Str $label --> N-GObject )
Creates a new check button containing a label. The label will be created using gtk_label_new_with_mnemonic(), so underscores in label indicate the mnemonic for the check button.
multi submethod BUILD ( Str :$label )
Create GtkCheckButton object with a label.
multi submethod BUILD ( Bool :$empty )
Create an empty GtkCheckButton.
multi submethod BUILD ( :$widget! )
Create a check button using a native object from elsewhere. See also Gtk::V3::Glib::GObject.
multi submethod BUILD ( Str :$build-id! )
Create a check button using a native object from a builder. See also Gtk::V3::Glib::GObject.