2019-10-28 00:18:14 +00:00
|
|
|
/*
|
|
|
|
* 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>
|
2019-12-04 13:13:13 +00:00
|
|
|
#include <gtk/gtksorter.h>
|
2019-10-28 00:18:14 +00:00
|
|
|
|
|
|
|
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))
|
2022-02-04 11:13:46 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkColumnViewColumn, g_object_unref)
|
2019-10-28 00:18:14 +00:00
|
|
|
|
|
|
|
typedef struct _GtkColumnViewColumnClass GtkColumnViewColumnClass;
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GType gtk_column_view_column_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-09-25 17:53:42 +00:00
|
|
|
GtkColumnViewColumn * gtk_column_view_column_new (const char *title,
|
2019-10-28 00:18:14 +00:00
|
|
|
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);
|
|
|
|
|
2019-12-04 13:13:13 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_column_view_column_set_sorter (GtkColumnViewColumn *self,
|
|
|
|
GtkSorter *sorter);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GtkSorter * gtk_column_view_column_get_sorter (GtkColumnViewColumn *self);
|
|
|
|
|
2019-12-16 19:01:42 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_column_view_column_set_visible (GtkColumnViewColumn *self,
|
|
|
|
gboolean visible);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
gboolean gtk_column_view_column_get_visible (GtkColumnViewColumn *self);
|
|
|
|
|
2019-12-22 03:20:42 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-06-01 01:07:38 +00:00
|
|
|
|
2019-12-22 03:20:42 +00:00
|
|
|
void gtk_column_view_column_set_header_menu (GtkColumnViewColumn *self,
|
|
|
|
GMenuModel *menu);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
GMenuModel * gtk_column_view_column_get_header_menu (GtkColumnViewColumn *self);
|
|
|
|
|
2020-07-16 16:58:41 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
2020-06-01 01:07:38 +00:00
|
|
|
void gtk_column_view_column_set_fixed_width (GtkColumnViewColumn *self,
|
|
|
|
int fixed_width);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
int gtk_column_view_column_get_fixed_width (GtkColumnViewColumn *self);
|
|
|
|
|
2019-12-20 19:07:14 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_column_view_column_set_resizable (GtkColumnViewColumn *self,
|
|
|
|
gboolean resizable);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
gboolean gtk_column_view_column_get_resizable (GtkColumnViewColumn *self);
|
|
|
|
|
2019-12-23 04:10:01 +00:00
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
void gtk_column_view_column_set_expand (GtkColumnViewColumn *self,
|
|
|
|
gboolean expand);
|
|
|
|
GDK_AVAILABLE_IN_ALL
|
|
|
|
gboolean gtk_column_view_column_get_expand (GtkColumnViewColumn *self);
|
|
|
|
|
2019-10-28 00:18:14 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_COLUMN_VIEW_COLUMN_H__ */
|