Class Object
- Namespace
- GObject
- Assembly
- GObject-2.0.dll
public class Object : IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Object
- Implements
- Derived
- Inherited Members
Constructors
Object(ObjectHandle)
protected Object(ObjectHandle handle)
Parameters
handle
ObjectHandle
Fields
NotifySignal
Signal Descriptor for OnNotify.
public static readonly Signal<Object, Object.NotifySignalArgs> NotifySignal
Field Value
Properties
Handle
public ObjectHandle Handle { get; }
Property Value
Methods
AddWeakPointer(ref nint)
public void AddWeakPointer(ref nint weakPointerLocation)
Parameters
weakPointerLocation
nint
BindProperty(string, Object, string, BindingFlags)
[Version("2.26")]
public Binding BindProperty(string sourceProperty, Object target, string targetProperty, BindingFlags flags)
Parameters
sourceProperty
stringtarget
ObjecttargetProperty
stringflags
BindingFlags
Returns
BindPropertyFull(string, Object, string, BindingFlags, Closure, Closure)
[Version("2.26")]
public Binding BindPropertyFull(string sourceProperty, Object target, string targetProperty, BindingFlags flags, Closure transformTo, Closure transformFrom)
Parameters
sourceProperty
stringtarget
ObjecttargetProperty
stringflags
BindingFlagstransformTo
ClosuretransformFrom
Closure
Returns
CompatControl(nuint, nint)
public static nuint CompatControl(nuint what, nint data)
Parameters
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
ForceFloating()
[Version("2.10")]
public void ForceFloating()
FreezeNotify()
public void FreezeNotify()
GetData(string)
public nint GetData(string key)
Parameters
key
string
Returns
GetGType()
public static Type GetGType()
Returns
GetProperty(string, Value)
public void GetProperty(string propertyName, Value value)
Parameters
GetQdata(Quark)
public nint GetQdata(Quark quark)
Parameters
quark
Quark
Returns
GetValist(string, nint)
public void GetValist(string firstPropertyName, nint varArgs)
Parameters
Getv(string[], Value[])
[Version("2.54")]
public void Getv(string[] names, Value[] values)
Parameters
InterfaceFindProperty(TypeInterface, string)
[Version("2.4")]
public static ParamSpec InterfaceFindProperty(TypeInterface gIface, string propertyName)
Parameters
gIface
TypeInterfacepropertyName
string
Returns
InterfaceInstallProperty(TypeInterface, ParamSpec)
[Version("2.4")]
public static void InterfaceInstallProperty(TypeInterface gIface, ParamSpec pspec)
Parameters
gIface
TypeInterfacepspec
ParamSpec
IsFloating()
[Version("2.10")]
public bool IsFloating()
Returns
NewValist(Type, string, nint)
public static Object NewValist(Type objectType, string firstPropertyName, nint varArgs)
Parameters
Returns
NewWithProperties(Type, string[], Value[])
[Version("2.54")]
public static Object NewWithProperties(Type objectType, string[] names, Value[] values)
Parameters
Returns
Newv(Type, Parameter[])
public static Object Newv(Type objectType, Parameter[] parameters)
Parameters
Returns
Notify(string)
public void Notify(string propertyName)
Parameters
propertyName
string
NotifyByPspec(ParamSpec)
[Version("2.26")]
public void NotifyByPspec(ParamSpec pspec)
Parameters
pspec
ParamSpec
Ref()
public Object Ref()
Returns
RefSink()
[Version("2.10")]
public Object RefSink()
Returns
RemoveWeakPointer(ref nint)
public void RemoveWeakPointer(ref nint weakPointerLocation)
Parameters
weakPointerLocation
nint
RunDispose()
public void RunDispose()
SetData(string, nint)
public void SetData(string key, nint data)
Parameters
SetProperty(string, Value)
public void SetProperty(string propertyName, Value value)
Parameters
SetQdata(Quark, nint)
public void SetQdata(Quark quark, nint data)
Parameters
SetValist(string, nint)
public void SetValist(string firstPropertyName, nint varArgs)
Parameters
Setv(string[], Value[])
[Version("2.54")]
public void Setv(string[] names, Value[] values)
Parameters
StealData(string)
public nint StealData(string key)
Parameters
key
string
Returns
StealQdata(Quark)
public nint StealQdata(Quark quark)
Parameters
quark
Quark
Returns
TakeRef()
[Version("2.70")]
public Object TakeRef()
Returns
ThawNotify()
public void ThawNotify()
Unref()
public void Unref()
WatchClosure(Closure)
public void WatchClosure(Closure closure)
Parameters
closure
Closure
Events
OnNotify
public event SignalHandler<Object, Object.NotifySignalArgs> OnNotify