Package org.gnome.gtk
Interface PrintOperation.RequestPageSetupCallback
- All Superinterfaces:
FunctionPointer
- 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.RequestPageSetupCallback
extends FunctionPointer
Functional interface declaration of the
RequestPageSetupCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(PrintContext context, int pageNr, PageSetup setup) Emitted once for every page that is printed.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, int, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourcePrintOperation, MemorySegment context, int pageNr, MemorySegment setup) Theupcall
method is called from native code.
-
Method Details
-
run
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. -
upcall
default void upcall(MemorySegment sourcePrintOperation, MemorySegment context, int pageNr, MemorySegment setup) Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gtk.PrintContext, int, org.gnome.gtk.PageSetup)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, int, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-