Package org.gnome.gtksourceview
Interface View.ShowCompletionCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
View
- 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
ShowCompletionCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
The signal is a key binding signal which gets emitted when the user requests a completion, by pressing <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceView) Theupcall
method is called from native code.
-
Method Details
-
run
void run()The signal is a key binding signal which gets emitted when the user requests a completion, by pressing <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.This will create a
CompletionContext
with the activation type asCompletionActivation.USER_REQUESTED
.Applications should not connect to it, but may emit it with
GObjects.signalEmitByName(org.gnome.gobject.GObject, java.lang.String, java.lang.Object...)
if they need to activate the completion by another means, for example with another key binding or a menu entry. -
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
-