Ardour  8.7-14-g57a6773833
gtkcelllayout.h
Go to the documentation of this file.
1 /* gtkcelllayout.h
2  * Copyright (C) 2003 Kristian Rietveld <kris@gtk.org>
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, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 
20 #ifndef __GTK_CELL_LAYOUT_H__
21 #define __GTK_CELL_LAYOUT_H__
22 
23 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24 #error "Only <gtk/gtk.h> can be included directly."
25 #endif
26 
27 #include <gtk/gtkcellrenderer.h>
28 #include <gtk/gtktreeviewcolumn.h>
29 #include <gtk/gtkbuildable.h>
30 #include <gtk/gtkbuilder.h>
31 
32 G_BEGIN_DECLS
33 
34 #define GTK_TYPE_CELL_LAYOUT (gtk_cell_layout_get_type ())
35 #define GTK_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayout))
36 #define GTK_IS_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_LAYOUT))
37 #define GTK_CELL_LAYOUT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayoutIface))
38 
39 typedef struct _GtkCellLayout GtkCellLayout; /* dummy typedef */
41 
42 /* keep in sync with GtkTreeCellDataFunc */
43 typedef void (* GtkCellLayoutDataFunc) (GtkCellLayout *cell_layout,
44  GtkCellRenderer *cell,
45  GtkTreeModel *tree_model,
46  GtkTreeIter *iter,
47  gpointer data);
48 
50 {
51  GTypeInterface g_iface;
52 
53  /* Virtual Table */
54  void (* pack_start) (GtkCellLayout *cell_layout,
55  GtkCellRenderer *cell,
56  gboolean expand);
57  void (* pack_end) (GtkCellLayout *cell_layout,
58  GtkCellRenderer *cell,
59  gboolean expand);
60  void (* clear) (GtkCellLayout *cell_layout);
61  void (* add_attribute) (GtkCellLayout *cell_layout,
62  GtkCellRenderer *cell,
63  const gchar *attribute,
64  gint column);
65  void (* set_cell_data_func) (GtkCellLayout *cell_layout,
66  GtkCellRenderer *cell,
68  gpointer func_data,
69  GDestroyNotify destroy);
70  void (* clear_attributes) (GtkCellLayout *cell_layout,
71  GtkCellRenderer *cell);
72  void (* reorder) (GtkCellLayout *cell_layout,
73  GtkCellRenderer *cell,
74  gint position);
75  GList* (* get_cells) (GtkCellLayout *cell_layout);
76 };
77 
78 GType gtk_cell_layout_get_type (void) G_GNUC_CONST;
80  GtkCellRenderer *cell,
81  gboolean expand);
83  GtkCellRenderer *cell,
84  gboolean expand);
88  GtkCellRenderer *cell,
89  ...) G_GNUC_NULL_TERMINATED;
91  GtkCellRenderer *cell,
92  const gchar *attribute,
93  gint column);
95  GtkCellRenderer *cell,
97  gpointer func_data,
98  GDestroyNotify destroy);
100  GtkCellRenderer *cell);
102  GtkCellRenderer *cell,
103  gint position);
105  GtkBuilder *builder,
106  GObject *child,
107  const gchar *tagname,
108  GMarkupParser *parser,
109  gpointer *data);
111  GtkBuilder *builder,
112  GObject *child,
113  const gchar *tagname,
114  gpointer *data);
116  GtkBuilder *builder,
117  GObject *child,
118  const gchar *type);
119 
120 G_END_DECLS
121 
122 #endif /* __GTK_CELL_LAYOUT_H__ */
struct _GtkBuildable GtkBuildable
Definition: gtkbuildable.h:40
void _gtk_cell_layout_buildable_custom_tag_end(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *tagname, gpointer *data)
void gtk_cell_layout_set_cell_data_func(GtkCellLayout *cell_layout, GtkCellRenderer *cell, GtkCellLayoutDataFunc func, gpointer func_data, GDestroyNotify destroy)
void _gtk_cell_layout_buildable_add_child(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *type)
GType gtk_cell_layout_get_type(void) G_GNUC_CONST
void gtk_cell_layout_pack_start(GtkCellLayout *cell_layout, GtkCellRenderer *cell, gboolean expand)
void gtk_cell_layout_add_attribute(GtkCellLayout *cell_layout, GtkCellRenderer *cell, const gchar *attribute, gint column)
void gtk_cell_layout_clear_attributes(GtkCellLayout *cell_layout, GtkCellRenderer *cell)
void gtk_cell_layout_set_attributes(GtkCellLayout *cell_layout, GtkCellRenderer *cell,...) G_GNUC_NULL_TERMINATED
void(* GtkCellLayoutDataFunc)(GtkCellLayout *cell_layout, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
Definition: gtkcelllayout.h:43
struct _GtkCellLayout GtkCellLayout
Definition: gtkcelllayout.h:39
void gtk_cell_layout_clear(GtkCellLayout *cell_layout)
GList * gtk_cell_layout_get_cells(GtkCellLayout *cell_layout)
gboolean _gtk_cell_layout_buildable_custom_tag_start(GtkBuildable *buildable, GtkBuilder *builder, GObject *child, const gchar *tagname, GMarkupParser *parser, gpointer *data)
void gtk_cell_layout_reorder(GtkCellLayout *cell_layout, GtkCellRenderer *cell, gint position)
void gtk_cell_layout_pack_end(GtkCellLayout *cell_layout, GtkCellRenderer *cell, gboolean expand)
struct _GtkTreeModel GtkTreeModel
Definition: gtktreemodel.h:46
void(* set_cell_data_func)(GtkCellLayout *cell_layout, GtkCellRenderer *cell, GtkCellLayoutDataFunc func, gpointer func_data, GDestroyNotify destroy)
Definition: gtkcelllayout.h:65
void(* clear)(GtkCellLayout *cell_layout)
Definition: gtkcelllayout.h:60
GTypeInterface g_iface
Definition: gtkcelllayout.h:51
void(* reorder)(GtkCellLayout *cell_layout, GtkCellRenderer *cell, gint position)
Definition: gtkcelllayout.h:72
void(* pack_start)(GtkCellLayout *cell_layout, GtkCellRenderer *cell, gboolean expand)
Definition: gtkcelllayout.h:54
void(* clear_attributes)(GtkCellLayout *cell_layout, GtkCellRenderer *cell)
Definition: gtkcelllayout.h:70
void(* pack_end)(GtkCellLayout *cell_layout, GtkCellRenderer *cell, gboolean expand)
Definition: gtkcelllayout.h:57
void(* add_attribute)(GtkCellLayout *cell_layout, GtkCellRenderer *cell, const gchar *attribute, gint column)
Definition: gtkcelllayout.h:61