Class
ValentObject
unstable since: 1.0
Description [src]
class Valent.Object : GObject.Object
{
/* No available fields */
}
A base class for objects.
ValentObject
is a specialized GObject
class, inspired by GNOME Builder’s
IdeObject
and TinySPARQL’s TsparqlResource
. It provides a base class
with helpers for working in threads and representing unique resources.
Instances have a GRecMutex
and a GCancellable
that is created on-demand
and triggered when the object is destroyed.
An IRI may be provided at construct-time to uniquely identify the object.
Object IRIs should generally reflect the associated ValentContext
and are most useful for well-known components and objects that represent
SPARQL resources.
Available since: 1.0
Instance methods
valent_object_chain_cancellable
Chain a cancellable to the object’s cancellable.
unstable since: 1.0
valent_object_in_destruction
Get whether the object is destroyed or in destruction.
unstable since: 1.0
valent_object_notify_by_pspec
Emit GObject::notify
on object
, on the main thread.
unstable since: 1.0
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct ValentObjectClass {
GObjectClass parent_class;
void (* destroy) (
ValentObject* object
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
destroy: void (* destroy) ( ValentObject* object )
No description available.