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 TypeMethodDescriptionvoidrun(@Nullable 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 MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, int, int, int)method.default voidupcall(MemorySegment sourceView, MemorySegment iter, int button, int state, int nPresses) Theupcallmethod 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
iterto determine on which line the activation took place. -
upcall
default void upcall(MemorySegment sourceView, MemorySegment iter, int button, int state, int nPresses) Theupcallmethod 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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-