summaryrefslogtreecommitdiff
path: root/gtk/gtkcolumnviewcolumn.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-10-28 01:18:14 +0100
committerMatthias Clasen <mclasen@redhat.com>2020-05-30 19:26:46 -0400
commit0e1632d002f0ab3005cf65d848575a3484a5d486 (patch)
tree4ef551733b975c7b6e24ce4bd0bec62a27da5c43 /gtk/gtkcolumnviewcolumn.h
parentf4eb026c86f67f215772ab52bdbc53b7e08d7569 (diff)
downloadgtk+-0e1632d002f0ab3005cf65d848575a3484a5d486.tar.gz
Add GtkColumnView skeleton
It's just a copy/paste of the listview code with all the internals gutted. The code doesn't do anything.
Diffstat (limited to 'gtk/gtkcolumnviewcolumn.h')
-rw-r--r--gtk/gtkcolumnviewcolumn.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/gtk/gtkcolumnviewcolumn.h b/gtk/gtkcolumnviewcolumn.h
new file mode 100644
index 0000000000..612cdb1854
--- /dev/null
+++ b/gtk/gtkcolumnviewcolumn.h
@@ -0,0 +1,70 @@
+/*
+ * Copyright © 2019 Benjamin Otte
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors: Benjamin Otte <otte@gnome.org>
+ */
+
+#ifndef __GTK_COLUMN_VIEW_COLUMN_H__
+#define __GTK_COLUMN_VIEW_COLUMN_H__
+
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gtk/gtkcolumnview.h>
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_COLUMN_VIEW_COLUMN (gtk_column_view_column_get_type ())
+#define GTK_COLUMN_VIEW_COLUMN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_COLUMN_VIEW_COLUMN, GtkColumnViewColumn))
+#define GTK_COLUMN_VIEW_COLUMN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_COLUMN_VIEW_COLUMN, GtkColumnViewColumnClass))
+#define GTK_IS_COLUMN_VIEW_COLUMN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_COLUMN_VIEW_COLUMN))
+#define GTK_IS_COLUMN_VIEW_COLUMN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_COLUMN_VIEW_COLUMN))
+#define GTK_COLUMN_VIEW_COLUMN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_COLUMN_VIEW_COLUMN, GtkColumnViewColumnClass))
+
+/**
+ * GtkColumnViewColumn:
+ *
+ * GtkColumnViewColumns are added to #GtkColumnViews.
+ */
+typedef struct _GtkColumnViewColumnClass GtkColumnViewColumnClass;
+
+GDK_AVAILABLE_IN_ALL
+GType gtk_column_view_column_get_type (void) G_GNUC_CONST;
+
+GDK_AVAILABLE_IN_ALL
+GtkColumnViewColumn * gtk_column_view_column_new (const char *title);
+GDK_AVAILABLE_IN_ALL
+GtkColumnViewColumn * gtk_column_view_column_new_with_factory (const char *title,
+ GtkListItemFactory *factory);
+
+GDK_AVAILABLE_IN_ALL
+GtkColumnView * gtk_column_view_column_get_column_view (GtkColumnViewColumn *self);
+GDK_AVAILABLE_IN_ALL
+void gtk_column_view_column_set_factory (GtkColumnViewColumn *self,
+ GtkListItemFactory *factory);
+GDK_AVAILABLE_IN_ALL
+GtkListItemFactory * gtk_column_view_column_get_factory (GtkColumnViewColumn *self);
+
+GDK_AVAILABLE_IN_ALL
+void gtk_column_view_column_set_title (GtkColumnViewColumn *self,
+ const char *title);
+GDK_AVAILABLE_IN_ALL
+const char * gtk_column_view_column_get_title (GtkColumnViewColumn *self);
+
+G_END_DECLS
+
+#endif /* __GTK_COLUMN_VIEW_COLUMN_H__ */