Interface PadActivateModeFunction
- 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 PadActivateModeFunction
extends FunctionPointer
Functional interface declaration of the PadActivateModeFunction callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanThe prototype of the push and pull activate functions.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, int, int)method.default intupcall(MemorySegment pad, MemorySegment parent, int mode, int active) Theupcallmethod is called from native code.
-
Method Details
-
run
The prototype of the push and pull activate functions.- Parameters:
pad- aGstPadparent- the parent ofpadmode- the requested activation mode ofpadactive- activate or deactivate the pad.- Returns:
trueif the pad could be activated or deactivated.
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(Pad, GstObject, PadMode, boolean)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, int, int)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-