Class PageSetupUnixDialog

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager, Proxy

@Generated("org.javagi.JavaGI") public class PageSetupUnixDialog extends Dialog implements Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager

Presents a page setup dialog for platforms which don’t provide a native page setup dialog, like Unix.

An example GtkPageSetupUnixDialog

It can be used very much like any other GTK dialog, at the cost of the portability offered by the high-level printing API in PrintOperation.

CSS nodes

GtkPageSetupUnixDialog has a single CSS node with the name window and style class .pagesetup.

  • Constructor Details

    • PageSetupUnixDialog

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

      public PageSetupUnixDialog(@Nullable String title, @Nullable Window parent)
      Creates a new page setup dialog.
      Parameters:
      title - the title of the dialog
      parent - transient parent of the dialog
    • PageSetupUnixDialog

      public PageSetupUnixDialog()
      Create a new PageSetupUnixDialog.
  • Method Details

    • getType

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

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

      protected PageSetupUnixDialog asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Dialog
      Returns:
      the instance as if it were its parent type
    • getPageSetup

      public PageSetup getPageSetup()
      Gets the currently selected page setup from the dialog.
      Returns:
      the current page setup
    • getPrintSettings

      public @Nullable PrintSettings getPrintSettings()
      Gets the current print settings from the dialog.
      Returns:
      the current print settings
    • setPageSetup

      public void setPageSetup(PageSetup pageSetup)
      Sets the GtkPageSetup from which the page setup dialog takes its values.
      Parameters:
      pageSetup - a GtkPageSetup
    • setPrintSettings

      public void setPrintSettings(@Nullable PrintSettings printSettings)
      Sets the GtkPrintSettings from which the page setup dialog takes its values.
      Parameters:
      printSettings - a GtkPrintSettings
    • builder

      public static PageSetupUnixDialog.Builder<? extends PageSetupUnixDialog.Builder> builder()
      A PageSetupUnixDialog.Builder object constructs a PageSetupUnixDialog with the specified properties. Use the various set...() methods to set properties, and finish construction with PageSetupUnixDialog.Builder.build().
      Returns:
      the builder object