Class PrintSetup
- All Implemented Interfaces:
Proxy
GtkPrintSetup
is an auxiliary object for printing that allows decoupling
the setup from the printing.
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.
-
Constructor Summary
ConstructorDescriptionPrintSetup
(MemorySegment address) Create a PrintSetup proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionReturns the page setup of this PrintSetup.Returns the print settings of this PrintSetup.static Type
getType()
Get the GType of the PrintSetup classref()
Increase the reference count of this PrintSetup.void
unref()
Decrease the reference count of this PrintSetup.Methods inherited from class io.github.jwharm.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 of this PrintSetup.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
-
getPrintSettings
Returns the print settings of this PrintSetup.They may be different from the
GtkPrintDialog
's settings if the user changed them during the setup process.- Returns:
- the print settings, or
NULL
-
ref
-
unref
public void unref()Decrease the reference count of this PrintSetup.If the reference count reaches zero, the object is freed.
-