Package org.gnome.gobject
Class TypePluginClass
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypePluginClass
- All Implemented Interfaces:
Proxy
The
GTypePlugin interface is used by the type system in order to handle
the lifecycle of dynamically loaded types.-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new TypePluginClass.TypePluginClass(Arena arena) Allocate a new TypePluginClass.TypePluginClass(MemorySegment address) Create a TypePluginClass proxy instance for the provided memory address.TypePluginClass(TypeInterface baseIface, TypePluginUse usePlugin, TypePluginUnuse unusePlugin, TypePluginCompleteTypeInfo completeTypeInfo, TypePluginCompleteInterfaceInfo completeInterfaceInfo) Allocate a new TypePluginClass with the fields set to the provided values.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.@Nullable TypeInterfaceRead the value of the fieldbase_iface.@Nullable TypePluginCompleteInterfaceInfoRead the value of the fieldcomplete_interface_info.@Nullable TypePluginCompleteTypeInfoRead the value of the fieldcomplete_type_info.@Nullable TypePluginUnuseRead the value of the fieldunuse_plugin.@Nullable TypePluginUseRead the value of the fielduse_plugin.voidwriteBaseIface(@Nullable TypeInterface baseIface) Write a value in the fieldbase_iface.voidwriteCompleteInterfaceInfo(@Nullable TypePluginCompleteInterfaceInfo completeInterfaceInfo, Arena _arena) Write a value in the fieldcomplete_interface_info.voidwriteCompleteTypeInfo(@Nullable TypePluginCompleteTypeInfo completeTypeInfo, Arena _arena) Write a value in the fieldcomplete_type_info.voidwriteUnusePlugin(@Nullable TypePluginUnuse unusePlugin, Arena _arena) Write a value in the fieldunuse_plugin.voidwriteUsePlugin(@Nullable TypePluginUse usePlugin, Arena _arena) Write a value in the fielduse_plugin.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
TypePluginClass
Create a TypePluginClass proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
TypePluginClass
Allocate a new TypePluginClass.- Parameters:
arena- to control the memory allocation scope
-
TypePluginClass
public TypePluginClass()Allocate a new TypePluginClass. The memory is allocated withArena.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 fieldbaseIfaceusePlugin- value for the fieldusePluginunusePlugin- value for the fieldunusePlugincompleteTypeInfo- value for the fieldcompleteTypeInfocompleteInterfaceInfo- value for the fieldcompleteInterfaceInfoarena- 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 withArena.ofAuto().- Parameters:
baseIface- value for the fieldbaseIfaceusePlugin- value for the fieldusePluginunusePlugin- value for the fieldunusePlugincompleteTypeInfo- value for the fieldcompleteTypeInfocompleteInterfaceInfo- value for the fieldcompleteInterfaceInfo
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readBaseIface
Read the value of the fieldbase_iface.- Returns:
- The value of the field
base_iface
-
writeBaseIface
Write a value in the fieldbase_iface.- Parameters:
baseIface- The new value for the fieldbase_iface
-
readUsePlugin
Read the value of the fielduse_plugin.- Returns:
- The value of the field
use_plugin
-
writeUsePlugin
Write a value in the fielduse_plugin.- Parameters:
usePlugin- The new value for the fielduse_plugin_arena- to control the memory allocation scope
-
readUnusePlugin
Read the value of the fieldunuse_plugin.- Returns:
- The value of the field
unuse_plugin
-
writeUnusePlugin
Write a value in the fieldunuse_plugin.- Parameters:
unusePlugin- The new value for the fieldunuse_plugin_arena- to control the memory allocation scope
-
readCompleteTypeInfo
Read the value of the fieldcomplete_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 fieldcomplete_type_info.- Parameters:
completeTypeInfo- The new value for the fieldcomplete_type_info_arena- to control the memory allocation scope
-
readCompleteInterfaceInfo
Read the value of the fieldcomplete_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 fieldcomplete_interface_info.- Parameters:
completeInterfaceInfo- The new value for the fieldcomplete_interface_info_arena- to control the memory allocation scope
-