Gtk.PrintSetup

Fields

None

Methods

get_page_setup ()

get_print_settings ()

ref ()

unref ()

Details

class Gtk.PrintSetup

A GtkPrintSetup is an auxiliary object for printing that allows decoupling the setup from the printing.

A print setup is obtained by calling [method`Gtk`.PrintDialog.setup], and can later be passed to print functions such as [method`Gtk`.PrintDialog.print].

Print setups can be reused for multiple print calls.

Applications may wish to store the page_setup and print_settings from the print setup and copy them to the PrintDialog if they want to keep using them.

New in version 4.14.

get_page_setup()[source]
Returns:

the page setup, or NULL

Return type:

Gtk.PageSetup

Returns the page setup of self.

It may be different from the GtkPrintDialog’s page setup if the user changed it during the setup process.

New in version 4.14.

get_print_settings()[source]
Returns:

the print settings, or NULL

Return type:

Gtk.PrintSettings

Returns the print settings of self.

They may be different from the GtkPrintDialog’s settings if the user changed them during the setup process.

New in version 4.14.

ref()[source]
Returns:

the print setup

Return type:

Gtk.PrintSetup

Increase the reference count of self.

New in version 4.14.

unref()[source]

Decrease the reference count of self.

If the reference count reaches zero, the object is freed.

New in version 4.14.