Class InterfaceInfo

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.InterfaceInfo
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class InterfaceInfo extends ProxyInstance
A structure that provides information to the type system which is used specifically for managing interface types.
  • Constructor Details

    • InterfaceInfo

      public InterfaceInfo(MemorySegment address)
      Create a InterfaceInfo proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • InterfaceInfo

      public InterfaceInfo(Arena arena)
      Allocate a new InterfaceInfo.
      Parameters:
      arena - to control the memory allocation scope
    • InterfaceInfo

      public InterfaceInfo()
      Allocate a new InterfaceInfo. The memory is allocated with Arena.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 field interfaceInit
      interfaceFinalize - value for the field interfaceFinalize
      interfaceData - value for the field interfaceData
      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 with Arena.ofAuto().
      Parameters:
      interfaceInit - value for the field interfaceInit
      interfaceFinalize - value for the field interfaceFinalize
      interfaceData - value for the field interfaceData
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readInterfaceInit

      public @Nullable InterfaceInitFunc readInterfaceInit()
      Read the value of the field interface_init.
      Returns:
      The value of the field interface_init
    • writeInterfaceInit

      public void writeInterfaceInit(@Nullable InterfaceInitFunc interfaceInit, Arena _arena)
      Write a value in the field interface_init.
      Parameters:
      interfaceInit - The new value for the field interface_init
      _arena - to control the memory allocation scope
    • readInterfaceFinalize

      public @Nullable InterfaceFinalizeFunc readInterfaceFinalize()
      Read the value of the field interface_finalize.
      Returns:
      The value of the field interface_finalize
    • writeInterfaceFinalize

      public void writeInterfaceFinalize(@Nullable InterfaceFinalizeFunc interfaceFinalize, Arena _arena)
      Write a value in the field interface_finalize.
      Parameters:
      interfaceFinalize - The new value for the field interface_finalize
      _arena - to control the memory allocation scope
    • readInterfaceData

      public MemorySegment readInterfaceData()
      Read the value of the field interface_data.
      Returns:
      The value of the field interface_data
    • writeInterfaceData

      public void writeInterfaceData(MemorySegment interfaceData)
      Write a value in the field interface_data.
      Parameters:
      interfaceData - The new value for the field interface_data