Table of Contents

Class Closure

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

Methods

AddFinalizeNotifier(ClosureHandle, IntPtr, ClosureNotify)

Calls native method g_closure_add_finalize_notifier.

public static extern void AddFinalizeNotifier(ClosureHandle closure, IntPtr notifyData, ClosureNotify notifyFunc)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

notifyData IntPtr

Transfer ownership: None Nullable: True

notifyFunc ClosureNotify

Transfer ownership: None Nullable: True

AddInvalidateNotifier(ClosureHandle, IntPtr, ClosureNotify)

Calls native method g_closure_add_invalidate_notifier.

public static extern void AddInvalidateNotifier(ClosureHandle closure, IntPtr notifyData, ClosureNotify notifyFunc)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

notifyData IntPtr

Transfer ownership: None Nullable: True

notifyFunc ClosureNotify

Transfer ownership: None Nullable: True

AddMarshalGuards(ClosureHandle, IntPtr, ClosureNotify, IntPtr, ClosureNotify)

Calls native method g_closure_add_marshal_guards.

public static extern void AddMarshalGuards(ClosureHandle closure, IntPtr preMarshalData, ClosureNotify preMarshalNotify, IntPtr postMarshalData, ClosureNotify postMarshalNotify)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

preMarshalData IntPtr

Transfer ownership: None Nullable: True

preMarshalNotify ClosureNotify

Transfer ownership: None Nullable: True

postMarshalData IntPtr

Transfer ownership: None Nullable: True

postMarshalNotify ClosureNotify

Transfer ownership: None Nullable: True

GetGType()

Calls native function g_closure_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

Invalidate(ClosureHandle)

Calls native method g_closure_invalidate.

public static extern void Invalidate(ClosureHandle closure)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

NewObject(uint, IntPtr)

Calls native constructor g_closure_new_object.

public static extern ClosureUnownedHandle NewObject(uint sizeofClosure, IntPtr @object)

Parameters

sizeofClosure uint

Transfer ownership: None Nullable: False

object IntPtr

Returns

ClosureUnownedHandle

Transfer ownership: None Nullable: False

NewSimple(uint, IntPtr)

Calls native constructor g_closure_new_simple.

public static extern ClosureUnownedHandle NewSimple(uint sizeofClosure, IntPtr data)

Parameters

sizeofClosure uint

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

ClosureUnownedHandle

Transfer ownership: None Nullable: False

Ref(ClosureHandle)

Calls native method g_closure_ref.

public static extern ClosureUnownedHandle Ref(ClosureHandle closure)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

Returns

ClosureUnownedHandle

Transfer ownership: None Nullable: False

RemoveFinalizeNotifier(ClosureHandle, IntPtr, ClosureNotify)

Calls native method g_closure_remove_finalize_notifier.

public static extern void RemoveFinalizeNotifier(ClosureHandle closure, IntPtr notifyData, ClosureNotify notifyFunc)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

notifyData IntPtr

Transfer ownership: None Nullable: True

notifyFunc ClosureNotify

Transfer ownership: None Nullable: False

RemoveInvalidateNotifier(ClosureHandle, IntPtr, ClosureNotify)

Calls native method g_closure_remove_invalidate_notifier.

public static extern void RemoveInvalidateNotifier(ClosureHandle closure, IntPtr notifyData, ClosureNotify notifyFunc)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

notifyData IntPtr

Transfer ownership: None Nullable: True

notifyFunc ClosureNotify

Transfer ownership: None Nullable: False

SetMarshal(ClosureHandle, ClosureMarshal)

Calls native method g_closure_set_marshal.

public static extern void SetMarshal(ClosureHandle closure, ClosureMarshal marshal)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

marshal ClosureMarshal

Transfer ownership: None Nullable: False

SetMetaMarshal(ClosureHandle, IntPtr, ClosureMarshal)

Calls native method g_closure_set_meta_marshal.

public static extern void SetMetaMarshal(ClosureHandle closure, IntPtr marshalData, ClosureMarshal metaMarshal)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

marshalData IntPtr

Transfer ownership: None Nullable: True

metaMarshal ClosureMarshal

Transfer ownership: None Nullable: True

Sink(ClosureHandle)

Calls native method g_closure_sink.

public static extern void Sink(ClosureHandle closure)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False

Unref(ClosureHandle)

Calls native method g_closure_unref.

public static extern void Unref(ClosureHandle closure)

Parameters

closure ClosureHandle

Transfer ownership: None Nullable: False