Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtktreeselection.h
Go to the documentation of this file.
1/* gtktreeselection.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, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
21#error "Only <gtk/gtk.h> can be included directly."
22#endif
23
25
27
28
29#define GTK_TYPE_TREE_SELECTION (gtk_tree_selection_get_type ())
30#define GTK_TREE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_SELECTION, GtkTreeSelection))
31#define GTK_IS_TREE_SELECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TREE_SELECTION))
32
33/**
34 * GtkTreeSelectionFunc:
35 * @selection: A `GtkTreeSelection`
36 * @model: A `GtkTreeModel` being viewed
37 * @path: The `GtkTreePath` of the row in question
38 * @path_currently_selected: %TRUE, if the path is currently selected
39 * @data: (closure): user data
40 *
41 * A function used by gtk_tree_selection_set_select_function() to filter
42 * whether or not a row may be selected. It is called whenever a row's
43 * state might change.
44 *
45 * A return value of %TRUE indicates to @selection that it is okay to
46 * change the selection.
47 *
48 * Returns: %TRUE, if the selection state of the row can be toggled
49 */
51 GtkTreeModel *model,
52 GtkTreePath *path,
53 gboolean path_currently_selected,
54 gpointer data);
55
56/**
57 * GtkTreeSelectionForeachFunc:
58 * @model: The `GtkTreeModel` being viewed
59 * @path: The `GtkTreePath` of a selected row
60 * @iter: A `GtkTreeIter` pointing to a selected row
61 * @data: (closure): user data
62 *
63 * A function used by gtk_tree_selection_selected_foreach() to map all
64 * selected rows. It will be called on every selected row in the view.
65 */
67 GtkTreePath *path,
68 GtkTreeIter *iter,
69 gpointer data);
70
71
74
77 GtkSelectionMode type);
83 gpointer data,
84 GDestroyNotify destroy);
89
92
93/* Only meaningful if GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE is set */
94/* Use selected_foreach or get_selected_rows for GTK_SELECTION_MULTIPLE */
97 GtkTreeModel **model,
98 GtkTreeIter *iter);
101 GtkTreeModel **model);
107 gpointer data);
110 GtkTreePath *path);
113 GtkTreePath *path);
116 GtkTreeIter *iter);
119 GtkTreeIter *iter);
122 GtkTreePath *path);
125 GtkTreeIter *iter);
132 GtkTreePath *start_path,
133 GtkTreePath *end_path);
136 GtkTreePath *start_path,
137 GtkTreePath *end_path);
138
140
142
#define GDK_DEPRECATED_IN_4_10
#define GDK_AVAILABLE_IN_ALL
typedefG_BEGIN_DECLS struct _GList GList
Definition glist.h:39
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
GtkSelectionMode
Definition gtkenums.h:556
struct _GtkTreePath GtkTreePath
struct _GtkTreeModel GtkTreeModel
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_unselect_path(GtkTreeSelection *selection, GtkTreePath *path)
GDK_DEPRECATED_IN_4_10 GtkTreeSelectionFunc gtk_tree_selection_get_select_function(GtkTreeSelection *selection)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_set_mode(GtkTreeSelection *selection, GtkSelectionMode type)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_selected_foreach(GtkTreeSelection *selection, GtkTreeSelectionForeachFunc func, gpointer data)
GDK_DEPRECATED_IN_4_10 gboolean gtk_tree_selection_path_is_selected(GtkTreeSelection *selection, GtkTreePath *path)
GDK_DEPRECATED_IN_4_10 gboolean gtk_tree_selection_get_selected(GtkTreeSelection *selection, GtkTreeModel **model, GtkTreeIter *iter)
GDK_AVAILABLE_IN_ALL GType gtk_tree_selection_get_type(void) G_GNUC_CONST
GDK_DEPRECATED_IN_4_10 int gtk_tree_selection_count_selected_rows(GtkTreeSelection *selection)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_unselect_iter(GtkTreeSelection *selection, GtkTreeIter *iter)
GDK_DEPRECATED_IN_4_10 GtkTreeView * gtk_tree_selection_get_tree_view(GtkTreeSelection *selection)
GDK_DEPRECATED_IN_4_10 gboolean gtk_tree_selection_iter_is_selected(GtkTreeSelection *selection, GtkTreeIter *iter)
GDK_DEPRECATED_IN_4_10 gpointer gtk_tree_selection_get_user_data(GtkTreeSelection *selection)
GDK_DEPRECATED_IN_4_10 GtkSelectionMode gtk_tree_selection_get_mode(GtkTreeSelection *selection)
GDK_DEPRECATED_IN_4_10 GList * gtk_tree_selection_get_selected_rows(GtkTreeSelection *selection, GtkTreeModel **model)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_select_iter(GtkTreeSelection *selection, GtkTreeIter *iter)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_select_all(GtkTreeSelection *selection)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_select_range(GtkTreeSelection *selection, GtkTreePath *start_path, GtkTreePath *end_path)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_select_path(GtkTreeSelection *selection, GtkTreePath *path)
gboolean(* GtkTreeSelectionFunc)(GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer data)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_set_select_function(GtkTreeSelection *selection, GtkTreeSelectionFunc func, gpointer data, GDestroyNotify destroy)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_unselect_range(GtkTreeSelection *selection, GtkTreePath *start_path, GtkTreePath *end_path)
void(* GtkTreeSelectionForeachFunc)(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data)
GDK_DEPRECATED_IN_4_10 void gtk_tree_selection_unselect_all(GtkTreeSelection *selection)
struct _GtkTreeSelection GtkTreeSelection
Definition gtktreeview.h:61
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
void(* GDestroyNotify)(gpointer data)
Definition gtypes.h:140