Package org.gnome.gobject
Class TypePluginClass
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.Read the value of the fieldbase_iface
.Read the value of the fieldcomplete_interface_info
.Read the value of the fieldcomplete_type_info
.Read the value of the fieldunuse_plugin
.Read the value of the fielduse_plugin
.void
writeBaseIface
(TypeInterface baseIface) Write a value in the fieldbase_iface
.void
writeCompleteInterfaceInfo
(TypePluginCompleteInterfaceInfo completeInterfaceInfo, Arena _arena) Write a value in the fieldcomplete_interface_info
.void
writeCompleteTypeInfo
(TypePluginCompleteTypeInfo completeTypeInfo, Arena _arena) Write a value in the fieldcomplete_type_info
.void
writeUnusePlugin
(TypePluginUnuse unusePlugin, Arena _arena) Write a value in the fieldunuse_plugin
.void
writeUsePlugin
(TypePluginUse usePlugin, Arena _arena) Write a value in the fielduse_plugin
.Methods inherited from class io.github.jwharm.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 fieldbaseIface
usePlugin
- value for the fieldusePlugin
unusePlugin
- value for the fieldunusePlugin
completeTypeInfo
- value for the fieldcompleteTypeInfo
completeInterfaceInfo
- value for the fieldcompleteInterfaceInfo
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 withArena.ofAuto()
.- Parameters:
baseIface
- value for the fieldbaseIface
usePlugin
- value for the fieldusePlugin
unusePlugin
- value for the fieldunusePlugin
completeTypeInfo
- value for the fieldcompleteTypeInfo
completeInterfaceInfo
- 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
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(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
-