Schnittstelle PrintOperationPreview.OnGotPageSize

Umschließende Klasse:
PrintOperationPreview
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface PrintOperationPreview.OnGotPageSize
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    onGotPageSize(PrintContext context, PageSetup page_setup)
    Emitted once for each page that gets rendered to the preview.
  • Methodendetails

    • 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].
      Parameter:
      context - the current `GtkPrintContext`
      page_setup - the `GtkPageSetup` for the current page