summaryrefslogtreecommitdiff
path: root/gtk/gtktypeutils.h
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-06-10 04:55:22 +0000
committerTim Janik <timj@src.gnome.org>1998-06-10 04:55:22 +0000
commit6430ad631af96318e48f1f349fff2ebaf5598097 (patch)
tree515ffe803aa32f4cce049f64b1cea53de41edbb3 /gtk/gtktypeutils.h
parentc4865409351aa2449a13b33daad13af39045a7f7 (diff)
downloadgdk-pixbuf-6430ad631af96318e48f1f349fff2ebaf5598097.tar.gz
enum and flags type creation can now be done through
Wed Jun 10 06:25:17 1998 Tim Janik <timj@gtk.org> * gtk/gtktypeutils.h: * gtk/gtktypeutils.c: enum and flags type creation can now be done through gtk_type_register_enum() and gtk_type_register_flags(), which allow to specify the enum value arrays directly. the NULL terminated value arrays can be retrived through gtk_type_enum_get_values() and gtk_type_flags_get_values();
Diffstat (limited to 'gtk/gtktypeutils.h')
-rw-r--r--gtk/gtktypeutils.h65
1 files changed, 34 insertions, 31 deletions
diff --git a/gtk/gtktypeutils.h b/gtk/gtktypeutils.h
index b78854276..720fc9ffa 100644
--- a/gtk/gtktypeutils.h
+++ b/gtk/gtktypeutils.h
@@ -187,37 +187,40 @@ struct _GtkEnumValue
};
-void gtk_type_init (void);
-GtkType gtk_type_unique (guint parent_type,
- GtkTypeInfo *type_info);
-void gtk_type_set_chunk_alloc (GtkType type,
- guint n_chunks);
-gchar* gtk_type_name (guint type);
-GtkType gtk_type_from_name (const gchar *name);
-GtkType gtk_type_parent (GtkType type);
-gpointer gtk_type_class (GtkType type);
-gpointer gtk_type_parent_class (GtkType type);
-gpointer gtk_type_new (GtkType type);
-void gtk_type_free (GtkType type,
- gpointer mem);
-void gtk_type_describe_heritage (GtkType type);
-void gtk_type_describe_tree (GtkType type,
- gint show_size);
-gint gtk_type_is_a (GtkType type,
- GtkType is_a_type);
-void gtk_type_get_arg (GtkObject *object,
- GtkType type,
- GtkArg *arg,
- guint arg_id);
-void gtk_type_set_arg (GtkObject *object,
- GtkType type,
- GtkArg *arg,
- guint arg_id);
-GtkArg* gtk_arg_copy (GtkArg *src_arg,
- GtkArg *dest_arg);
-GtkEnumValue *gtk_type_enum_get_values (GtkType enum_type);
-void gtk_type_enum_set_values (GtkType enum_type,
- GtkEnumValue *values);
+void gtk_type_init (void);
+GtkType gtk_type_unique (GtkType parent_type,
+ GtkTypeInfo *type_info);
+void gtk_type_set_chunk_alloc (GtkType type,
+ guint n_chunks);
+gchar* gtk_type_name (guint type);
+GtkType gtk_type_from_name (const gchar *name);
+GtkType gtk_type_parent (GtkType type);
+gpointer gtk_type_class (GtkType type);
+gpointer gtk_type_parent_class (GtkType type);
+gpointer gtk_type_new (GtkType type);
+void gtk_type_free (GtkType type,
+ gpointer mem);
+void gtk_type_describe_heritage (GtkType type);
+void gtk_type_describe_tree (GtkType type,
+ gboolean show_size);
+gint gtk_type_is_a (GtkType type,
+ GtkType is_a_type);
+void gtk_type_get_arg (GtkObject *object,
+ GtkType type,
+ GtkArg *arg,
+ guint arg_id);
+void gtk_type_set_arg (GtkObject *object,
+ GtkType type,
+ GtkArg *arg,
+ guint arg_id);
+GtkArg* gtk_arg_copy (GtkArg *src_arg,
+ GtkArg *dest_arg);
+GtkType gtk_type_register_enum (const gchar *type_name,
+ GtkEnumValue *values);
+GtkType gtk_type_register_flags (const gchar *type_name,
+ GtkFlagValue *values);
+GtkEnumValue* gtk_type_enum_get_values (GtkType enum_type);
+GtkFlagValue* gtk_type_flags_get_values (GtkType flags_type);
#ifdef __cplusplus