Class TypeModule.TypeModuleClass

All Implemented Interfaces:
Proxy
Enclosing class:
TypeModule

public static class TypeModule.TypeModuleClass extends GObject.ObjectClass
In order to implement dynamic loading of types based on GTypeModule, the load and unload functions in GTypeModuleClass must be implemented.
  • Constructor Details

    • TypeModuleClass

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

    • getMemoryLayout

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

      public void overrideLoad(Arena arena, @Nullable Method method)
      Override virtual method load.
      Parameters:
      method - the method to invoke
    • overrideUnload

      public void overrideUnload(Arena arena, @Nullable Method method)
      Override virtual method unload.
      Parameters:
      method - the method to invoke