class GTK::V3::Gtk::GtkAboutDialog

unit class GTK::V3::Gtk::GtkAboutDialog;
also is GTK::V3::Gtk::GtkDialog;

Synopsis

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

Types

enum GtkLicense

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.

Methods

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.

gtk_about_dialog_new

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.

[gtk_about_dialog_] get_program_name

method gtk_about_dialog_get_program_name ( --> Str )

Get the program name from the dialog.

[gtk_about_dialog_] set_program_name

method gtk_about_dialog_set_program_name ( Str $pname )

Set the program name in the about dialog.

[gtk_about_dialog_] get_version

method gtk_about_dialog_get_version ( --> Str )

Get the version.

[gtk_about_dialog_] set_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.

[gtk_about_dialog_] get_comments

method gtk_about_dialog_get_comments

Get comments.

[gtk_about_dialog_] set_comments

method gtk_about_dialog_set_comments

Set comments.

[gtk_about_dialog_] get_license

method gtk_about_dialog_get_license

Get license.

[gtk_about_dialog_] set_license

method gtk_about_dialog_set_license

Set license.

[gtk_about_dialog_] get_wrap_license

method gtk_about_dialog_get_wrap_license

Return 1 if license is wrapped.

[gtk_about_dialog_] set_wrap_license

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.

[gtk_about_dialog_] get_license_type

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);

[gtk_about_dialog_] set_license_type

method gtk_about_dialog_set_license_type

Set license type. E.g.

$dialog.set_license_type(GTK_LICENSE_ARTISTIC);

[gtk_about_dialog_] get_website

method gtk_about_dialog_get_website

Get website.

[gtk_about_dialog_] set_website

method gtk_about_dialog_set_website

Set website.

[gtk_about_dialog_] get_website_label

method gtk_about_dialog_get_website_label

Returns the label used for the website link.

[gtk_about_dialog_] set_website_label

method gtk_about_dialog_set_website_label

Set website label.

[gtk_about_dialog_] get_authors

method gtk_about_dialog_get_authors

Get list of authors.

[gtk_about_dialog_] set_authors

method gtk_about_dialog_set_authors

Set auhors.

[gtk_about_dialog_] get_artists

method gtk_about_dialog_get_artists

Get artists.

[gtk_about_dialog_] set_artists

method gtk_about_dialog_set_artists

Set artists.

[gtk_about_dialog_] get_documenters

method gtk_about_dialog_get_documenters

Get documenters.

[gtk_about_dialog_] set_documenters

method gtk_about_dialog_set_documenters

Set documenters.

[gtk_about_dialog_] get_translator_credits

method gtk_about_dialog_get_translator_credits

Get translator credits

[gtk_about_dialog_] set_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);

[gtk_about_dialog_] get_logo_icon_name

method gtk_about_dialog_get_logo_icon_name

Get name of logo icon.

[gtk_about_dialog_] set_logo_icon_name

method gtk_about_dialog_set_logo_icon_name

Set name of logo icon.

[gtk_about_dialog_] add_credit_section

method gtk_about_dialog_add_credit_section

Add credit section.

new

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.