Package org.gnome.gtk
Interface EntryCompletion.CursorOnMatchCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
EntryCompletion
- 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 EntryCompletion.CursorOnMatchCallback
extends FunctionPointer
Functional interface declaration of the
CursorOnMatchCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEmitted when a match from the cursor is on a match of the list.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default intupcall(MemorySegment sourceEntryCompletion, MemorySegment model, MemorySegment iter) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted when a match from the cursor is on a match of the list.The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by
iter.Note that
modelis the model that was passed toEntryCompletion.setModel(org.gnome.gtk.TreeModel). -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(org.gnome.gtk.TreeModel, org.gnome.gtk.TreeIter)is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-