1/*
2 * Copyright (c) 2014 Red Hat, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser 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 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include <gtk/gtktreemodel.h>
19
20
21typedef gboolean (*RowPredicate) (GtkTreeModel *model,
22 GtkTreeIter *iter,
23 gpointer data);
24
25typedef struct _GtkTreeWalk GtkTreeWalk;
26
27GtkTreeWalk * gtk_tree_walk_new (GtkTreeModel *model,
28 RowPredicate predicate,
29 gpointer data,
30 GDestroyNotify destroy);
31
32void gtk_tree_walk_free (GtkTreeWalk *walk);
33
34void gtk_tree_walk_reset (GtkTreeWalk *walk,
35 GtkTreeIter *iter);
36
37gboolean gtk_tree_walk_next_match (GtkTreeWalk *walk,
38 gboolean force_move,
39 gboolean backwards,
40 GtkTreeIter *iter);
41
42gboolean gtk_tree_walk_get_position (GtkTreeWalk *walk,
43 GtkTreeIter *iter);
44

source code of gtk/gtk/inspector/treewalk.h