Interface SettingsBindSetMapping
- 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 SettingsBindSetMapping
extends FunctionPointer
Functional interface declaration of the SettingsBindSetMapping callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionrun(Value value, VariantType expectedType) The type for the function that is used to convert an object property value to aGLib.Variantfor storing it inSettings.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.default MemorySegmentupcall(MemorySegment value, MemorySegment expectedType, MemorySegment userData) Theupcallmethod is called from native code.
-
Method Details
-
run
The type for the function that is used to convert an object property value to aGLib.Variantfor storing it inSettings.- Parameters:
value- the property value to mapexpectedType- expected type of the result- Returns:
- a new
GLib.Variantholding the data fromvalue,orNULLin case of an error
-
upcall
default MemorySegment upcall(MemorySegment value, MemorySegment expectedType, MemorySegment userData) Theupcallmethod is called from native code. The parameters are marshaled andrun(Value, VariantType)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-