Package org.gnome.gobject
Class InterfaceInfo
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.Read the value of the fieldinterface_data
.Read the value of the fieldinterface_finalize
.Read the value of the fieldinterface_init
.void
writeInterfaceData
(MemorySegment interfaceData) Write a value in the fieldinterface_data
.void
writeInterfaceFinalize
(InterfaceFinalizeFunc interfaceFinalize, Arena _arena) Write a value in the fieldinterface_finalize
.void
writeInterfaceInit
(InterfaceInitFunc interfaceInit, Arena _arena) Write a value in the fieldinterface_init
.Methods inherited from class io.github.jwharm.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 fieldinterfaceInit
interfaceFinalize
- value for the fieldinterfaceFinalize
interfaceData
- value for the fieldinterfaceData
arena
- 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 fieldinterfaceInit
interfaceFinalize
- value for the fieldinterfaceFinalize
interfaceData
- 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
-