Schnittstelle PrintOperation.OnBeginPrint

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

@FunctionalInterface public static interface PrintOperation.OnBeginPrint
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    Emitted after the user has finished changing print settings
    in the dialog, before the actual rendering starts.
  • Methodendetails

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