The Base Object Type

Name

The Base Object Type -- 

Synopsis


#include <gobject.h>


struct      GObject;
struct      GObjectClass;
struct      GObjectConstructParam;
void        (*GObjectGetPropertyFunc)       (GObject *object,
                                             guint property_id,
                                             GValue *value,
                                             GParamSpec *pspec);
void        (*GObjectSetPropertyFunc)       (GObject *object,
                                             guint property_id,
                                             const GValue *value,
                                             GParamSpec *pspec);
void        (*GObjectFinalizeFunc)          (GObject *object);
#define     G_TYPE_IS_OBJECT                (type)
#define     G_OBJECT                        (object)
#define     G_IS_OBJECT                     (object)
#define     G_OBJECT_CLASS                  (class)
#define     G_IS_OBJECT_CLASS               (class)
#define     G_OBJECT_GET_CLASS              (object)
#define     G_OBJECT_TYPE                   (object)
#define     G_OBJECT_TYPE_NAME              (object)
#define     G_OBJECT_CLASS_TYPE             (class)
#define     G_OBJECT_CLASS_NAME             (class)
#define     G_VALUE_HOLDS_OBJECT            (value)
void        g_object_class_install_property (GObjectClass *oclass,
                                             guint property_id,
                                             GParamSpec *pspec);
GParamSpec* g_object_class_find_property    (GObjectClass *oclass,
                                             const gchar *property_name);
gpointer    g_object_new                    (GType object_type,
                                             const gchar *first_property_name,
                                             ...);
gpointer    g_object_ref                    (gpointer object);
void        g_object_unref                  (gpointer object);
gpointer    g_object_connect                (gpointer object,
                                             const gchar *signal_spec,
                                             ...);
gpointer    g_object_disconnect             (gpointer object,
                                             const gchar *signal_spec,
                                             ...);
gpointer    g_object_set                    (gpointer object,
                                             const gchar *first_property_name,
                                             ...);
void        g_object_get                    (gpointer object,
                                             const gchar *first_property_name,
                                             ...);
void        g_object_notify                 (GObject *object,
                                             const gchar *property_name);
void        g_object_freeze_notify          (GObject *object);
void        g_object_thaw_notify            (GObject *object);
gpointer    g_object_get_data               (GObject *object,
                                             const gchar *key);
void        g_object_set_data               (GObject *object,
                                             const gchar *key,
                                             gpointer data);
void        g_object_set_data_full          (GObject *object,
                                             const gchar *key,
                                             gpointer data,
                                             GDestroyNotify destroy);
gpointer    g_object_steal_data             (GObject *object,
                                             const gchar *key);
gpointer    g_object_get_qdata              (GObject *object,
                                             GQuark quark);
void        g_object_set_qdata              (GObject *object,
                                             GQuark quark,
                                             gpointer data);
void        g_object_set_qdata_full         (GObject *object,
                                             GQuark quark,
                                             gpointer data,
                                             GDestroyNotify destroy);
gpointer    g_object_steal_qdata            (GObject *object,
                                             GQuark quark);
void        g_object_set_property           (GObject *object,
                                             const gchar *property_name,
                                             const GValue *value);
void        g_object_get_property           (GObject *object,
                                             const gchar *property_name,
                                             GValue *value);
gpointer    g_object_new_valist             (GType object_type,
                                             const gchar *first_property_name,
                                             va_list var_args);
void        g_object_set_valist             (GObject *object,
                                             const gchar *first_property_name,
                                             va_list var_args);
void        g_object_get_valist             (GObject *object,
                                             const gchar *first_property_name,
                                             va_list var_args);
void        g_object_watch_closure          (GObject *object,
                                             GClosure *closure);
void        g_value_set_object              (GValue *value,
                                             GObject *v_object);
gpointer    g_value_get_object              (const GValue *value);
GObject*    g_value_dup_object              (const GValue *value);
#define     G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec)

