Ardour  9.0-pre0-582-g084a23a80d
gtkobject.h File Reference
#include <gdkconfig.h>
#include <gtk/gtkenums.h>
#include <gtk/gtktypeutils.h>
#include <gtk/gtkdebug.h>
Include dependency graph for gtkobject.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GtkObject
 
struct  _GtkObjectClass
 

Macros

#define GTK_TYPE_OBJECT   (gtk_object_get_type ())
 
#define GTK_OBJECT(object)   (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_OBJECT, GtkObject))
 
#define GTK_OBJECT_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_OBJECT, GtkObjectClass))
 
#define GTK_IS_OBJECT(object)   (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_OBJECT))
 
#define GTK_IS_OBJECT_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OBJECT))
 
#define GTK_OBJECT_GET_CLASS(object)   (G_TYPE_INSTANCE_GET_CLASS ((object), GTK_TYPE_OBJECT, GtkObjectClass))
 
#define GTK_OBJECT_TYPE   G_OBJECT_TYPE
 
#define GTK_OBJECT_TYPE_NAME   G_OBJECT_TYPE_NAME
 
#define GTK_OBJECT_FLAGS(obj)   (GTK_OBJECT (obj)->flags)
 
#define GTK_OBJECT_FLOATING(obj)   (g_object_is_floating (obj))
 
#define GTK_OBJECT_SET_FLAGS(obj, flag)   G_STMT_START{ (GTK_OBJECT_FLAGS (obj) |= (flag)); }G_STMT_END
 
#define GTK_OBJECT_UNSET_FLAGS(obj, flag)   G_STMT_START{ (GTK_OBJECT_FLAGS (obj) &= ~(flag)); }G_STMT_END
 
#define gtk_object_data_try_key   g_quark_try_string
 
#define gtk_object_data_force_id   g_quark_from_string
 
#define GTK_ARG_READWRITE   (GTK_ARG_READABLE | GTK_ARG_WRITABLE)
 

Typedefs

typedef struct _GtkObjectClass GtkObjectClass
 

Enumerations

enum  GtkObjectFlags { GTK_IN_DESTRUCTION = 1 << 0 , GTK_FLOATING = 1 << 1 , GTK_RESERVED_1 = 1 << 2 , GTK_RESERVED_2 = 1 << 3 }
 
enum  GtkArgFlags {
  GTK_ARG_READABLE = G_PARAM_READABLE , GTK_ARG_WRITABLE = G_PARAM_WRITABLE , GTK_ARG_CONSTRUCT = G_PARAM_CONSTRUCT , GTK_ARG_CONSTRUCT_ONLY = G_PARAM_CONSTRUCT_ONLY ,
  GTK_ARG_CHILD_ARG = 1 << 4
}
 

Functions

GType gtk_object_get_type (void) G_GNUC_CONST
 
void gtk_object_sink (GtkObject *object)
 
void gtk_object_destroy (GtkObject *object)
 
GtkObjectgtk_object_new (GType type, const gchar *first_property_name,...)
 
GtkObjectgtk_object_ref (GtkObject *object)
 
void gtk_object_unref (GtkObject *object)
 
void gtk_object_weakref (GtkObject *object, GDestroyNotify notify, gpointer data)
 
void gtk_object_weakunref (GtkObject *object, GDestroyNotify notify, gpointer data)
 
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 (GtkObject *object, const gchar *key)
 
gpointer gtk_object_get_data (GtkObject *object, const gchar *key)
 
void gtk_object_remove_no_notify (GtkObject *object, const gchar *key)
 
void gtk_object_set_user_data (GtkObject *object, gpointer data)
 
gpointer gtk_object_get_user_data (GtkObject *object)
 
void gtk_object_set_data_by_id (GtkObject *object, GQuark data_id, gpointer data)
 
void gtk_object_set_data_by_id_full (GtkObject *object, GQuark data_id, gpointer data, GDestroyNotify destroy)
 
gpointer gtk_object_get_data_by_id (GtkObject *object, GQuark data_id)
 
void gtk_object_remove_data_by_id (GtkObject *object, GQuark data_id)
 
void gtk_object_remove_no_notify_by_id (GtkObject *object, GQuark key_id)
 
void gtk_object_get (GtkObject *object, const gchar *first_property_name,...) G_GNUC_NULL_TERMINATED
 
void gtk_object_set (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)
 

Macro Definition Documentation

◆ GTK_ARG_READWRITE

#define GTK_ARG_READWRITE   (GTK_ARG_READABLE | GTK_ARG_WRITABLE)

Definition at line 234 of file gtkobject.h.

◆ GTK_IS_OBJECT

#define GTK_IS_OBJECT (   object)    (G_TYPE_CHECK_INSTANCE_TYPE ((object), GTK_TYPE_OBJECT))

Definition at line 50 of file gtkobject.h.

◆ GTK_IS_OBJECT_CLASS

#define GTK_IS_OBJECT_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_OBJECT))

Definition at line 51 of file gtkobject.h.

◆ GTK_OBJECT

#define GTK_OBJECT (   object)    (G_TYPE_CHECK_INSTANCE_CAST ((object), GTK_TYPE_OBJECT, GtkObject))

Definition at line 48 of file gtkobject.h.

◆ GTK_OBJECT_CLASS

#define GTK_OBJECT_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_OBJECT, GtkObjectClass))

Definition at line 49 of file gtkobject.h.

◆ gtk_object_data_force_id

#define gtk_object_data_force_id   g_quark_from_string

Definition at line 222 of file gtkobject.h.

◆ gtk_object_data_try_key

#define gtk_object_data_try_key   g_quark_try_string

Definition at line 221 of file gtkobject.h.

◆ GTK_OBJECT_FLAGS

