unit class GTK::V3::Gtk::GtkAboutDialog; also is GTK::V3::Gtk::GtkDialog;
use 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 hide it again $about.gtk-widget-hide
A series of names to set the license type. The following are defined; GTK_LICENSE_UNKNOWN
, GTK_LICENSE_CUSTOM
, GTK_LICENSE_GPL_2_0
, GTK_LICENSE_GPL_3_0
, GTK_LICENSE_LGPL_2_1
, GTK_LICENSE_LGPL_3_0
, GTK_LICENSE_BSD
, GTK_LICENSE_MIT_X11
, GTK_LICENSE_ARTISTIC
, GTK_LICENSE_GPL_2_0_ONLY
, GTK_LICENSE_GPL_2_0_ONLY
, GTK_LICENSE_GPL_3_0_ONLY
, GTK_LICENSE_LGPL_2_1_ONLY
, GTK_LICENSE_LGPL_3_0_ONLY
, GTK_LICENSE_AGPL_3_0
, and GTK_LICENSE_AGPL_3_0_ONLY
See gtk_about_dialog_get_license_type
for an example.
All methods can be written with dashes or shortened by cutting the gtk_about_dialog_
part. This cannot be done when e.g. new
is left after the shortening. That would become an entirely other method. See the synopsis above for an example. Below, this is shown with brackets in the headers.
method gtk_about_dialog_new ( --> N-GObject )
Creates a new empty about dialog widget. It returns a native object which must be stored in another object. 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.
method gtk_about_dialog_set_program_name ( Str $pname )
Set the program name in the about dialog.
method gtk_about_dialog_get_version ( --> Str )
Get the version.
method gtk_about_dialog_set_version ( Str $version )
Set version.
method gtk_about_dialog_get_copyright
Get copyright.
method gtk_about_dialog_set_copyright
Set copyright.
method gtk_about_dialog_get_comments
Get comments.
method gtk_about_dialog_set_comments
Set comments.
method gtk_about_dialog_get_license
Get license.
method gtk_about_dialog_set_license
Set license.
method gtk_about_dialog_get_wrap_license
Return 1 if license is wrapped.
method gtk_about_dialog_set_wrap_license
Sets whether the license text in about is automatically wrapped. This is only done when license type is GTK_LICENSE_CUSTOM
. See also gtk_about_dialog_get_license_type
. P.s. I didn't see much difference between wrapped or unwrapped.
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);
method gtk_about_dialog_set_license_type
Set license type. E.g.
$dialog.set_license_type(GTK_LICENSE_ARTISTIC);
method gtk_about_dialog_get_website
Get website.
method gtk_about_dialog_set_website
Set website.
method gtk_about_dialog_get_website_label
Returns the label used for the website link.
method gtk_about_dialog_set_website_label
Set website label.
method gtk_about_dialog_get_authors
Get list of authors.
method gtk_about_dialog_set_authors
Set auhors.
method gtk_about_dialog_get_artists
Get artists.
method gtk_about_dialog_set_artists
Set artists.
method gtk_about_dialog_get_documenters
Get documenters.
method gtk_about_dialog_set_documenters
Set documenters.
method gtk_about_dialog_get_translator_credits
Get translator credits
method gtk_about_dialog_set_translator_credits
Set translator credits
method gtk_about_dialog_get_logo
Get pixel buffer of logo.
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);
method gtk_about_dialog_get_logo_icon_name
Get name of logo icon.
method gtk_about_dialog_set_logo_icon_name
Set name of logo icon.
method gtk_about_dialog_add_credit_section
Add credit section.
multi submethod BUILD (: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 (:build-id!)
Create an about dialog using a native object from a builder. See also Gtk::V3::Glib::GObject.