class GTK::V3::Gtk::GtkButton

unit class GTK::V3::Gtk::GtkButton;
also is GTK::V3::Gtk::GtkBin;

GtkButton — A widget that emits a signal when clicked on

Synopsis

my GTK::V3::Gtk::GtkButton $start-button .= new(:label<Start>);

Methods

gtk_button_new

method gtk_button_new ( --> N-GObject )

Creates a new native button object

[gtk_button_] new_with_label

method gtk_button_new_with_label ( Str $label --> N-GObject )

Creates a new native button object with a label

[gtk_button_] get_label

method gtk_button_get_label ( --> Str )

Get text label of button

[gtk_button_] set_label

method gtk_button_set_label ( Str $label )

Set a label ob the button

new

multi submethod BUILD ( Str :$label )

Creates a new button object with a label

multi submethod BUILD ( Bool :$empty )

Create an empty button

multi submethod BUILD ( :$widget! )

Create a button using a native object from elsewhere. See also Gtk::V3::Glib::GObject.

multi submethod BUILD ( Str :$build-id! )

Create a button using a native object from a builder. See also Gtk::V3::Glib::GObject.