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 TypeMethodDescriptionboolean
Emitted when the inline autocompletion is triggered.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment sourceEntryCompletion, MemorySegment prefix) Theupcall
method 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
prefix
into the entry - e.g. the entry used in theGtkFileChooser
inserts only the part of the prefix up to the next '/'. -
upcall
Theupcall
method 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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-