27 #ifndef __GTK_TYPE_UTILS_H__
28 #define __GTK_TYPE_UTILS_H__
30 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
31 #error "Only <gtk/gtk.h> can be included directly."
41 #define GTK_TYPE_IDENTIFIER (gtk_identifier_get_type ())
50 #if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
61 typedef gchar * (*GtkTranslateFunc) (
const gchar *path,
68 #ifndef GTK_DISABLE_DEPRECATED
75 #define GTK_TYPE_INVALID G_TYPE_INVALID
76 #define GTK_TYPE_NONE G_TYPE_NONE
77 #define GTK_TYPE_ENUM G_TYPE_ENUM
78 #define GTK_TYPE_FLAGS G_TYPE_FLAGS
81 #define GTK_TYPE_CHAR G_TYPE_CHAR
82 #define GTK_TYPE_UCHAR G_TYPE_UCHAR
83 #define GTK_TYPE_BOOL G_TYPE_BOOLEAN
84 #define GTK_TYPE_INT G_TYPE_INT
85 #define GTK_TYPE_UINT G_TYPE_UINT
86 #define GTK_TYPE_LONG G_TYPE_LONG
87 #define GTK_TYPE_ULONG G_TYPE_ULONG
88 #define GTK_TYPE_FLOAT G_TYPE_FLOAT
89 #define GTK_TYPE_DOUBLE G_TYPE_DOUBLE
90 #define GTK_TYPE_STRING G_TYPE_STRING
91 #define GTK_TYPE_BOXED G_TYPE_BOXED
92 #define GTK_TYPE_POINTER G_TYPE_POINTER
97 #define GTK_CLASS_NAME(class) (g_type_name (G_TYPE_FROM_CLASS (class)))
98 #define GTK_CLASS_TYPE(class) (G_TYPE_FROM_CLASS (class))
99 #define GTK_TYPE_IS_OBJECT(type) (g_type_is_a ((type), GTK_TYPE_OBJECT))
104 #define GTK_TYPE_FUNDAMENTAL_LAST (G_TYPE_LAST_RESERVED_FUNDAMENTAL - 1)
105 #define GTK_TYPE_FUNDAMENTAL_MAX (G_TYPE_FUNDAMENTAL_MAX)
107 #define GTK_FUNDAMENTAL_TYPE G_TYPE_FUNDAMENTAL
108 #define GTK_STRUCT_OFFSET G_STRUCT_OFFSET
111 #define GTK_CHECK_CAST G_TYPE_CHECK_INSTANCE_CAST
112 #define GTK_CHECK_CLASS_CAST G_TYPE_CHECK_CLASS_CAST
113 #define GTK_CHECK_GET_CLASS G_TYPE_INSTANCE_GET_CLASS
114 #define GTK_CHECK_TYPE G_TYPE_CHECK_INSTANCE_TYPE
115 #define GTK_CHECK_CLASS_TYPE G_TYPE_CHECK_CLASS_TYPE
129 #define GTK_SIGNAL_FUNC(f) G_CALLBACK(f)
133 #if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
176 #define GTK_VALUE_CHAR(a) ((a).d.char_data)
177 #define GTK_VALUE_UCHAR(a) ((a).d.uchar_data)
178 #define GTK_VALUE_BOOL(a) ((a).d.bool_data)
179 #define GTK_VALUE_INT(a) ((a).d.int_data)
180 #define GTK_VALUE_UINT(a) ((a).d.uint_data)
181 #define GTK_VALUE_LONG(a) ((a).d.long_data)
182 #define GTK_VALUE_ULONG(a) ((a).d.ulong_data)
183 #define GTK_VALUE_FLOAT(a) ((a).d.float_data)
184 #define GTK_VALUE_DOUBLE(a) ((a).d.double_data)
185 #define GTK_VALUE_STRING(a) ((a).d.string_data)
186 #define GTK_VALUE_ENUM(a) ((a).d.int_data)
187 #define GTK_VALUE_FLAGS(a) ((a).d.uint_data)
188 #define GTK_VALUE_BOXED(a) ((a).d.pointer_data)
189 #define GTK_VALUE_OBJECT(a) ((a).d.object_data)
190 #define GTK_VALUE_POINTER(a) ((a).d.pointer_data)
191 #define GTK_VALUE_SIGNAL(a) ((a).d.signal_data)
195 #ifndef GTK_DISABLE_DEPRECATED
201 #define GTK_RETLOC_CHAR(a) ((gchar*) (a).d.pointer_data)
202 #define GTK_RETLOC_UCHAR(a) ((guchar*) (a).d.pointer_data)
203 #define GTK_RETLOC_BOOL(a) ((gboolean*) (a).d.pointer_data)
204 #define GTK_RETLOC_INT(a) ((gint*) (a).d.pointer_data)
205 #define GTK_RETLOC_UINT(a) ((guint*) (a).d.pointer_data)
206 #define GTK_RETLOC_LONG(a) ((glong*) (a).d.pointer_data)
207 #define GTK_RETLOC_ULONG(a) ((gulong*) (a).d.pointer_data)
208 #define GTK_RETLOC_FLOAT(a) ((gfloat*) (a).d.pointer_data)
209 #define GTK_RETLOC_DOUBLE(a) ((gdouble*) (a).d.pointer_data)
210 #define GTK_RETLOC_STRING(a) ((gchar**) (a).d.pointer_data)
211 #define GTK_RETLOC_ENUM(a) ((gint*) (a).d.pointer_data)
212 #define GTK_RETLOC_FLAGS(a) ((guint*) (a).d.pointer_data)
213 #define GTK_RETLOC_BOXED(a) ((gpointer*) (a).d.pointer_data)
214 #define GTK_RETLOC_OBJECT(a) ((GtkObject**) (a).d.pointer_data)
215 #define GTK_RETLOC_POINTER(a) ((gpointer*) (a).d.pointer_data)
243 #define gtk_type_name(type) g_type_name (type)
244 #define gtk_type_from_name(name) g_type_from_name (name)
245 #define gtk_type_parent(type) g_type_parent (type)
246 #define gtk_type_is_a(type, is_a_type) g_type_is_a ((type), (is_a_type))
256 const gchar *value_name);
258 const gchar *value_name);
GtkFlagValue * gtk_type_flags_get_values(GtkType flags_type)
void(* GtkCallbackMarshal)(GtkObject *object, gpointer data, guint n_args, GtkArg *args)
gboolean(* GtkFunction)(gpointer data)
GtkFlagValue * gtk_type_flags_find_value(GtkType flags_type, const gchar *value_name)
gpointer gtk_type_class(GtkType type)
void(* GtkSignalFunc)(void)
void(* GtkDestroyNotify)(gpointer data)
gpointer gtk_type_new(GtkType type)
GtkEnumValue * gtk_type_enum_find_value(GtkType enum_type, const gchar *value_name)
GSignalCMarshaller GtkSignalMarshaller
GType gtk_identifier_get_type(void) G_GNUC_CONST
GBaseInitFunc GtkClassInitFunc
void gtk_type_init(GTypeDebugFlags debug_flags)
GtkType gtk_type_unique(GtkType parent_type, const GtkTypeInfo *gtkinfo)
GtkEnumValue * gtk_type_enum_get_values(GtkType enum_type)
GTypeInstance GtkTypeObject
GInstanceInitFunc GtkObjectInitFunc
struct _GtkArg::@59::@60 signal_data
GtkClassInitFunc class_init_func
GtkObjectInitFunc object_init_func
GtkClassInitFunc base_class_init_func