Interface PrintOperation.OnRequestPageSetup

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.OnRequestPageSetup
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onRequestPageSetup(PrintContext context, int page_nr, PageSetup setup)
    Emitted once for every page that is printed.
  • Method Details

    • onRequestPageSetup

      void onRequestPageSetup(@Nonnull PrintContext context, int page_nr, @Nonnull PageSetup setup)
      Emitted once for every page that is printed.

      This gives the application a chance to modify the page setup.
      Any changes done to @setup will be in force only for printing
      this page.
      Parameters:
      context - the `GtkPrintContext` for the current operation
      page_nr - the number of the currently printed page (0-based)
      setup - the `GtkPageSetup`