Table of Contents

Class TypeClass

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

Constructors

TypeClass()

public TypeClass()

TypeClass(TypeClassOwnedHandle)

public TypeClass(TypeClassOwnedHandle handle)

Parameters

handle TypeClassOwnedHandle

Properties

Handle

public TypeClassOwnedHandle Handle { get; }

Property Value

TypeClassOwnedHandle

Methods

AddPrivate(nuint)

[Version("2.4")]
public void AddPrivate(nuint privateSize)

Parameters

privateSize nuint

AdjustPrivateOffset(IntPtr, ref int)

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

Parameters

gClass IntPtr
privateSizeOrOffset int

Equals(TypeClass?)

public bool Equals(TypeClass? other)

Parameters

other TypeClass

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetInstancePrivateOffset()

[Version("2.38")]
public int GetInstancePrivateOffset()

Returns

int

GetPrivate(Type)

public IntPtr GetPrivate(Type privateType)

Parameters

privateType Type

Returns

IntPtr

Peek(Type)

public static TypeClass Peek(Type type)

Parameters

type Type

Returns

TypeClass

PeekParent()

public TypeClass PeekParent()

Returns

TypeClass

PeekStatic(Type)

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

Parameters

type Type

Returns

TypeClass

Ref(Type)

public static TypeClass Ref(Type type)

Parameters

type Type

Returns

TypeClass

Unref()

public void Unref()

UnrefUncached()

public void UnrefUncached()