Class TypeModule
- Namespace
- GObject
- Assembly
- GObject-2.0.dll
public class TypeModule : Object, TypePlugin, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
TypeModule
- Implements
- Derived
- Inherited Members
Constructors
TypeModule(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public TypeModule(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
TypeModule(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected TypeModule(CreationData data)
Parameters
dataCreationData
TypeModule(TypeModuleHandle)
protected TypeModule(TypeModuleHandle handle)
Parameters
handleTypeModuleHandle
Methods
AddInterface(Type, Type, InterfaceInfo)
public void AddInterface(Type instanceType, Type interfaceType, InterfaceInfo interfaceInfo)
Parameters
instanceTypeTypeinterfaceTypeTypeinterfaceInfoInterfaceInfo
CompleteInterfaceInfo(Type, Type, InterfaceInfo)
public void CompleteInterfaceInfo(Type instanceType, Type interfaceType, InterfaceInfo info)
Parameters
instanceTypeTypeinterfaceTypeTypeinfoInterfaceInfo
CompleteTypeInfo(Type, TypeInfo, TypeValueTable)
public void CompleteTypeInfo(Type gType, TypeInfo info, TypeValueTable valueTable)
Parameters
gTypeTypeinfoTypeInfovalueTableTypeValueTable
GetGType()
public static Type GetGType()
Returns
NewFromPointer(nint, bool)
Creates a new managed TypeModule instance for a given pointer.
public static TypeModule NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new TypeModule and sets the properties specified by the construct arguments.
public static TypeModule NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
RegisterType(Type, string, TypeInfo, TypeFlags)
public Type RegisterType(Type parentType, string typeName, TypeInfo typeInfo, TypeFlags flags)
Parameters
Returns
SetName(string)
public void SetName(string name)
Parameters
namestring
Unuse()
public void Unuse()
Use()
public bool Use()