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 TypeMethodDescriptionvoid
Emitted when an offset specified on the bar changes value.default MemorySegment
toCallback
(Arena arena) Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default void
upcall
(MemorySegment sourceLevelBar, MemorySegment name) Theupcall
method 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
Theupcall
method 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:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-