Package org.gnome.gtk
Interface EntryCompletion.InsertPrefixCallback
- 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.InsertPrefixCallback
extends FunctionPointer
Functional interface declaration of the
InsertPrefixCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanEmitted when the inline autocompletion is triggered.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default intupcall(MemorySegment sourceEntryCompletion, MemorySegment prefix) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted when the inline autocompletion is triggered.The default behaviour is to make the entry display the whole prefix and select the newly inserted part.
Applications may connect to this signal in order to insert only a smaller part of the
prefixinto the entry - e.g. the entry used in theGtkFileChooserinserts only the part of the prefix up to the next '/'. -
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(java.lang.String)is executed. -
toCallback
Creates a native function pointer to theupcall(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
-