Class PageSetupUnixDialog

All Implemented Interfaces:
PointerInterface

public class PageSetupUnixDialog extends Dialog
`GtkPageSetupUnixDialog` implements a page setup dialog for platforms
which don’t provide a native page setup dialog, like Unix.

![An example GtkPageSetupUnixDialog](pagesetupdialog.png)

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 [class@Gtk.PrintOperation].

https://docs.gtk.org/gtk4/class.PageSetupUnixDialog.html

  • Constructor Details

    • PageSetupUnixDialog

      public PageSetupUnixDialog(PointerContainer pointer)
    • PageSetupUnixDialog

      public PageSetupUnixDialog(@Nullable Str 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(String title, @Nullable Window parent)
      Creates a new page setup dialog.
      Parameters:
      title - the title of the dialog
      parent - transient parent of the dialog
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getPageSetup

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

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

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

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

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Overrides:
      asAccessible in class Dialog
      Returns:
      Accessible
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Overrides:
      asBuildable in class Dialog
      Returns:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Overrides:
      asConstraintTarget in class Dialog
      Returns:
      ConstraintTarget
    • asNative

      public Native asNative()
      Implements interface Native. Call this to get access to interface functions.
      Overrides:
      asNative in class Dialog
      Returns:
      Native
    • asRoot

      public Root asRoot()
      Implements interface Root. Call this to get access to interface functions.
      Overrides:
      asRoot in class Dialog
      Returns:
      Root
    • asShortcutManager

      public ShortcutManager asShortcutManager()
      Implements interface ShortcutManager. Call this to get access to interface functions.
      Overrides:
      asShortcutManager in class Dialog
      Returns:
      ShortcutManager
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()