Class TypePluginClass

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

@Generated("org.javagi.JavaGI") public class TypePluginClass extends ProxyInstance
The GTypePlugin interface is used by the type system in order to handle the lifecycle of dynamically loaded types.
  • Constructor Details

    • TypePluginClass

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

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

      public TypePluginClass()
      Allocate a new TypePluginClass. The memory is allocated with Arena.ofAuto().
    • TypePluginClass

      public TypePluginClass(TypeInterface baseIface, TypePluginUse usePlugin, TypePluginUnuse unusePlugin, TypePluginCompleteTypeInfo completeTypeInfo, TypePluginCompleteInterfaceInfo completeInterfaceInfo, Arena arena)
      Allocate a new TypePluginClass with the fields set to the provided values.
      Parameters:
      baseIface - value for the field baseIface
      usePlugin - value for the field usePlugin
      unusePlugin - value for the field unusePlugin
      completeTypeInfo - value for the field completeTypeInfo
      completeInterfaceInfo - value for the field completeInterfaceInfo
      arena - to control the memory allocation scope
    • TypePluginClass

      public TypePluginClass(TypeInterface baseIface, TypePluginUse usePlugin, TypePluginUnuse unusePlugin, TypePluginCompleteTypeInfo completeTypeInfo, TypePluginCompleteInterfaceInfo completeInterfaceInfo)
      Allocate a new TypePluginClass with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      baseIface - value for the field baseIface
      usePlugin - value for the field usePlugin
      unusePlugin - value for the field unusePlugin
      completeTypeInfo - value for the field completeTypeInfo
      completeInterfaceInfo - value for the field completeInterfaceInfo
  • Method Details

    • getMemoryLayout

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

      public @Nullable TypeInterface readBaseIface()
      Read the value of the field base_iface.
      Returns:
      The value of the field base_iface
    • writeBaseIface

      public void writeBaseIface(@Nullable TypeInterface baseIface)
      Write a value in the field base_iface.
      Parameters:
      baseIface - The new value for the field base_iface
    • readUsePlugin

      public @Nullable TypePluginUse readUsePlugin()
      Read the value of the field use_plugin.
      Returns:
      The value of the field use_plugin
    • writeUsePlugin

      public void writeUsePlugin(@Nullable TypePluginUse usePlugin, Arena _arena)
      Write a value in the field use_plugin.
      Parameters:
      usePlugin - The new value for the field use_plugin
      _arena - to control the memory allocation scope
    • readUnusePlugin

      public @Nullable TypePluginUnuse readUnusePlugin()
      Read the value of the field unuse_plugin.
      Returns:
      The value of the field unuse_plugin
    • writeUnusePlugin

      public void writeUnusePlugin(@Nullable TypePluginUnuse unusePlugin, Arena _arena)
      Write a value in the field unuse_plugin.
      Parameters:
      unusePlugin - The new value for the field unuse_plugin
      _arena - to control the memory allocation scope
    • readCompleteTypeInfo

      public @Nullable TypePluginCompleteTypeInfo readCompleteTypeInfo()
      Read the value of the field complete_type_info.
      Returns:
      The value of the field complete_type_info
    • writeCompleteTypeInfo

      public void writeCompleteTypeInfo(@Nullable TypePluginCompleteTypeInfo completeTypeInfo, Arena _arena)
      Write a value in the field complete_type_info.
      Parameters:
      completeTypeInfo - The new value for the field complete_type_info
      _arena - to control the memory allocation scope
    • readCompleteInterfaceInfo

      public @Nullable TypePluginCompleteInterfaceInfo readCompleteInterfaceInfo()
      Read the value of the field complete_interface_info.
      Returns:
      The value of the field complete_interface_info
    • writeCompleteInterfaceInfo

      public void writeCompleteInterfaceInfo(@Nullable TypePluginCompleteInterfaceInfo completeInterfaceInfo, Arena _arena)
      Write a value in the field complete_interface_info.
      Parameters:
      completeInterfaceInfo - The new value for the field complete_interface_info
      _arena - to control the memory allocation scope