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 TypeMethodDescriptionvoidrun()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 MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceView) Theupcallmethod 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
CompletionContextwith 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
Theupcallmethod 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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-