2 * eggtreemodelunion.h: Union treemodel.
4 * Copyright (C) 2003, Kristian Rietveld.
7 #ifndef __EGG_TREE_MODEL_UNION_H__
8 #define __EGG_TREE_MODEL_UNION_H__
10 #include <gtk/gtktreemodel.h>
14 #define EGG_TYPE_TREE_MODEL_UNION (egg_tree_model_union_get_type ())
15 #define EGG_TREE_MODEL_UNION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_TREE_MODEL_UNION, EggTreeModelUnion))
16 #define EGG_TREE_MODEL_UNION_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), EGG_TYPE_TREE_MODEL_UNION, EggTreeModelUnionClass))
17 #define EGG_IS_TREE_MODEL_UNION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_TREE_MODEL_UNION))
18 #define EGG_IS_TREE_MODEL_UNION_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), EGG_TYPE_TREE_MODEL_UNION))
19 #define EGG_TREE_MODEL_UNION_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_TREE_MODEL_UNION, EggTreeModelUnionClass))
21 typedef struct _EggTreeModelUnion EggTreeModelUnion
;
22 typedef struct _EggTreeModelUnionClass EggTreeModelUnionClass
;
24 struct _EggTreeModelUnion
26 GObject parent_instance
;
32 GHashTable
*child_paths
;
37 GType
*column_headers
;
42 struct _EggTreeModelUnionClass
44 GObjectClass parent_class
;
48 GType
egg_tree_model_union_get_type (void);
49 GtkTreeModel
*egg_tree_model_union_new (gint n_columns
,
51 GtkTreeModel
*egg_tree_model_union_newv (gint n_columns
,
53 void egg_tree_model_union_set_column_types (EggTreeModelUnion
*umodel
,
57 void egg_tree_model_union_append (EggTreeModelUnion
*umodel
,
59 void egg_tree_model_union_prepend (EggTreeModelUnion
*umodel
,
61 void egg_tree_model_union_insert (EggTreeModelUnion
*umodel
,
65 void egg_tree_model_union_append_with_mapping (EggTreeModelUnion
*umodel
,
68 void egg_tree_model_union_prepend_with_mapping (EggTreeModelUnion
*umodel
,
71 void egg_tree_model_union_insert_with_mapping (EggTreeModelUnion
*umodel
,
75 void egg_tree_model_union_insert_with_mappingv (EggTreeModelUnion
*umodel
,
78 gint
*column_mappings
);
80 void egg_tree_model_union_set_child (EggTreeModelUnion
*umodel
,
84 void egg_tree_model_union_clear (EggTreeModelUnion
*umodel
);
85 void egg_tree_model_union_remove (EggTreeModelUnion
*umodel
,
90 #endif /* __EGG_TREE_MODEL_UNION_H__ */