2 * Copyright (C) 2000 Red Hat, Inc., Jonathan Blandford <jrb@redhat.com>
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.
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.
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.
20 #ifndef __GTK_LIST_STORE_H__
21 #define __GTK_LIST_STORE_H__
23 #include <gtk/gtktreemodel.h>
27 #endif /* __cplusplus */
29 #define GTK_TYPE_LIST_STORE (gtk_list_store_get_type ())
30 #define GTK_LIST_STORE(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_LIST_STORE, GtkListStore))
31 #define GTK_LIST_STORE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_LISTSTORE, GtkListStoreClass))
32 #define GTK_IS_LIST_STORE(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_LIST_STORE))
33 #define GTK_IS_LIST_STORE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), GTK_TYPE_LIST_STORE))
35 typedef struct _GtkListStore GtkListStore;
36 typedef struct _GtkListStoreClass GtkListStoreClass;
45 GType *column_headers;
48 struct _GtkListStoreClass
50 GtkTreeModelClass parent_class;
53 GtkType gtk_list_store_get_type (void);
54 GtkObject *gtk_list_store_new (void);
55 GtkObject *gtk_list_store_new_with_types (gint n_columns,
57 void gtk_list_store_set_n_columns (GtkListStore *store,
59 void gtk_list_store_set_column_type (GtkListStore *store,
62 GtkTreeNode gtk_list_store_node_new (void);
63 void gtk_list_store_node_set_cell (GtkListStore *store,
67 void gtk_list_store_node_remove (GtkListStore *store,
69 GtkTreeNode gtk_list_store_node_insert (GtkListStore *store,
72 GtkTreeNode gtk_list_store_node_insert_before (GtkListStore *store,
75 GtkTreeNode gtk_list_store_node_prepend (GtkListStore *store,
77 GtkTreeNode gtk_list_store_node_append (GtkListStore *store,
84 #endif /* __cplusplus */
87 #endif /* __GTK_LIST_STORE_H__ */