Class Object
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
IntPtrnotify
ToggleNotifyTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
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
IntPtrTransfer ownership: None Nullable: False
sourceProperty
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
target
IntPtrTransfer ownership: None Nullable: False
targetProperty
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
BindingFlagsTransfer 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
IntPtrTransfer ownership: None Nullable: False
sourceProperty
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
target
IntPtrTransfer ownership: None Nullable: False
targetProperty
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
BindingFlagsTransfer ownership: None Nullable: False
transformTo
BindingTransformFuncTransfer ownership: None Nullable: True
transformFrom
BindingTransformFuncTransfer ownership: None Nullable: True
userData
IntPtrTransfer ownership: None Nullable: True
notify
DestroyNotifyTransfer 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
IntPtrTransfer ownership: None Nullable: False
sourceProperty
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
target
IntPtrTransfer ownership: None Nullable: False
targetProperty
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
flags
BindingFlagsTransfer ownership: None Nullable: False
transformTo
ClosureHandleTransfer ownership: None Nullable: False
transformFrom
ClosureHandleTransfer 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
nuintTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
IntPtrkey
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
dupFunc
DuplicateFuncTransfer ownership: None Nullable: True
userData
IntPtrTransfer 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
IntPtrquark
QuarkTransfer ownership: None Nullable: False
dupFunc
DuplicateFuncTransfer ownership: None Nullable: True
userData
IntPtrTransfer 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
IntPtrkey
NonNullableUtf8StringHandleTransfer 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
IntPtrpropertyName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
value
ValueHandleTransfer ownership: None Nullable: False
GetQdata(IntPtr, Quark)
Calls native method g_object_get_qdata.
public static extern IntPtr GetQdata(IntPtr @object, Quark quark)
Parameters
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
IntPtrfirstPropertyName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
varArgs
IntPtrTransfer 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
IntPtrnProperties
uintTransfer ownership: None Nullable: False
names
string[]Transfer ownership: None Nullable: False
values
ValueArray2HandleTransfer 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
TypeInterfaceHandleTransfer ownership: None Nullable: False
propertyName
NonNullableUtf8StringHandleTransfer 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
TypeInterfaceHandleTransfer ownership: None Nullable: False
pspec
IntPtrTransfer 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
TypeInterfaceHandleTransfer ownership: None Nullable: False
nPropertiesP
uintTransfer 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
TypeTransfer ownership: None Nullable: False
firstPropertyName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
varArgs
IntPtrTransfer 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
TypeTransfer ownership: None Nullable: False
nProperties
uintTransfer ownership: None Nullable: False
names
string[]Transfer ownership: None Nullable: False
values
ValueArray2HandleTransfer 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
TypeTransfer ownership: None Nullable: False
nParameters
uintTransfer ownership: None Nullable: False
parameters
ParameterArrayHandleTransfer 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
IntPtrpropertyName
NonNullableUtf8StringHandleTransfer 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
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
IntPtrnotify
ToggleNotifyTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
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
IntPtrkey
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
oldval
IntPtrTransfer ownership: None Nullable: True
newval
IntPtrTransfer ownership: None Nullable: True
destroy
DestroyNotifyTransfer ownership: None Nullable: True
oldDestroy
DestroyNotifyTransfer 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
IntPtrquark
QuarkTransfer ownership: None Nullable: False
oldval
IntPtrTransfer ownership: None Nullable: True
newval
IntPtrTransfer ownership: None Nullable: True
destroy
DestroyNotifyTransfer ownership: None Nullable: True
oldDestroy
DestroyNotifyTransfer 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
IntPtrkey
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
IntPtrkey
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
data
IntPtrTransfer ownership: None Nullable: True
destroy
DestroyNotifyTransfer 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
IntPtrpropertyName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
value
ValueHandleTransfer 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
IntPtrquark
QuarkTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
IntPtrquark
QuarkTransfer ownership: None Nullable: False
data
IntPtrTransfer ownership: None Nullable: True
destroy
DestroyNotifyTransfer 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
IntPtrfirstPropertyName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
varArgs
IntPtrTransfer 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
IntPtrnProperties
uintTransfer ownership: None Nullable: False
names
string[]Transfer ownership: None Nullable: False
values
ValueArray2HandleTransfer 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
IntPtrkey
NonNullableUtf8StringHandleTransfer 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
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
IntPtrclosure
ClosureHandleTransfer 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
IntPtrnotify
WeakNotifyTransfer ownership: None Nullable: False
data
IntPtrTransfer 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
IntPtrnotify
WeakNotifyTransfer ownership: None Nullable: False
data
IntPtrTransfer ownership: None Nullable: True