Interface PrintOperation.OnBeginPrint

Enclosing class:
PrintOperation
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PrintOperation.OnBeginPrint
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Emitted after the user has finished changing print settings
    in the dialog, before the actual rendering starts.
  • Method Details

    • onBeginPrint

      void onBeginPrint(@Nonnull PrintContext context)
      Emitted after the user has finished changing print settings
      in the dialog, before the actual rendering starts.

      A typical use for ::begin-print is to use the parameters from the
      [class@Gtk.PrintContext] and paginate the document accordingly,
      and then set the number of pages with
      [method@Gtk.PrintOperation.set_n_pages].
      Parameters:
      context - the `GtkPrintContext` for the current operation