Ardour  9.0-pre0-582-g084a23a80d
gtktreedatalist.h
Go to the documentation of this file.
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 #ifndef __GTK_TREE_DATA_LIST_H__
21 #define __GTK_TREE_DATA_LIST_H__
22 
23 #include <gtk/gtk.h>
24 
25 typedef struct _GtkTreeDataList GtkTreeDataList;
27 {
29 
30  union {
31  gint v_int;
32  gint8 v_char;
33  guint8 v_uchar;
34  guint v_uint;
35  glong v_long;
36  gulong v_ulong;
37  gint64 v_int64;
38  guint64 v_uint64;
39  gfloat v_float;
40  gdouble v_double;
41  gpointer v_pointer;
42  } data;
43 };
44 
45 typedef struct _GtkTreeDataSortHeader
46 {
49  gpointer data;
50  GDestroyNotify destroy;
52 
55  GType *column_headers);
56 gboolean _gtk_tree_data_list_check_type (GType type);
58  GType type,
59  GValue *value);
61  GValue *value);
62 
64  GType type);
65 
66 /* Header code */
68  GtkTreeIter *a,
69  GtkTreeIter *b,
70  gpointer user_data);
71 GList * _gtk_tree_data_list_header_new (gint n_columns,
72  GType *types);
73 void _gtk_tree_data_list_header_free (GList *header_list);
75  gint sort_column_id);
76 GList *_gtk_tree_data_list_set_header (GList *header_list,
77  gint sort_column_id,
79  gpointer data,
80  GDestroyNotify destroy);
81 
82 #endif /* __GTK_TREE_DATA_LIST_H__ */
GtkTreeDataList * _gtk_tree_data_list_alloc(void)
GList * _gtk_tree_data_list_set_header(GList *header_list, gint sort_column_id, GtkTreeIterCompareFunc func, gpointer data, GDestroyNotify destroy)
void _gtk_tree_data_list_node_to_value(GtkTreeDataList *list, GType type, GValue *value)
GtkTreeDataList * _gtk_tree_data_list_node_copy(GtkTreeDataList *list, GType type)
void _gtk_tree_data_list_free(GtkTreeDataList *list, GType *column_headers)
gint _gtk_tree_data_list_compare_func(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data)
void _gtk_tree_data_list_header_free(GList *header_list)
gboolean _gtk_tree_data_list_check_type(GType type)
void _gtk_tree_data_list_value_to_node(GtkTreeDataList *list, GValue *value)
GtkTreeDataSortHeader * _gtk_tree_data_list_get_header(GList *header_list, gint sort_column_id)
GList * _gtk_tree_data_list_header_new(gint n_columns, GType *types)
struct _GtkTreeDataSortHeader GtkTreeDataSortHeader
struct _GtkTreeModel GtkTreeModel
Definition: gtktreemodel.h:46
gint(* GtkTreeIterCompareFunc)(GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer user_data)
union _GtkTreeDataList::@55 data
GtkTreeDataList * next
GtkTreeIterCompareFunc func
GDestroyNotify destroy