Table of Contents

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

constructArguments ConstructArgument[]

TypeModule(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected TypeModule(CreationData data)

Parameters

data CreationData

TypeModule(TypeModuleHandle)

protected TypeModule(TypeModuleHandle handle)

Parameters

handle TypeModuleHandle

Methods

AddInterface(Type, Type, InterfaceInfo)

public void AddInterface(Type instanceType, Type interfaceType, InterfaceInfo interfaceInfo)

Parameters

instanceType Type
interfaceType Type
interfaceInfo InterfaceInfo

CompleteInterfaceInfo(Type, Type, InterfaceInfo)

public void CompleteInterfaceInfo(Type instanceType, Type interfaceType, InterfaceInfo info)

Parameters

instanceType Type
interfaceType Type
info InterfaceInfo

CompleteTypeInfo(Type, TypeInfo, TypeValueTable)

public void CompleteTypeInfo(Type gType, TypeInfo info, TypeValueTable valueTable)

Parameters

gType Type
info TypeInfo
valueTable TypeValueTable

GetGType()

public static Type GetGType()

Returns

Type

NewFromPointer(nint, bool)

Creates a new managed TypeModule instance for a given pointer.

public static TypeModule NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

TypeModule

NewWithProperties(ConstructArgument[])

Creates a new TypeModule and sets the properties specified by the construct arguments.

public static TypeModule NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

TypeModule

RegisterType(Type, string, TypeInfo, TypeFlags)

public Type RegisterType(Type parentType, string typeName, TypeInfo typeInfo, TypeFlags flags)

Parameters

parentType Type
typeName string
typeInfo TypeInfo
flags TypeFlags

Returns

Type

SetName(string)

public void SetName(string name)

Parameters

name string

Unuse()

public void Unuse()

Use()

public bool Use()

Returns

bool