27 #ifndef __GTK_OBJECT_H__
28 #define __GTK_OBJECT_H__
31 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
32 #error "Only <gtk/gtk.h> can be included directly."
35 #include <gdkconfig.h>
47 #define GTK_TYPE_OBJECT (gtk_object_get_type ())
48 #define GTK_OBJECT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_OBJECT, GtkObject))
49 #define GTK_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_OBJECT, GtkObjectClass))
50 #define GTK_IS_OBJECT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_OBJECT))
51 #define GTK_IS_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OBJECT))
52 #define GTK_OBJECT_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS ((object), GTK_TYPE_OBJECT, GtkObjectClass))
56 #ifndef GTK_DISABLE_DEPRECATED
65 #define GTK_OBJECT_TYPE G_OBJECT_TYPE
74 #define GTK_OBJECT_TYPE_NAME G_OBJECT_TYPE_NAME
77 #if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
93 #define GTK_OBJECT_FLAGS(obj) (GTK_OBJECT (obj)->flags)
94 #ifndef GTK_DISABLE_DEPRECATED
95 #define GTK_OBJECT_FLOATING(obj) (g_object_is_floating (obj))
100 #define GTK_OBJECT_SET_FLAGS(obj,flag) G_STMT_START{ (GTK_OBJECT_FLAGS (obj) |= (flag)); }G_STMT_END
101 #define GTK_OBJECT_UNSET_FLAGS(obj,flag) G_STMT_START{ (GTK_OBJECT_FLAGS (obj) &= ~(flag)); }G_STMT_END
148 #ifndef GTK_DISABLE_DEPRECATED
155 #ifndef GTK_DISABLE_DEPRECATED
158 const gchar *first_property_name,
163 GDestroyNotify notify,
166 GDestroyNotify notify,
187 GDestroyNotify destroy);
214 GDestroyNotify destroy);
221 #define gtk_object_data_try_key g_quark_try_string
222 #define gtk_object_data_force_id g_quark_from_string
234 #define GTK_ARG_READWRITE (GTK_ARG_READABLE | GTK_ARG_WRITABLE)
236 const gchar *first_property_name,
237 ...) G_GNUC_NULL_TERMINATED;
239 const gchar *first_property_name,
240 ...) G_GNUC_NULL_TERMINATED;
void gtk_object_destroy(GtkObject *object)
void gtk_object_remove_data(GtkObject *object, const gchar *key)
void gtk_object_set_data_by_id(GtkObject *object, GQuark data_id, gpointer data)
void gtk_object_remove_no_notify(GtkObject *object, const gchar *key)
GtkObject * gtk_object_new(GType type, const gchar *first_property_name,...)
GType gtk_object_get_type(void) G_GNUC_CONST
void gtk_object_set_user_data(GtkObject *object, gpointer data)
void gtk_object_set(GtkObject *object, const gchar *first_property_name,...) G_GNUC_NULL_TERMINATED
void gtk_object_set_data(GtkObject *object, const gchar *key, gpointer data)
void gtk_object_set_data_full(GtkObject *object, const gchar *key, gpointer data, GDestroyNotify destroy)
void gtk_object_remove_data_by_id(GtkObject *object, GQuark data_id)
void gtk_object_unref(GtkObject *object)
void gtk_object_remove_no_notify_by_id(GtkObject *object, GQuark key_id)
void gtk_object_weakunref(GtkObject *object, GDestroyNotify notify, gpointer data)
gpointer gtk_object_get_user_data(GtkObject *object)
void gtk_object_sink(GtkObject *object)
void gtk_object_get(GtkObject *object, const gchar *first_property_name,...) G_GNUC_NULL_TERMINATED
void gtk_object_add_arg_type(const gchar *arg_name, GType arg_type, guint arg_flags, guint arg_id)
void gtk_object_weakref(GtkObject *object, GDestroyNotify notify, gpointer data)
gpointer gtk_object_get_data(GtkObject *object, const gchar *key)
gpointer gtk_object_get_data_by_id(GtkObject *object, GQuark data_id)
GtkObject * gtk_object_ref(GtkObject *object)
void gtk_object_set_data_by_id_full(GtkObject *object, GQuark data_id, gpointer data, GDestroyNotify destroy)
void(* destroy)(GtkObject *object)
void(* set_arg)(GtkObject *object, GtkArg *arg, guint arg_id)
void(* get_arg)(GtkObject *object, GtkArg *arg, guint arg_id)
GInitiallyUnownedClass parent_class
GInitiallyUnowned parent_instance