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.
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`.
Class initialization
new
:native-object
Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object :$native-object! )
new-pagesetupunixdialog
Creates a new page setup dialog.
method new-pagesetupunixdialog ( Str $title, N-Object() $parent --> Gnome::Gtk4::PageSetupUnixDialog \)
$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 )
Return value; the current page setup.
get-print-settings
Gets the current print settings from the dialog.
method get-print-settings (--> N-Object )
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 )
$page-setup; a Gnome::Gtk4::PageSetup.
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 )
$print-settings; a Gnome::Gtk4::PrintSettings.