Table of Contents

Class TypeModule

Namespace
GObject.Internal
Assembly
GObject-2.0.dll
public class TypeModule
Inheritance
TypeModule
Inherited Members

Methods

AddInterface(IntPtr, Type, Type, InterfaceInfoHandle)

Calls native method g_type_module_add_interface.

public static extern void AddInterface(IntPtr module, Type instanceType, Type interfaceType, InterfaceInfoHandle interfaceInfo)

Parameters

module IntPtr

Transfer ownership: None Nullable: True

instanceType Type

Transfer ownership: None Nullable: False

interfaceType Type

Transfer ownership: None Nullable: False

interfaceInfo InterfaceInfoHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_type_module_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

RegisterEnum(IntPtr, NonNullableUtf8StringHandle, EnumValueHandle)

Calls native method g_type_module_register_enum. Version: 2.6

[Version("2.6")]
public static extern nuint RegisterEnum(IntPtr module, NonNullableUtf8StringHandle name, EnumValueHandle constStaticValues)

Parameters

module IntPtr

Transfer ownership: None Nullable: True

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

constStaticValues EnumValueHandle

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

RegisterFlags(IntPtr, NonNullableUtf8StringHandle, FlagsValueHandle)

Calls native method g_type_module_register_flags. Version: 2.6

[Version("2.6")]
public static extern nuint RegisterFlags(IntPtr module, NonNullableUtf8StringHandle name, FlagsValueHandle constStaticValues)

Parameters

module IntPtr

Transfer ownership: None Nullable: True

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

constStaticValues FlagsValueHandle

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

RegisterType(IntPtr, Type, NonNullableUtf8StringHandle, TypeInfoHandle, TypeFlags)

Calls native method g_type_module_register_type.

public static extern nuint RegisterType(IntPtr module, Type parentType, NonNullableUtf8StringHandle typeName, TypeInfoHandle typeInfo, TypeFlags flags)

Parameters

module IntPtr

Transfer ownership: None Nullable: True

parentType Type

Transfer ownership: None Nullable: False

typeName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

typeInfo TypeInfoHandle

Transfer ownership: None Nullable: False

flags TypeFlags

Transfer ownership: None Nullable: False

Returns

nuint

Transfer ownership: None Nullable: False

SetName(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_type_module_set_name.

public static extern void SetName(IntPtr module, NonNullableUtf8StringHandle name)

Parameters

module IntPtr

Transfer ownership: None Nullable: False

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Unuse(IntPtr)

Calls native method g_type_module_unuse.

public static extern void Unuse(IntPtr module)

Parameters

module IntPtr

Transfer ownership: None Nullable: False

Use(IntPtr)

Calls native method g_type_module_use.

public static extern bool Use(IntPtr module)

Parameters

module IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False