About my projects, examples and tutorials
Gnome::Gtk4::PageSetupUnixDialog

Gnome::Gtk4::PageSetupUnixDialog

Description§

Gnome::Gtk4::PageSetupUnixDialog implements a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix.

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/pagesetupdialog.png> :width<30\%>

It can be used very much like any other GTK dialog, at the cost of the portability offered by the high-level printing API in Gnome::Gtk4::PrintOperation.

CSS nodes§

Gnome::Gtk4::PageSetupUnixDialog has a single CSS node with the name window and style class `.pagesetup`.

Uml Diagram§

UNKNOWN image§

=for image :class<inline> :src<asset_files/images/plantuml/PageSetupUnixDialog.png> :width<70\%>

Class initialization§

new§

:native-object§

Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object() :$native-object! )
Code

new-pagesetupunixdialog§

Creates a new page setup dialog.

method new-pagesetupunixdialog ( Str $title, N-Object() $parent --> Gnome::Gtk4::PageSetupUnixDialog )
Code
  • $title; the title of the dialog.
  • $parent; transient parent of the dialog.

Methods§

get-page-setup§

Gets the currently selected page setup from the dialog.

method get-page-setup (--> N-Object )
Code

Return value; the current page setup.

get-print-settings§

Gets the current print settings from the dialog.

method get-print-settings (--> N-Object )
Code

Return value; the current print settings.

set-page-setup§

Sets the Gnome::Gtk4::PageSetup from which the page setup dialog takes its values.

method set-page-setup ( N-Object() $page-setup )
Code

set-print-settings§

Sets the Gnome::Gtk4::PrintSettings from which the page setup dialog takes its values.

method set-print-settings ( N-Object() $print-settings )
Code