Class PrintSetup

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class PrintSetup extends ProxyInstance

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

A print setup is obtained by calling PrintDialog.setup(Window, Cancellable, AsyncReadyCallback), and can later be passed to print functions such as PrintDialog.print(Window, PrintSetup, Cancellable, 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 Details

    • PrintSetup

      public PrintSetup(MemorySegment address)
      Create a PrintSetup proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the PrintSetup class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • getPageSetup

      public PageSetup getPageSetup()

      Returns the page setup of setup.

      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

      public PrintSettings getPrintSettings()

      Returns the print settings of setup.

      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

      public PrintSetup ref()
      Increase the reference count of setup.
      Returns:
      the print setup
      Since:
      4.14
    • unref

      public void unref()

      Decrease the reference count of setup.

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

      Since:
      4.14