Class TypeModule
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
IntPtrTransfer ownership: None Nullable: True
instanceType
TypeTransfer ownership: None Nullable: False
interfaceType
TypeTransfer ownership: None Nullable: False
interfaceInfo
InterfaceInfoHandleTransfer 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
IntPtrTransfer ownership: None Nullable: True
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
constStaticValues
EnumValueHandleTransfer 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
IntPtrTransfer ownership: None Nullable: True
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
constStaticValues
FlagsValueHandleTransfer 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
IntPtrTransfer ownership: None Nullable: True
parentType
TypeTransfer ownership: None Nullable: False
typeName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
typeInfo
TypeInfoHandleTransfer ownership: None Nullable: False
flags
TypeFlagsTransfer 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
IntPtrTransfer ownership: None Nullable: False
name
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Unuse(IntPtr)
Calls native method g_type_module_unuse.
public static extern void Unuse(IntPtr module)
Parameters
module
IntPtrTransfer ownership: None Nullable: False
Use(IntPtr)
Calls native method g_type_module_use.
public static extern bool Use(IntPtr module)
Parameters
module
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False