Interface ControlSourceGetValue
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Generated("org.javagi.JavaGI")
public interface ControlSourceGetValue
extends FunctionPointer
Functional interface declaration of the ControlSourceGetValue callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun(ControlSource self, ClockTime timestamp, MemorySegment value) Function for returning a value for a given timestamp.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, long, MemorySegment)method.default intupcall(MemorySegment self, long timestamp, MemorySegment value) Theupcallmethod is called from native code.
-
Method Details
-
run
Function for returning a value for a given timestamp.- Parameters:
self- theGstControlSourceinstancetimestamp- timestamp for which a value should be calculatedvalue- a value which will be set to the result.- Returns:
trueif the value was successfully calculated.
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(ControlSource, ClockTime, MemorySegment)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, long, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-