]> Pileus Git - ~andy/gtk/blob - gtk/gtktreedatalist.h
3150b97bc05837ab3ad79ce0fe52b073d7f7970d
[~andy/gtk] / gtk / gtktreedatalist.h
1 /* gtktreedatalist.h
2  * Copyright (C) 2000  Red Hat, Inc.,  Jonathan Blandford <jrb@redhat.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20
21 #ifndef __GTK_TREE_DATA_LIST_H__
22 #define __GTK_TREE_DATA_LIST_H__
23
24 #include <glib.h>
25 #include <glib-object.h>
26
27 typedef struct _GtkTreeDataList GtkTreeDataList;
28 struct _GtkTreeDataList
29 {
30   GtkTreeDataList *next;
31
32   union {
33     gint           v_int;
34     gint8          v_char;
35     guint8         v_uchar;
36     guint          v_uint;
37     gfloat         v_float;
38     gdouble        v_double;
39     gpointer       v_pointer;
40   } data;
41 };
42
43
44 GtkTreeDataList *_gtk_tree_data_list_alloc          (void);
45 void             _gtk_tree_data_list_free           (GtkTreeDataList *list,
46                                                      GType           *column_headers);
47 gboolean         _gtk_tree_data_list_check_type     (GType            type);
48 void             _gtk_tree_data_list_node_to_value  (GtkTreeDataList *list,
49                                                      GType            type,
50                                                      GValue          *value);
51 void             _gtk_tree_data_list_value_to_node  (GtkTreeDataList *list,
52                                                      GValue          *value);
53
54 GtkTreeDataList *_gtk_tree_data_list_node_copy      (GtkTreeDataList *list,
55                                                      GType            type);
56
57
58 #endif /* __GTK_TREE_DATA_LIST_H__ */