Table of Contents

Class Object

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

Methods

AddToggleRef(IntPtr, ToggleNotify, IntPtr)

Calls native method g_object_add_toggle_ref. Version: 2.8

[Version("2.8")]
public static extern void AddToggleRef(IntPtr @object, ToggleNotify notify, IntPtr data)

Parameters

object IntPtr
notify ToggleNotify

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

AddWeakPointer(IntPtr, ref IntPtr)

Calls native method g_object_add_weak_pointer.

public static extern void AddWeakPointer(IntPtr @object, ref IntPtr weakPointerLocation)

Parameters

object IntPtr
weakPointerLocation IntPtr

Transfer ownership: Full Nullable: False

BindProperty(IntPtr, NonNullableUtf8StringHandle, IntPtr, NonNullableUtf8StringHandle, BindingFlags)

Calls native method g_object_bind_property. Version: 2.26

[Version("2.26")]
public static extern IntPtr BindProperty(IntPtr source, NonNullableUtf8StringHandle sourceProperty, IntPtr target, NonNullableUtf8StringHandle targetProperty, BindingFlags flags)

Parameters

source IntPtr

Transfer ownership: None Nullable: False

sourceProperty NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

target IntPtr

Transfer ownership: None Nullable: False

targetProperty NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags BindingFlags

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

BindPropertyFull(IntPtr, NonNullableUtf8StringHandle, IntPtr, NonNullableUtf8StringHandle, BindingFlags, BindingTransformFunc, BindingTransformFunc, IntPtr, DestroyNotify)

Calls native method g_object_bind_property_full. Version: 2.26

[Version("2.26")]
public static extern IntPtr BindPropertyFull(IntPtr source, NonNullableUtf8StringHandle sourceProperty, IntPtr target, NonNullableUtf8StringHandle targetProperty, BindingFlags flags, BindingTransformFunc transformTo, BindingTransformFunc transformFrom, IntPtr userData, DestroyNotify notify)

Parameters

source IntPtr

Transfer ownership: None Nullable: False

sourceProperty NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

target IntPtr

Transfer ownership: None Nullable: False

targetProperty NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags BindingFlags

Transfer ownership: None Nullable: False

transformTo BindingTransformFunc

Transfer ownership: None Nullable: True

transformFrom BindingTransformFunc

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

notify DestroyNotify

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: False

BindPropertyFull(IntPtr, NonNullableUtf8StringHandle, IntPtr, NonNullableUtf8StringHandle, BindingFlags, ClosureHandle, ClosureHandle)

Calls native method g_object_bind_property_with_closures. Version: 2.26

[Version("2.26")]
public static extern IntPtr BindPropertyFull(IntPtr source, NonNullableUtf8StringHandle sourceProperty, IntPtr target, NonNullableUtf8StringHandle targetProperty, BindingFlags flags, ClosureHandle transformTo, ClosureHandle transformFrom)

Parameters

source IntPtr

Transfer ownership: None Nullable: False

sourceProperty NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

target IntPtr

Transfer ownership: None Nullable: False

targetProperty NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

flags BindingFlags

Transfer ownership: None Nullable: False

transformTo ClosureHandle

Transfer ownership: None Nullable: False

transformFrom ClosureHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

CompatControl(nuint, IntPtr)

Calls native function g_object_compat_control.

public static extern nuint CompatControl(nuint what, IntPtr data)

Parameters

what nuint

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

Returns

nuint

Transfer ownership: None Nullable: False

DupData(IntPtr, NonNullableUtf8StringHandle, DuplicateFunc, IntPtr)

Calls native method g_object_dup_data. Version: 2.34

[Version("2.34")]
public static extern IntPtr DupData(IntPtr @object, NonNullableUtf8StringHandle key, DuplicateFunc dupFunc, IntPtr userData)

Parameters

object IntPtr
key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

dupFunc DuplicateFunc

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: True

DupQdata(IntPtr, Quark, DuplicateFunc, IntPtr)

Calls native method g_object_dup_qdata. Version: 2.34

