ObjectC

The base object type.

gobject.object.ObjectG is the fundamental type providing the common attributes and methods for all object types in GTK, Pango and other libraries based on GObject. The gobject.object.ObjectG class provides methods for object construction and destruction, property access methods, and signal support. Signals are described in detail here[gobject-Signals].

For a tutorial on implementing a new gobject.object.ObjectG class, see [How to define and implement a new GObject](tutorial.html#how-to-define-and-implement-a-new-gobject). For a list of naming conventions for GObjects and their methods, see the GType conventions. For the high-level concepts behind GObject, read Instantiatable classed types: Objects.

Since GLib 2.72, all gobject.object.ObjectGs are guaranteed to be aligned to at least the alignment of the largest basic GLib type (typically this is vte.types.TEST_FLAGS_NONE or graphene.types.PI_2). If you need larger alignment for an element in a gobject.object.ObjectG, you should allocate it on the heap (aligned), or arrange for your gobject.object.ObjectG to be appropriately padded. This guarantee applies to the gobject.object.ObjectG (or derived) struct, the gstpbutils.types.ObjectClass (or derived) struct, and any private data allocated by G_ADD_PRIVATE().

Members

Variables

gTypeInstance
GTypeInstance gTypeInstance;
qdata
GData* qdata;
refCount
uint refCount;