Type Alias GObject

Source
pub type GObject = _GObject;
Expand description

GObject:

The base object type.

All the fields in the GObject structure are private to the implementation and should never be accessed directly.

Since GLib 2.72, all #GObjects are guaranteed to be aligned to at least the alignment of the largest basic GLib type (typically this is #guint64 or #gdouble). If you need larger alignment for an element in a #GObject, you should allocate it on the heap (aligned), or arrange for your #GObject to be appropriately padded. This guarantee applies to the #GObject (or derived) struct, the #GObjectClass (or derived) struct, and any private data allocated by G_ADD_PRIVATE().

Aliased Type§

struct GObject {
    pub g_type_instance: _GTypeInstance,
    pub ref_count: u32,
    pub qdata: *mut _GData,
}

Fields§

§g_type_instance: _GTypeInstance§ref_count: u32§qdata: *mut _GData