[Version("2.34")]
public static extern IntPtr DupQdata(IntPtr @object, Quark quark, DuplicateFunc dupFunc, IntPtr userData)

Parameters

object IntPtr
quark Quark

Transfer ownership: None Nullable: False

dupFunc DuplicateFunc

Transfer ownership: None Nullable: True

userData IntPtr

Transfer ownership: None Nullable: True

Returns

IntPtr

Transfer ownership: None Nullable: True

ForceFloating(IntPtr)

Calls native method g_object_force_floating. Version: 2.10

[Version("2.10")]
public static extern void ForceFloating(IntPtr @object)

Parameters

object IntPtr

FreezeNotify(IntPtr)

Calls native method g_object_freeze_notify.

public static extern void FreezeNotify(IntPtr @object)

Parameters

object IntPtr

GetData(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_object_get_data.

public static extern IntPtr GetData(IntPtr @object, NonNullableUtf8StringHandle key)

Parameters

object IntPtr
key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetGType()

Calls native function g_object_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetProperty(IntPtr, NonNullableUtf8StringHandle, ValueHandle)

Calls native method g_object_get_property.

public static extern void GetProperty(IntPtr @object, NonNullableUtf8StringHandle propertyName, ValueHandle value)

Parameters

object IntPtr
propertyName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value ValueHandle

Transfer ownership: None Nullable: False

GetQdata(IntPtr, Quark)

Calls native method g_object_get_qdata.

public static extern IntPtr GetQdata(IntPtr @object, Quark quark)

Parameters

object IntPtr
quark Quark

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetValist(IntPtr, NonNullableUtf8StringHandle, IntPtr)

Calls native method g_object_get_valist.

public static extern void GetValist(IntPtr @object, NonNullableUtf8StringHandle firstPropertyName, IntPtr varArgs)

Parameters

object IntPtr
firstPropertyName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

varArgs IntPtr

Transfer ownership: None Nullable: False

Getv(IntPtr, uint, string[], ValueArray2Handle)

Calls native method g_object_getv. Version: 2.54

[Version("2.54")]
public static extern void Getv(IntPtr @object, uint nProperties, string[] names, ValueArray2Handle values)

Parameters

object IntPtr
nProperties uint

Transfer ownership: None Nullable: False

names string[]

Transfer ownership: None Nullable: False

values ValueArray2Handle

Transfer ownership: None Nullable: False

InterfaceFindProperty(TypeInterfaceHandle, NonNullableUtf8StringHandle)

Calls native function g_object_interface_find_property. Version: 2.4

[Version("2.4")]
public static extern IntPtr InterfaceFindProperty(TypeInterfaceHandle gIface, NonNullableUtf8StringHandle propertyName)

Parameters

gIface TypeInterfaceHandle

Transfer ownership: None Nullable: False

propertyName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: False

InterfaceInstallProperty(TypeInterfaceHandle, IntPtr)

Calls native function g_object_interface_install_property. Version: 2.4

[Version("2.4")]
public static extern void InterfaceInstallProperty(TypeInterfaceHandle gIface, IntPtr pspec)

Parameters

gIface TypeInterfaceHandle

Transfer ownership: None Nullable: False

pspec IntPtr

Transfer ownership: None Nullable: False

InterfaceListProperties(TypeInterfaceHandle, out uint)

Calls native function g_object_interface_list_properties. Version: 2.4

[Version("2.4")]
public static extern IntPtr[] InterfaceListProperties(TypeInterfaceHandle gIface, out uint nPropertiesP)

Parameters

gIface TypeInterfaceHandle

Transfer ownership: None Nullable: False

nPropertiesP uint

Transfer ownership: Full Nullable: False

Returns

IntPtr[]

Transfer ownership: Container Nullable: False

IsFloating(IntPtr)

Calls native method g_object_is_floating. Version: 2.10

[Version("2.10")]
public static extern bool IsFloating(IntPtr @object)

Parameters

object IntPtr

Returns

bool

Transfer ownership: None Nullable: False

NewValist(Type, NonNullableUtf8StringHandle, IntPtr)

Calls native constructor g_object_new_valist.

public static extern IntPtr NewValist(Type objectType, NonNullableUtf8StringHandle firstPropertyName, IntPtr varArgs)

Parameters

objectType Type

Transfer ownership: None Nullable: False

firstPropertyName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

varArgs IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewWithProperties(Type, uint, string[], ValueArray2Handle)

Calls native constructor g_object_new_with_properties. Version: 2.54

[Version("2.54")]
public static extern IntPtr NewWithProperties(Type objectType, uint nProperties, string[] names, ValueArray2Handle values)

Parameters

objectType Type

Transfer ownership: None Nullable: False

nProperties uint

Transfer ownership: None Nullable: False

names string[]

Transfer ownership: None Nullable: False

values ValueArray2Handle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

Newv(Type, uint, ParameterArrayHandle)

Calls native constructor g_object_newv.

public static extern IntPtr Newv(Type objectType, uint nParameters, ParameterArrayHandle parameters)

Parameters

objectType Type

Transfer ownership: None Nullable: False

nParameters uint

Transfer ownership: None Nullable: False

parameters ParameterArrayHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

Notify(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_object_notify.

public static extern void Notify(IntPtr @object, NonNullableUtf8StringHandle propertyName)

Parameters

object IntPtr
propertyName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

NotifyByPspec(IntPtr, IntPtr)

Calls native method g_object_notify_by_pspec. Version: 2.26

[Version("2.26")]
public static extern void NotifyByPspec(IntPtr @object, IntPtr pspec)

Parameters

object IntPtr
pspec IntPtr

Transfer ownership: None Nullable: False

Ref(IntPtr)

Calls native method g_object_ref.

public static extern IntPtr Ref(IntPtr @object)

Parameters

object IntPtr

Returns

IntPtr

Transfer ownership: None Nullable: False

RefSink(IntPtr)

Calls native method g_object_ref_sink. Version: 2.10

[Version("2.10")]
public static extern IntPtr RefSink(IntPtr @object)

Parameters

object IntPtr

Returns

IntPtr

Transfer ownership: None Nullable: False

RemoveToggleRef(IntPtr, ToggleNotify, IntPtr)

Calls native method g_object_remove_toggle_ref. Version: 2.8

[Version("2.8")]
public static extern void RemoveToggleRef(IntPtr @object, ToggleNotify notify, IntPtr data)

Parameters

object IntPtr
notify ToggleNotify

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

RemoveWeakPointer(IntPtr, ref IntPtr)

Calls native method g_object_remove_weak_pointer.

public static extern void RemoveWeakPointer(IntPtr @object, ref IntPtr weakPointerLocation)

Parameters

object IntPtr
weakPointerLocation IntPtr

Transfer ownership: Full Nullable: False

ReplaceData(IntPtr, NonNullableUtf8StringHandle, IntPtr, IntPtr, DestroyNotify, DestroyNotify)

Calls native method g_object_replace_data. Version: 2.34

[Version("2.34")]
public static extern bool ReplaceData(IntPtr @object, NonNullableUtf8StringHandle key, IntPtr oldval, IntPtr newval, DestroyNotify destroy, DestroyNotify oldDestroy)

Parameters

object IntPtr
key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

oldval IntPtr

Transfer ownership: None Nullable: True

newval IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: True

oldDestroy DestroyNotify

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ReplaceQdata(IntPtr, Quark, IntPtr, IntPtr, DestroyNotify, DestroyNotify)

Calls native method g_object_replace_qdata. Version: 2.34

[Version("2.34")]
public static extern bool ReplaceQdata(IntPtr @object, Quark quark, IntPtr oldval, IntPtr newval, DestroyNotify destroy, DestroyNotify oldDestroy)

Parameters

object IntPtr
quark Quark

Transfer ownership: None Nullable: False

oldval IntPtr

Transfer ownership: None Nullable: True

newval IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: True

oldDestroy DestroyNotify

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

RunDispose(IntPtr)

Calls native method g_object_run_dispose.

public static extern void RunDispose(IntPtr @object)

Parameters

object IntPtr

SetData(IntPtr, NonNullableUtf8StringHandle, IntPtr)

Calls native method g_object_set_data.

public static extern void SetData(IntPtr @object, NonNullableUtf8StringHandle key, IntPtr data)

Parameters

object IntPtr
key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

SetDataFull(IntPtr, NonNullableUtf8StringHandle, IntPtr, DestroyNotify)

Calls native method g_object_set_data_full.

public static extern void SetDataFull(IntPtr @object, NonNullableUtf8StringHandle key, IntPtr data, DestroyNotify destroy)

Parameters

object IntPtr
key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: True

SetProperty(IntPtr, NonNullableUtf8StringHandle, ValueHandle)

Calls native method g_object_set_property.

public static extern void SetProperty(IntPtr @object, NonNullableUtf8StringHandle propertyName, ValueHandle value)

Parameters

object IntPtr
propertyName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value ValueHandle

Transfer ownership: None Nullable: False

SetQdata(IntPtr, Quark, IntPtr)

Calls native method g_object_set_qdata.

public static extern void SetQdata(IntPtr @object, Quark quark, IntPtr data)

Parameters

object IntPtr
quark Quark

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

SetQdataFull(IntPtr, Quark, IntPtr, DestroyNotify)

Calls native method g_object_set_qdata_full.

public static extern void SetQdataFull(IntPtr @object, Quark quark, IntPtr data, DestroyNotify destroy)

Parameters

object IntPtr
quark Quark

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

destroy DestroyNotify

Transfer ownership: None Nullable: True

SetValist(IntPtr, NonNullableUtf8StringHandle, IntPtr)

Calls native method g_object_set_valist.

public static extern void SetValist(IntPtr @object, NonNullableUtf8StringHandle firstPropertyName, IntPtr varArgs)

Parameters

object IntPtr
firstPropertyName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

varArgs IntPtr

Transfer ownership: None Nullable: False

Setv(IntPtr, uint, string[], ValueArray2Handle)

Calls native method g_object_setv. Version: 2.54

[Version("2.54")]
public static extern void Setv(IntPtr @object, uint nProperties, string[] names, ValueArray2Handle values)

Parameters

object IntPtr
nProperties uint

Transfer ownership: None Nullable: False

names string[]

Transfer ownership: None Nullable: False

values ValueArray2Handle

Transfer ownership: None Nullable: False

StealData(IntPtr, NonNullableUtf8StringHandle)

Calls native method g_object_steal_data.

public static extern IntPtr StealData(IntPtr @object, NonNullableUtf8StringHandle key)

Parameters

object IntPtr
key NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

StealQdata(IntPtr, Quark)

Calls native method g_object_steal_qdata.

public static extern IntPtr StealQdata(IntPtr @object, Quark quark)

Parameters

object IntPtr
quark Quark

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: True

TakeRef(IntPtr)

Calls native method g_object_take_ref. Version: 2.70

[Version("2.70")]
public static extern IntPtr TakeRef(IntPtr @object)

Parameters

object IntPtr

Returns

IntPtr

Transfer ownership: Full Nullable: False

ThawNotify(IntPtr)

Calls native method g_object_thaw_notify.

public static extern void ThawNotify(IntPtr @object)

Parameters

object IntPtr

Unref(IntPtr)

Calls native method g_object_unref.

public static extern void Unref(IntPtr @object)

Parameters

object IntPtr

WatchClosure(IntPtr, ClosureHandle)

Calls native method g_object_watch_closure.

public static extern void WatchClosure(IntPtr @object, ClosureHandle closure)

Parameters

object IntPtr
closure ClosureHandle

Transfer ownership: None Nullable: False

WeakRef(IntPtr, WeakNotify, IntPtr)

Calls native method g_object_weak_ref.

public static extern void WeakRef(IntPtr @object, WeakNotify notify, IntPtr data)

Parameters

object IntPtr
notify WeakNotify

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

WeakUnref(IntPtr, WeakNotify, IntPtr)

Calls native method g_object_weak_unref.

public static extern void WeakUnref(IntPtr @object, WeakNotify notify, IntPtr data)

Parameters

object IntPtr
notify WeakNotify

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True