Table of Contents

Class TypeClass

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

Methods

AddPrivate(TypeClassHandle, nuint)

Calls native method g_type_class_add_private. Version: 2.4

[Version("2.4")]
public static extern void AddPrivate(TypeClassHandle gClass, nuint privateSize)

Parameters

gClass TypeClassHandle

Transfer ownership: None Nullable: False

privateSize nuint

Transfer ownership: None Nullable: False

AdjustPrivateOffset(IntPtr, ref int)

Calls native function g_type_class_adjust_private_offset.

public static extern void AdjustPrivateOffset(IntPtr gClass, ref int privateSizeOrOffset)

Parameters

gClass IntPtr

Transfer ownership: None Nullable: True

privateSizeOrOffset int

Transfer ownership: None Nullable: False

GetInstancePrivateOffset(TypeClassHandle)

Calls native method g_type_class_get_instance_private_offset. Version: 2.38

[Version("2.38")]
public static extern int GetInstancePrivateOffset(TypeClassHandle gClass)

Parameters

gClass TypeClassHandle

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

GetPrivate(TypeClassHandle, Type)

Calls native method g_type_class_get_private.

public static extern IntPtr GetPrivate(TypeClassHandle klass, Type privateType)

Parameters

klass TypeClassHandle

Transfer ownership: None Nullable: False

privateType Type

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

Peek(Type)

Calls native function g_type_class_peek.

public static extern TypeClassUnownedHandle Peek(Type type)

Parameters

type Type

Transfer ownership: None Nullable: False

Returns

TypeClassUnownedHandle

Transfer ownership: None Nullable: False

PeekParent(TypeClassHandle)

Calls native method g_type_class_peek_parent.

public static extern TypeClassUnownedHandle PeekParent(TypeClassHandle gClass)

Parameters

gClass TypeClassHandle

Transfer ownership: None Nullable: False

Returns

TypeClassUnownedHandle

Transfer ownership: None Nullable: False

PeekStatic(Type)

Calls native function g_type_class_peek_static. Version: 2.4

[Version("2.4")]
public static extern TypeClassUnownedHandle PeekStatic(Type type)

Parameters

type Type

Transfer ownership: None Nullable: False

Returns

TypeClassUnownedHandle

Transfer ownership: None Nullable: False

Ref(Type)

Calls native function g_type_class_ref.

public static extern TypeClassUnownedHandle Ref(Type type)

Parameters

type Type

Transfer ownership: None Nullable: False

Returns

TypeClassUnownedHandle

Transfer ownership: None Nullable: False

Unref(TypeClassHandle)

Calls native method g_type_class_unref.

public static extern void Unref(TypeClassHandle gClass)

Parameters

gClass TypeClassHandle

Transfer ownership: None Nullable: False

UnrefUncached(TypeClassHandle)

Calls native method g_type_class_unref_uncached.

public static extern void UnrefUncached(TypeClassHandle gClass)

Parameters

gClass TypeClassHandle

Transfer ownership: None Nullable: False