Interface TextBuffer.PasteDoneCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
TextBuffer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface declaration of the PasteDoneCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidEmitted after paste operation has been completed.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment)method.default voidupcall(MemorySegment sourceTextBuffer, MemorySegment clipboard) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted after paste operation has been completed.
This is useful to properly scroll the view to the end of the pasted text. See
TextBuffer.pasteClipboard(Clipboard, TextIter, boolean)for more details. -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(Clipboard)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-