Package org.gnome.gtksourceview
Interface View.LineMarkActivatedCallback
- 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
LineMarkActivatedCallback
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(TextIter iter, int button, Set<ModifierType> state, int nPresses) Emitted when a line mark has been activated (for instance when there was a button press in the line marks gutter).default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, int, int, int)
method.default void
upcall
(MemorySegment sourceView, MemorySegment iter, int button, int state, int nPresses) Theupcall
method is called from native code.
-
Method Details
-
run
Emitted when a line mark has been activated (for instance when there was a button press in the line marks gutter).You can use
iter
to determine on which line the activation took place. -
upcall
default void upcall(MemorySegment sourceView, MemorySegment iter, int button, int state, int nPresses) Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gtk.TextIter, int, java.util.Set<org.gnome.gdk.ModifierType>, int)
is executed. -
toCallback
Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, int, int, int)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-