unit class GTK::V3::Gtk::GtkAboutDialog; also is GTK::V3::Gtk::GtkDialog;
my GTK::V3::Gtk::GtkAboutDialog $about .= new(:empty); $about.set-program-name('My-First-GTK-Program'); # show the dialog $about.gtk-dialog-run; # when dialog buttons are pressed control returns here. Hide the dialog again $about.gtk-widget-hide;
A series of names to set the license type.
License type | License |
---|---|
GTK_LICENSE_UNKNOWN | No license specified |
GTK_LICENSE_CUSTOM | A license text is going to be specified by the developer |
GTK_LICENSE_GPL_2_0 | The GNU General Public License, version 2.0 or later |
GTK_LICENSE_GPL_3_0 | The GNU General Public License, version 3.0 or later |
GTK_LICENSE_LGPL_2_1 | The GNU Lesser General Public License, version 2.1 or later |
GTK_LICENSE_LGPL_3_0 | The GNU Lesser General Public License, version 3.0 or later |
GTK_LICENSE_BSD | The BSD standard license |
GTK_LICENSE_MIT_X11 | The MIT/X11 standard license |
GTK_LICENSE_ARTISTIC | The Artistic License, version 2.0 |
GTK_LICENSE_GPL_2_0_ONLY | The GNU General Public License, version 2.0 only. Since 3.12. |
GTK_LICENSE_GPL_3_0_ONLY | The GNU General Public License, version 3.0 only. Since 3.12. |
GTK_LICENSE_LGPL_2_1_ONLY | The GNU Lesser General Public License, version 2.1 only. Since 3.12. |
GTK_LICENSE_LGPL_3_0_ONLY | The GNU Lesser General Public License, version 3.0 only. Since 3.12. |
GTK_LICENSE_AGPL_3_0 | The GNU Affero General Public License, version 3.0 or later. Since: 3.22. |
GTK_LICENSE_AGPL_3_0_ONLY | The GNU Affero General Public License, version 3.0 only. Since: 3.22.27. |
See gtk_about_dialog_get_license_type
for an example.
method gtk_about_dialog_new ( --> N-GObject )
Creates a new empty about dialog widget. See also gnome developer docs. Better, shorter and easier is to use .new(:empty)
. See info below.
method gtk_about_dialog_get_program_name ( --> Str )
Get the program name from the dialog. See also gnome developer docs.
method gtk_about_dialog_set_program_name ( Str $pname )
Set the program name in the about dialog. See also gnome developer docs.
method gtk_about_dialog_get_version ( --> Str )
Get the version. See also gnome developer docs.
method gtk_about_dialog_set_version ( Str $version )
Set version. See also gnome developer docs.
method gtk_about_dialog_get_copyright
Get copyright. See also gnome developer docs.
method gtk_about_dialog_set_copyright
Set copyright. See also gnome developer docs.
method gtk_about_dialog_get_comments
Get comments. See also gnome developer docs.
method gtk_about_dialog_set_comments
Set comments. See also gnome developer docs.
method gtk_about_dialog_get_license
Get license. See also gnome developer docs.
method gtk_about_dialog_set_license
Set license. See also gnome developer docs.
method gtk_about_dialog_get_wrap_license
Return 1 if license is wrapped. See also gnome developer docs.
method gtk_about_dialog_set_wrap_license
Sets whether the license text in about is automatically wrapped. See also gnome developer docs.
method gtk_about_dialog_get_license_type
Get license type. This is an integer representing GtkLicense described above. Example;
my Int $lt = $dialog.get_license_type; say "License type: ", GtkLicense($lt);
See also gnome developer docs.
method gtk_about_dialog_set_license_type
Set license type. E.g.
$dialog.set_license_type(GTK_LICENSE_ARTISTIC);
See also gnome developer docs.
method gtk_about_dialog_get_website
Get website. See also gnome developer docs.
method gtk_about_dialog_set_website
Set website. See also gnome developer docs.
method gtk_about_dialog_get_website_label
Returns the label used for the website link. See also gnome developer docs.
method gtk_about_dialog_set_website_label
Set website label. See also gnome developer docs.
method gtk_about_dialog_get_authors
Get list of authors. See also gnome developer docs.
method gtk_about_dialog_set_authors
Set auhors. See also gnome developer docs.
method gtk_about_dialog_get_artists
Get artists. See also gnome developer docs.
method gtk_about_dialog_set_artists
Set artists. See also gnome developer docs.
method gtk_about_dialog_get_documenters
Get documenters. See also gnome developer docs.
method gtk_about_dialog_set_documenters
Set documenters. See also gnome developer docs.
method gtk_about_dialog_get_translator_credits
Get translator credits See also gnome developer docs.
method gtk_about_dialog_set_translator_credits
Set translator credits See also gnome developer docs.
method gtk_about_dialog_get_logo
Get pixel buffer of logo. See also gnome developer docs.
method gtk_about_dialog_set_logo ( OpaquePointer $logo-pixbuf )
Set the logo from a pixel buffer. E.g.
my GTK::V3::Gtk::GtkImage $logo .= new( :filename(%?RESOURCES<library-logo.png>.Str) ); $about-dialog.set-logo($logo.get-pixbuf);
See also gnome developer docs.
method gtk_about_dialog_get_logo_icon_name
Get name of logo icon. See also gnome developer docs.
method gtk_about_dialog_set_logo_icon_name
Set name of logo icon. See also gnome developer docs.
method gtk_about_dialog_add_credit_section
Add credit section. See also gnome developer docs.
multi submethod BUILD ( Bool :$empty! )
Create an empty about dialog
multi submethod BUILD ( :$widget! )
Create an about dialog using a native object from elsewhere. See also Gtk::V3::Glib::GObject.
multi submethod BUILD ( Str :$build-id! )
Create an about dialog using a native object from a builder. See also Gtk::V3::Glib::GObject.