Package org.gnome.gtk
Interface PrintOperation.CreateCustomWidgetCallback
- 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.CreateCustomWidgetCallback
extends FunctionPointer
Functional interface declaration of the
CreateCustomWidgetCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun()
Emitted when displaying the print dialog.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)
method.default MemorySegment
upcall
(MemorySegment sourcePrintOperation) Theupcall
method is called from native code.
-
Method Details
-
run
GObject run()Emitted when displaying the print dialog.If you return a widget in a handler for this signal it will be added to a custom tab in the print dialog. You typically return a container widget with multiple widgets in it.
The print dialog owns the returned widget, and its lifetime is not controlled by the application. However, the widget is guaranteed to stay around until the
Gtk.PrintOperation::custom-widget-apply
signal is emitted on the operation. Then you can read out any information you need from the widgets. -
upcall
Theupcall
method is called from native code. The parameters are marshaled andrun()
is executed. -
toCallback
Creates a native function pointer to theupcall(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
-