#define GTK_OBJECT_FLAGS (   obj)    (GTK_OBJECT (obj)->flags)

Definition at line 93 of file gtkobject.h.

◆ GTK_OBJECT_FLOATING

#define GTK_OBJECT_FLOATING (   obj)    (g_object_is_floating (obj))

Definition at line 95 of file gtkobject.h.

◆ GTK_OBJECT_GET_CLASS

#define GTK_OBJECT_GET_CLASS (   object)    (G_TYPE_INSTANCE_GET_CLASS ((object), GTK_TYPE_OBJECT, GtkObjectClass))

Definition at line 52 of file gtkobject.h.

◆ GTK_OBJECT_SET_FLAGS

#define GTK_OBJECT_SET_FLAGS (   obj,
  flag 
)    G_STMT_START{ (GTK_OBJECT_FLAGS (obj) |= (flag)); }G_STMT_END

Definition at line 100 of file gtkobject.h.

◆ GTK_OBJECT_TYPE

#define GTK_OBJECT_TYPE   G_OBJECT_TYPE

GTK_OBJECT_TYPE:

Parameters
objecta GtkObject.

Gets the type of an object.

Deprecated: 2.20: Use G_OBJECT_TYPE() instead.

Definition at line 65 of file gtkobject.h.

◆ GTK_OBJECT_TYPE_NAME

#define GTK_OBJECT_TYPE_NAME   G_OBJECT_TYPE_NAME

GTK_OBJECT_TYPE_NAME:

Parameters
objecta GtkObject.

Gets the name of an object's type.

Deprecated: 2.20: Use G_OBJECT_TYPE_NAME() instead.

Definition at line 74 of file gtkobject.h.

◆ GTK_OBJECT_UNSET_FLAGS

#define GTK_OBJECT_UNSET_FLAGS (   obj,
  flag 
)    G_STMT_START{ (GTK_OBJECT_FLAGS (obj) &= ~(flag)); }G_STMT_END

Definition at line 101 of file gtkobject.h.

◆ GTK_TYPE_OBJECT

#define GTK_TYPE_OBJECT   (gtk_object_get_type ())

Definition at line 47 of file gtkobject.h.

Typedef Documentation

◆ GtkObjectClass

Definition at line 41 of file gtkobject.h.

Enumeration Type Documentation

◆ GtkArgFlags

Enumerator
GTK_ARG_READABLE 
GTK_ARG_WRITABLE 
GTK_ARG_CONSTRUCT 
GTK_ARG_CONSTRUCT_ONLY 
GTK_ARG_CHILD_ARG 

Definition at line 226 of file gtkobject.h.

◆ GtkObjectFlags

Enumerator
GTK_IN_DESTRUCTION 
GTK_FLOATING 
GTK_RESERVED_1 
GTK_RESERVED_2 

Definition at line 83 of file gtkobject.h.

Function Documentation

◆ gtk_object_add_arg_type()

void gtk_object_add_arg_type ( const gchar *  arg_name,
GType  arg_type,
guint  arg_flags,
guint  arg_id 
)

◆ gtk_object_destroy()

void gtk_object_destroy ( GtkObject object)

◆ gtk_object_get()

void gtk_object_get ( GtkObject object,
const gchar *  first_property_name,
  ... 
)

◆ gtk_object_get_data()

gpointer gtk_object_get_data ( GtkObject object,
const gchar *  key 
)

◆ gtk_object_get_data_by_id()

gpointer gtk_object_get_data_by_id ( GtkObject object,
GQuark  data_id 
)

◆ gtk_object_get_type()

GType gtk_object_get_type ( void  )

◆ gtk_object_get_user_data()

gpointer gtk_object_get_user_data ( GtkObject object)

◆ gtk_object_new()

GtkObject* gtk_object_new ( GType  type,
const gchar *  first_property_name,
  ... 
)

◆ gtk_object_ref()

GtkObject* gtk_object_ref ( GtkObject object)

◆ gtk_object_remove_data()

void gtk_object_remove_data ( GtkObject object,
const gchar *  key 
)

◆ gtk_object_remove_data_by_id()

void gtk_object_remove_data_by_id ( GtkObject object,
GQuark  data_id 
)

◆ gtk_object_remove_no_notify()

void gtk_object_remove_no_notify ( GtkObject object,
const gchar *  key 
)

◆ gtk_object_remove_no_notify_by_id()

void gtk_object_remove_no_notify_by_id ( GtkObject object,
GQuark  key_id 
)

◆ gtk_object_set()

void gtk_object_set ( GtkObject object,
const gchar *  first_property_name,
  ... 
)

◆ gtk_object_set_data()

void gtk_object_set_data ( GtkObject object,
const gchar *  key,
gpointer  data 
)

◆ gtk_object_set_data_by_id()

void gtk_object_set_data_by_id ( GtkObject object,
GQuark  data_id,
gpointer  data 
)

◆ gtk_object_set_data_by_id_full()

void gtk_object_set_data_by_id_full ( GtkObject object,
GQuark  data_id,
gpointer  data,
GDestroyNotify  destroy 
)

◆ gtk_object_set_data_full()

void gtk_object_set_data_full ( GtkObject object,
const gchar *  key,
gpointer  data,
GDestroyNotify  destroy 
)

◆ gtk_object_set_user_data()

void gtk_object_set_user_data ( GtkObject object,
gpointer  data 
)

◆ gtk_object_sink()

void gtk_object_sink ( GtkObject object)

◆ gtk_object_unref()

void gtk_object_unref ( GtkObject object)

◆ gtk_object_weakref()

void gtk_object_weakref ( GtkObject object,
GDestroyNotify  notify,
gpointer  data 
)

◆ gtk_object_weakunref()

void gtk_object_weakunref ( GtkObject object,
GDestroyNotify  notify,
gpointer  data 
)