Interface PrintOperationPreview.OnGotPageSize

Enclosing class:
PrintOperationPreview
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 PrintOperationPreview.OnGotPageSize
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onGotPageSize(PrintContext context, PageSetup page_setup)
    Emitted once for each page that gets rendered to the preview.
  • Method Details

    • onGotPageSize

      void onGotPageSize(@Nonnull PrintContext context, @Nonnull PageSetup page_setup)
      Emitted once for each page that gets rendered to the preview.

      A handler for this signal should update the @context
      according to @page_setup and set up a suitable cairo
      context, using [method@Gtk.PrintContext.set_cairo_context].
      Parameters:
      context - the current `GtkPrintContext`
      page_setup - the `GtkPageSetup` for the current page