Gtk.Button.new

function new():Gtk.Widget {
    // Gjs wrapper for gtk_button_new()
}

Creates a new Gtk.Button widget. To add a child widget to the button, use Gtk.add.

Returns

The newly created Gtk.Button widget.