Description

Details

struct GObject

struct GObject
{
  GTypeInstance g_type_instance;
  
  /*< private >*/
  guint         ref_count;
  GData        *qdata;
};


struct GObjectClass

struct GObjectClass;


struct GObjectConstructParam

struct GObjectConstructParam
{
  GParamSpec  *pspec;
  GValue      *value;
};


GObjectGetPropertyFunc ()

void        (*GObjectGetPropertyFunc)       (GObject *object,
                                             guint property_id,
                                             GValue *value,
                                             GParamSpec *pspec);

object : 
property_id : 
value : 
pspec : 


GObjectSetPropertyFunc ()

void        (*GObjectSetPropertyFunc)       (GObject *object,
                                             guint property_id,
                                             const GValue *value,
                                             GParamSpec *pspec);

object : 
property_id : 
value : 
pspec : 


GObjectFinalizeFunc ()

void        (*GObjectFinalizeFunc)          (GObject *object);

object : 


G_TYPE_IS_OBJECT()

#define G_TYPE_IS_OBJECT(type)      (G_TYPE_FUNDAMENTAL (type) == G_TYPE_OBJECT)

type : 


G_OBJECT()

#define G_OBJECT(object)            (G_TYPE_CHECK_INSTANCE_CAST ((object), G_TYPE_OBJECT, GObject))

object : 


G_IS_OBJECT()

#define G_IS_OBJECT(object)         (G_TYPE_CHECK_INSTANCE_TYPE ((object), G_TYPE_OBJECT))

object : 


G_OBJECT_CLASS()

#define G_OBJECT_CLASS(class)       (G_TYPE_CHECK_CLASS_CAST ((class), G_TYPE_OBJECT, GObjectClass))

class : 


G_IS_OBJECT_CLASS()

#define G_IS_OBJECT_CLASS(class)    (G_TYPE_CHECK_CLASS_TYPE ((class), G_TYPE_OBJECT))

class : 


G_OBJECT_GET_CLASS()

#define G_OBJECT_GET_CLASS(object)  (G_TYPE_INSTANCE_GET_CLASS ((object), G_TYPE_OBJECT, GObjectClass))

object : 


G_OBJECT_TYPE()

#define G_OBJECT_TYPE(object)       (G_TYPE_FROM_INSTANCE (object))

object : 


G_OBJECT_TYPE_NAME()

#define G_OBJECT_TYPE_NAME(object)  (g_type_name (G_OBJECT_TYPE (object)))

object : 


G_OBJECT_CLASS_TYPE()

#define G_OBJECT_CLASS_TYPE(class)  (G_TYPE_FROM_CLASS (class))

class : 


G_OBJECT_CLASS_NAME()

#define G_OBJECT_CLASS_NAME(class)  (g_type_name (G_OBJECT_CLASS_TYPE (class)))

class : 


G_VALUE_HOLDS_OBJECT()

#define G_VALUE_HOLDS_OBJECT(value) (G_TYPE_CHECK_VALUE_TYPE ((value), G_TYPE_OBJECT))

value : 


g_object_class_install_property ()

void        g_object_class_install_property (GObjectClass *oclass,
                                             guint property_id,
                                             GParamSpec *pspec);

oclass : 
property_id : 
pspec : 


g_object_class_find_property ()

GParamSpec* g_object_class_find_property    (GObjectClass *oclass,
                                             const gchar *property_name);

oclass : 
property_name : 
Returns : 


g_object_new ()

gpointer    g_object_new                    (GType object_type,
                                             const gchar *first_property_name,
                                             ...);

object_type : 
first_property_name : 
... : 
Returns : 


g_object_ref ()

gpointer    g_object_ref                    (gpointer object);

object : 
Returns : 


g_object_unref ()

void        g_object_unref                  (gpointer object);

object : 


g_object_connect ()

gpointer    g_object_connect                (gpointer object,
                                             const gchar *signal_spec,
                                             ...);

