Debian Codegraph @

gtk/deprecated/gtktreesortable.h

raw symbols SCIP
1 /* gtktreesortable.h
2 * Copyright (C) 2001 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 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
21 #if !defined (__GTK_H_INSIDE__cxx . . $ `gtk/gtk.h:27:9`!) && !defined (GTK_COMPILATIONcxx . . $ `<built-in>:420:9`!)
22 #error "Only <gtk/gtk.h> can be included directly."
23 #endif
24
25 #include <gtk/gtkenums.h>cxx . . $ `<file>/gtk/gtkenums.h`/
26 #include <gtk/deprecated/gtktreemodel.h>cxx . . $ `<file>/gtk/deprecated/gtktreemodel.h`/
27
28
29 G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`!
30
31 #define GTK_TYPE_TREE_SORTABLEcxx . . $ `gtk/deprecated/gtktreesortable.h:31:9`! (gtk_tree_sortable_get_type ())
32 #define GTK_TREE_SORTABLEcxx . . $ `gtk/deprecated/gtktreesortable.h:32:9`!(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TREE_SORTABLE, GtkTreeSortable))
33 #define GTK_IS_TREE_SORTABLEcxx . . $ `gtk/deprecated/gtktreesortable.h:33:9`!(obj) (G_TYPE_CHECK_INSTANCE_TYPEcxx . . $ `<external>/9567554376676449156/gtype.h:541:9`! ((obj), GTK_TYPE_TREE_SORTABLEcxx . . $ `gtk/deprecated/gtktreesortable.h:31:9`!))
34 #define GTK_TREE_SORTABLE_GET_IFACEcxx . . $ `gtk/deprecated/gtktreesortable.h:34:9`!(obj) (G_TYPE_INSTANCE_GET_INTERFACEcxx . . $ `<external>/9567554376676449156/gtype.h:584:9`! ((obj), GTK_TYPE_TREE_SORTABLEcxx . . $ `gtk/deprecated/gtktreesortable.h:31:9`!, GtkTreeSortableIface))
35
36 /**
37 * GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID:
38 *
39 * Uses the default sort function in a [[email protected]].
40 *
41 * See also: [[email protected]_sort_column_id]
42 *
43 * Deprecated: 4.20: There is no replacement
44 */
45 #define GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_IDcxx . . $ `gtk/deprecated/gtktreesortable.h:45:9`! (-1)
46
47 /**
48 * GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID:
49 *
50 * Disables sorting in a [[email protected]].
51 *
52 * See also: [[email protected]_sort_column_id]
53 *
54 * Deprecated: 4.20: There is no replacement
55 */
56 #define GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_IDcxx . . $ `gtk/deprecated/gtktreesortable.h:56:9`! (-2)
57
58 typedef struct _GtkTreeSortablecxx . . $ _GtkTreeSortable# GtkTreeSortablecxx . . $ GtkTreeSortable#; /* Dummy typedef */
59 typedef struct _GtkTreeSortableIfacecxx . . $ _GtkTreeSortableIface# GtkTreeSortableIfacecxx . . $ GtkTreeSortableIface#;
60
61 /**
62 * GtkTreeIterCompareFunc:
63 * @model: The `GtkTreeModel` the comparison is within
64 * @a: A `GtkTreeIter` in @model
65 * @b: Another `GtkTreeIter` in @model
66 * @user_data: Data passed when the compare func is assigned e.g. by
67 * gtk_tree_sortable_set_sort_func()
68 *
69 * A GtkTreeIterCompareFunc should return a negative integer, zero, or a positive
70 * integer if @a sorts before @b, @a sorts with @b, or @a sorts after @b
71 * respectively.
72 *
73 * If two iters compare as equal, their order in the sorted model
74 * is undefined. In order to ensure that the `GtkTreeSortable` behaves as
75 * expected, the GtkTreeIterCompareFunc must define a partial order on
76 * the model, i.e. it must be reflexive, antisymmetric and transitive.
77 *
78 * For example, if @model is a product catalogue, then a compare function
79 * for the “price” column could be one which returns
80 * `price_of(@a) - price_of(@b)`.
81 *
82 * Returns: a negative integer, zero or a positive integer depending on whether
83 * @a sorts before, with or after @b
84 *
85 * Deprecated: 4.20: There is no replacement
86 */
87 typedef int (* GtkTreeIterCompareFunccxx . . $ GtkTreeIterCompareFunc#) (GtkTreeModelcxx . . $ GtkTreeModel# *model,
88 GtkTreeItercxx . . $ GtkTreeIter# *a,
89 GtkTreeItercxx . . $ GtkTreeIter# *b,
90 gpointercxx . . $ gpointer# user_data);
91
92
93 /**
94 * GtkTreeSortableIface:
95 * @sort_column_changed: Signal emitted when the sort column or sort
96 * order of sortable is changed.
97 * @get_sort_column_id: Fills in sort_column_id and order with the
98 * current sort column and the order.
99 * @set_sort_column_id: Sets the current sort column to be
100 * sort_column_id.
101 * @set_sort_func: Sets the comparison function used when sorting to
102 * be sort_func.
103 * @set_default_sort_func: Sets the default comparison function used
104 * when sorting to be sort_func.
105 * @has_default_sort_func: %TRUE if the model has a default sort
106 * function.
107 */
108 struct _GtkTreeSortableIfacecxx . . $ _GtkTreeSortableIface#
109 {
110 /*< private >*/
111 GTypeInterfacecxx . . $ GTypeInterface# g_ifacecxx . . $ _GtkTreeSortableIface#g_iface.;
112
113 /*< public >*/
114
115 /* signals */
116 void (* sort_column_changedcxx . . $ _GtkTreeSortableIface#sort_column_changed.) (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable);
117
118 /* virtual table */
119 gbooleancxx . . $ gboolean# (* get_sort_column_idcxx . . $ _GtkTreeSortableIface#get_sort_column_id.) (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable,
120 int *sort_column_id,
121 GtkSortTypecxx . . $ GtkSortType# *order);
122 void (* set_sort_column_idcxx . . $ _GtkTreeSortableIface#set_sort_column_id.) (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable,
123 int sort_column_id,
124 GtkSortTypecxx . . $ GtkSortType# order);
125 void (* set_sort_funccxx . . $ _GtkTreeSortableIface#set_sort_func.) (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable,
126 int sort_column_id,
127 GtkTreeIterCompareFunccxx . . $ GtkTreeIterCompareFunc# sort_func,
128 gpointercxx . . $ gpointer# user_data,
129 GDestroyNotifycxx . . $ GDestroyNotify# destroy);
130 void (* set_default_sort_funccxx . . $ _GtkTreeSortableIface#set_default_sort_func.) (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable,
131 GtkTreeIterCompareFunccxx . . $ GtkTreeIterCompareFunc# sort_func,
132 gpointercxx . . $ gpointer# user_data,
133 GDestroyNotifycxx . . $ GDestroyNotify# destroy);
134 gbooleancxx . . $ gboolean# (* has_default_sort_funccxx . . $ _GtkTreeSortableIface#has_default_sort_func.) (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable);
135 };
136
137
138 GDK_AVAILABLE_IN_ALLcxx . . $ `build/gdk/version/gdk-visibility.h:22:9`!
139 GTypecxx . . $ GType# gtk_tree_sortable_get_typecxx . . $ gtk_tree_sortable_get_type(f708dce9a8856c70). (void) G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
140
141 GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`!
142 void gtk_tree_sortable_sort_column_changedcxx . . $ gtk_tree_sortable_sort_column_changed(72dac639dde31f62). (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable);
143 GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`!
144 gbooleancxx . . $ gboolean# gtk_tree_sortable_get_sort_column_idcxx . . $ gtk_tree_sortable_get_sort_column_id(5c44120c50b9928e). (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable,
145 int *sort_column_id,
146 GtkSortTypecxx . . $ GtkSortType# *order);
147 GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`!
148 void gtk_tree_sortable_set_sort_column_idcxx . . $ gtk_tree_sortable_set_sort_column_id(a357a03a8dbf1415). (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable,
149 int sort_column_id,
150 GtkSortTypecxx . . $ GtkSortType# order);
151 GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`!
152 void gtk_tree_sortable_set_sort_funccxx . . $ gtk_tree_sortable_set_sort_func(7d3013e31095ff85). (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable,
153 int sort_column_id,
154 GtkTreeIterCompareFunccxx . . $ GtkTreeIterCompareFunc# sort_func,
155 gpointercxx . . $ gpointer# user_data,
156 GDestroyNotifycxx . . $ GDestroyNotify# destroy);
157 GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`!
158 void gtk_tree_sortable_set_default_sort_funccxx . . $ gtk_tree_sortable_set_default_sort_func(fd17765ee1d63cb8). (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable,
159 GtkTreeIterCompareFunccxx . . $ GtkTreeIterCompareFunc# sort_func,
160 gpointercxx . . $ gpointer# user_data,
161 GDestroyNotifycxx . . $ GDestroyNotify# destroy);
162 GDK_DEPRECATED_IN_4_10cxx . . $ `build/gdk/version/gdk-visibility.h:207:9`!
163 gbooleancxx . . $ gboolean# gtk_tree_sortable_has_default_sort_funccxx . . $ gtk_tree_sortable_has_default_sort_func(39f4e87cbcd901ae). (GtkTreeSortablecxx . . $ GtkTreeSortable# *sortable);
164
165 G_DEFINE_AUTOPTR_CLEANUP_FUNCcxx . . $ `<external>/12741050725406041920/gmacros.h:1414:9`!(GtkTreeSortable, g_object_unref)
166
167 G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`!
168