Package org.gnome.gobject
Class InterfaceInfo
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.InterfaceInfo
- All Implemented Interfaces:
Proxy
A structure that provides information to the type system which is
used specifically for managing interface types.
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new InterfaceInfo.InterfaceInfo(Arena arena) Allocate a new InterfaceInfo.InterfaceInfo(MemorySegment address) Create a InterfaceInfo proxy instance for the provided memory address.InterfaceInfo(InterfaceInitFunc interfaceInit, InterfaceFinalizeFunc interfaceFinalize, MemorySegment interfaceData) Allocate a new InterfaceInfo with the fields set to the provided values.InterfaceInfo(InterfaceInitFunc interfaceInit, InterfaceFinalizeFunc interfaceFinalize, MemorySegment interfaceData, Arena arena) Allocate a new InterfaceInfo with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.Read the value of the fieldinterface_data.@Nullable InterfaceFinalizeFuncRead the value of the fieldinterface_finalize.@Nullable InterfaceInitFuncRead the value of the fieldinterface_init.voidwriteInterfaceData(MemorySegment interfaceData) Write a value in the fieldinterface_data.voidwriteInterfaceFinalize(@Nullable InterfaceFinalizeFunc interfaceFinalize, Arena _arena) Write a value in the fieldinterface_finalize.voidwriteInterfaceInit(@Nullable InterfaceInitFunc interfaceInit, Arena _arena) Write a value in the fieldinterface_init.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
InterfaceInfo
Create a InterfaceInfo proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
InterfaceInfo
Allocate a new InterfaceInfo.- Parameters:
arena- to control the memory allocation scope
-
InterfaceInfo
public InterfaceInfo()Allocate a new InterfaceInfo. The memory is allocated withArena.ofAuto(). -
InterfaceInfo
public InterfaceInfo(InterfaceInitFunc interfaceInit, InterfaceFinalizeFunc interfaceFinalize, MemorySegment interfaceData, Arena arena) Allocate a new InterfaceInfo with the fields set to the provided values.- Parameters:
interfaceInit- value for the fieldinterfaceInitinterfaceFinalize- value for the fieldinterfaceFinalizeinterfaceData- value for the fieldinterfaceDataarena- to control the memory allocation scope
-
InterfaceInfo
public InterfaceInfo(InterfaceInitFunc interfaceInit, InterfaceFinalizeFunc interfaceFinalize, MemorySegment interfaceData) Allocate a new InterfaceInfo with the fields set to the provided values. The memory is allocated withArena.ofAuto().- Parameters:
interfaceInit- value for the fieldinterfaceInitinterfaceFinalize- value for the fieldinterfaceFinalizeinterfaceData- value for the fieldinterfaceData
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readInterfaceInit
Read the value of the fieldinterface_init.- Returns:
- The value of the field
interface_init
-
writeInterfaceInit
Write a value in the fieldinterface_init.- Parameters:
interfaceInit- The new value for the fieldinterface_init_arena- to control the memory allocation scope
-
readInterfaceFinalize
Read the value of the fieldinterface_finalize.- Returns:
- The value of the field
interface_finalize
-
writeInterfaceFinalize
Write a value in the fieldinterface_finalize.- Parameters:
interfaceFinalize- The new value for the fieldinterface_finalize_arena- to control the memory allocation scope
-
readInterfaceData
Read the value of the fieldinterface_data.- Returns:
- The value of the field
interface_data
-
writeInterfaceData
Write a value in the fieldinterface_data.- Parameters:
interfaceData- The new value for the fieldinterface_data
-