object : 
signal_spec : 
... : 
Returns : 


g_object_disconnect ()

gpointer    g_object_disconnect             (gpointer object,
                                             const gchar *signal_spec,
                                             ...);

object : 
signal_spec : 
... : 
Returns : 


g_object_set ()

gpointer    g_object_set                    (gpointer object,
                                             const gchar *first_property_name,
                                             ...);

object : 
first_property_name : 
... : 
Returns : 


g_object_get ()

void        g_object_get                    (gpointer object,
                                             const gchar *first_property_name,
                                             ...);

object : 
first_property_name : 
... : 


g_object_notify ()

void        g_object_notify                 (GObject *object,
                                             const gchar *property_name);

object : 
property_name : 


g_object_freeze_notify ()

void        g_object_freeze_notify          (GObject *object);

object : 


g_object_thaw_notify ()

void        g_object_thaw_notify            (GObject *object);

object : 


g_object_get_data ()

gpointer    g_object_get_data               (GObject *object,
                                             const gchar *key);

object : 
key : 
Returns : 


g_object_set_data ()

void        g_object_set_data               (GObject *object,
                                             const gchar *key,
                                             gpointer data);

object : 
key : 
data : 


g_object_set_data_full ()

void        g_object_set_data_full          (GObject *object,
                                             const gchar *key,
                                             gpointer data,
                                             GDestroyNotify destroy);

object : 
key : 
data : 
destroy : 


g_object_steal_data ()

gpointer    g_object_steal_data             (GObject *object,
                                             const gchar *key);

object : 
key : 
Returns : 


g_object_get_qdata ()

gpointer    g_object_get_qdata              (GObject *object,
                                             GQuark quark);

object : 
quark : 
Returns : 


g_object_set_qdata ()

void        g_object_set_qdata              (GObject *object,
                                             GQuark quark,
                                             gpointer data);

object : 
quark : 
data : 


g_object_set_qdata_full ()

void        g_object_set_qdata_full         (GObject *object,
                                             GQuark quark,
                                             gpointer data,
                                             GDestroyNotify destroy);

object : 
quark : 
data : 
destroy : 


g_object_steal_qdata ()

gpointer    g_object_steal_qdata            (GObject *object,
                                             GQuark quark);

object : 
quark : 
Returns : 


g_object_set_property ()

void        g_object_set_property           (GObject *object,
                                             const gchar *property_name,
                                             const GValue *value);

object : 
property_name : 
value : 


g_object_get_property ()

void        g_object_get_property           (GObject *object,
                                             const gchar *property_name,
                                             GValue *value);

object : 
property_name : 
value : 


g_object_new_valist ()

gpointer    g_object_new_valist             (GType object_type,
                                             const gchar *first_property_name,
                                             va_list var_args);

object_type : 
first_property_name : 
var_args : 
Returns : 


g_object_set_valist ()

void        g_object_set_valist             (GObject *object,
                                             const gchar *first_property_name,
                                             va_list var_args);

object : 
first_property_name : 
var_args : 


g_object_get_valist ()

void        g_object_get_valist             (GObject *object,
                                             const gchar *first_property_name,
                                             va_list var_args);

object : 
first_property_name : 
var_args : 


g_object_watch_closure ()

void        g_object_watch_closure          (GObject *object,
                                             GClosure *closure);

object : 
closure : 


g_value_set_object ()

void        g_value_set_object              (GValue *value,
                                             GObject *v_object);

value : 
v_object : 


g_value_get_object ()

gpointer    g_value_get_object              (const GValue *value);

value : 
Returns : 


g_value_dup_object ()

GObject*    g_value_dup_object              (const GValue *value);

value : 
Returns : 


G_OBJECT_WARN_INVALID_PROPERTY_ID()

#define     G_OBJECT_WARN_INVALID_PROPERTY_ID(object, property_id, pspec)

object : 
property_id : 
pspec :