Package org.gnome.gtk
Interface LevelBar.OffsetChangedCallback
- All Superinterfaces:
FunctionPointer
- Enclosing class:
LevelBar
- 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
OffsetChangedCallback callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidEmitted when an offset specified on the bar changes value.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)method.default voidupcall(MemorySegment sourceLevelBar, MemorySegment name) Theupcallmethod is called from native code.
-
Method Details
-
run
Emitted when an offset specified on the bar changes value.This typically is the result of a
LevelBar.addOffsetValue(java.lang.String, double)call.The signal supports detailed connections; you can connect to the detailed signal "changed::x" in order to only receive callbacks when the value of offset "x" changes.
-
upcall
Theupcallmethod 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:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-