3.12 <GtkPrintSetup>

Structure: <GtkPrintSetup>

An auxiliary object for printing that allows decoupling the setup from the printing.

A print setup is obtained by calling print-dialog:setup, and can later be passed to print functions such as print-dialog: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.

Procedures

Method: print-setup:get-page-setup self ⇒ %return
Method: get-page-setup self ⇒ %return

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.

self

Passed: a <GtkPrintSetup>.

a <GtkPrintSetup>

%return

Returned: a <GtkPageSetup>.

the page setup, or NULL

Method: print-setup:get-print-settings self ⇒ %return
Method: get-print-settings self ⇒ %return

Returns the print settings of self.

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

self

Passed: a <GtkPrintSetup>.

a <GtkPrintSetup>

%return

Returned: a <GtkPrintSettings>.

the print settings, or NULL

Method: print-setup:ref self ⇒ %return
Method: ref self ⇒ %return

Increase the reference count of self.

self

Passed: a <GtkPrintSetup>.

a <GtkPrintSetup>

%return

Returned: a <GtkPrintSetup>.

the print setup

Method: print-setup:unref self
Method: unref self

Decrease the reference count of self.

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

self

Passed: a <GtkPrintSetup>.

a <GtkPrintSetup>