Class PrintSetup
- All Implemented Interfaces:
Proxy
A print setup is obtained by calling PrintDialog.setup(org.gnome.gtk.Window, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback),
and can later be passed to print functions such as PrintDialog.print(org.gnome.gtk.Window, org.gnome.gtk.PrintSetup, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback).
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.
- Since:
- 4.14
-
Constructor Summary
ConstructorsConstructorDescriptionPrintSetup(MemorySegment address) Create a PrintSetup proxy instance for the provided memory address. -
Method Summary
Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PrintSetup
Create a PrintSetup proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
-
Method Details
-
getType
-
getPageSetup
Returns the page setup ofsetup.It may be different from the
GtkPrintDialog's page setup if the user changed it during the setup process.- Returns:
- the page setup, or
NULL - Since:
- 4.14
-
getPrintSettings
Returns the print settings ofsetup.They may be different from the
GtkPrintDialog's settings if the user changed them during the setup process.- Returns:
- the print settings, or
NULL - Since:
- 4.14
-
ref
-
unref
public void unref()Decrease the reference count ofsetup.If the reference count reaches zero, the object is freed.
- Since:
- 4.14
-