]> Pileus Git - ~andy/gtk/blob - gtk/gtktreedatalist.h
66fe37592026f73d1998865bbdef7c1901c834b3
[~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 <gobject/gobject.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     gpointer       v_pointer;
39   } data;
40 };
41
42 void             _gtk_tree_data_list_push_allocator (GAllocator      *allocator);
43 void             _gtk_tree_data_list_pop_allocator  (void);
44 GtkTreeDataList *_gtk_tree_data_list_alloc          (void);
45 void             _gtk_tree_data_list_free           (GtkTreeDataList *list,
46                                                      GType           *column_headers);
47 void             _gtk_tree_data_list_node_to_value  (GtkTreeDataList *list,
48                                                      GType            type,
49                                                      GValue          *value);
50 void             _gtk_tree_data_list_value_to_node  (GtkTreeDataList *list,
51                                                      GValue          *value);
52
53 GtkTreeDataList *_gtk_tree_data_list_node_copy      (GtkTreeDataList *list,
54                                                      GType            type);
55
56
57 #endif /* __GTK_TREE_DATA_LIST_H__ */