1/*
2 * Copyright © 2019 Matthias Clasen
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.1 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 * Authors: Matthias Clasen <mclasen@redhat.com>
18 */
19
20#ifndef __GTK_COLUMN_VIEW_SORTER_H__
21#define __GTK_COLUMN_VIEW_SORTER_H__
22
23#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24#error "Only <gtk/gtk.h> can be included directly."
25#endif
26
27#include <gdk/gdk.h>
28#include <gtk/gtksorter.h>
29#include <gtk/gtkcolumnviewcolumn.h>
30
31G_BEGIN_DECLS
32
33#define GTK_TYPE_COLUMN_VIEW_SORTER (gtk_column_view_sorter_get_type ())
34
35G_DECLARE_FINAL_TYPE (GtkColumnViewSorter, gtk_column_view_sorter, GTK, COLUMN_VIEW_SORTER, GtkSorter)
36
37GtkColumnViewSorter * gtk_column_view_sorter_new (void);
38
39gboolean gtk_column_view_sorter_add_column (GtkColumnViewSorter *self,
40 GtkColumnViewColumn *column);
41gboolean gtk_column_view_sorter_remove_column (GtkColumnViewSorter *self,
42 GtkColumnViewColumn *column);
43
44void gtk_column_view_sorter_clear (GtkColumnViewSorter *self);
45
46GtkColumnViewColumn * gtk_column_view_sorter_get_sort_column (GtkColumnViewSorter *self,
47 gboolean *inverted);
48
49gboolean gtk_column_view_sorter_set_column (GtkColumnViewSorter *self,
50 GtkColumnViewColumn *column,
51 gboolean inverted);
52
53
54G_END_DECLS
55
56#endif /* __GTK_SORTER_H__ */
57
58

source code of gtk/gtk/gtkcolumnviewsorterprivate.h