Interface ObjectGetPropertyFunc
- 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 ObjectGetPropertyFunc
extends FunctionPointer
Functional interface declaration of the ObjectGetPropertyFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidThe type of thegetPropertyfunction ofGObjectClass.default MemorySegmenttoCallback(Arena arena) Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment, MemorySegment)method.default voidupcall(MemorySegment object, int propertyId, MemorySegment value, MemorySegment pspec) Theupcallmethod is called from native code.
-
Method Details
-
run
The type of thegetPropertyfunction ofGObjectClass.- Parameters:
object- aGObjectpropertyId- the numeric id under which the property was registered with g_object_class_install_property().value- aGValueto return the property value inpspec- theGParamSpecdescribing the property
-
upcall
Theupcallmethod is called from native code. The parameters are marshaled andrun(GObject, int, Value, ParamSpec)is executed. -
toCallback
Creates a native function pointer to theupcall(MemorySegment, int, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-