10708
+ ��膩��� 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 #include <glib-object.h>
+ ��膩��� 24
+ ��膩��� 25 #include <gtk/gtkcellrenderer.h>
+ ��膩��� 26 #include <gtk/gtktreeviewcolumn.h>
+ ��膩��� 27
+ ��膩��� 28 G_BEGIN_DECLS
+ ��膩��� 29
+ ��膩��� 30 #define GTK_TYPE_CELL_LAYOUT (gtk_cell_layout_get_type ())
+ ��膩��� 31 #define GTK_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayout))
+ ��膩��� 32 #define GTK_IS_CELL_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_LAYOUT))
+ ��膩��� 33 #define GTK_CELL_LAYOUT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayoutIface))
+ ��膩��� 34
+ ��膩��� 35 typedef struct _GtkCellLayout GtkCellLayout; /* dummy typedef */
+ ��膩��� 36 typedef struct _GtkCellLayoutIface GtkCellLayoutIface;
+ ��膩��� 37
+ ��膩��� 38 /* keep in sync with GtkTreeCellDataFunc */
+ ��膩��� 39 typedef void (* GtkCellLayoutDataFunc) (GtkCellLayout *cell_layout,
+ ��膩��� 40 GtkCellRenderer *cell,
+ ��膩��� 41 GtkTreeModel *tree_model,
+ ��膩��� 42 GtkTreeIter *iter,
+ ��膩��� 43 gpointer data);
+ ��膩��� 44
+ ��膩��� 45 struct _GtkCellLayoutIface
+ ��膩��� 46 {
+ ��膩��� 47 GTypeInterface g_iface;
+ ��膩��� 48
+ ��膩��� 49 /* Virtual Table */
+ ��膩��� 50 void (* pack_start) (GtkCellLayout *cell_layout,
+ ��膩��� 51 GtkCellRenderer *cell,
+ ��膩��� 52 gboolean expand);
+ ��膩��� 53 void (* pack_end) (GtkCellLayout *cell_layout,
+ ��膩��� 54 GtkCellRenderer *cell,
+ ��膩��� 55 gboolean expand);
+ ��膩��� 56 void (* clear) (GtkCellLayout *cell_layout);
+ ��膩��� 57 void (* add_attribute) (GtkCellLayout *cell_layout,
+ ��膩��� 58 GtkCellRenderer *cell,
+ ��膩��� 59 const gchar *attribute,
+ ��膩��� 60 gint column);
+ ��膩��� 61 void (* set_cell_data_func) (GtkCellLayout *cell_layout,
+ ��膩��� 62 GtkCellRenderer *cell,
+ ��膩��� 63 GtkCellLayoutDataFunc func,
+ ��膩��� 64 gpointer func_data,
+ ��膩��� 65 GDestroyNotify destroy);
+ ��膩��� 66 void (* clear_attributes) (GtkCellLayout *cell_layout,
+ ��膩��� 67 GtkCellRenderer *cell);
+ ��膩��� 68 void (* reorder) (GtkCellLayout *cell_layout,
+ ��膩��� 69 GtkCellRenderer *cell,
+ ��膩��� 70 gint position);
+ ��膩��� 71 };
+ ��膩��� 72
+ ��膩��� 73 GType gtk_cell_layout_get_type (void);
+ ��膩��� 74 void gtk_cell_layout_pack_start (GtkCellLayout *cell_layout,
+ ��膩��� 75 GtkCellRenderer *cell,
+ ��膩��� 76 gboolean expand);
+ ��膩��� 77 void gtk_cell_layout_pack_end (GtkCellLayout *cell_layout,
+ ��膩��� 78 GtkCellRenderer *cell,
+ ��膩��� 79 gboolean expand);
+ ��膩��� 80 void gtk_cell_layout_clear (GtkCellLayout *cell_layout);
+ ��膩��� 81 void gtk_cell_layout_set_attributes (GtkCellLayout *cell_layout,
+ ��膩��� 82 GtkCellRenderer *cell,
+ ��膩��� 83 ...);
+ ��膩��� 84 void gtk_cell_layout_add_attribute (GtkCellLayout *cell_layout,
+ ��膩��� 85 GtkCellRenderer *cell,
+ ��膩��� 86 const gchar *attribute,
+ ��膩��� 87 gint column);
+ ��膩��� 88 void gtk_cell_layout_set_cell_data_func (GtkCellLayout *cell_layout,
+ ��膩��� 89 GtkCellRenderer *cell,
+ ��膩��� 90 GtkCellLayoutDataFunc func,
+ ��膩��� 91 gpointer func_data,
+ ��膩��� 92 GDestroyNotify destroy);
+ ��膩��� 93 void gtk_cell_layout_clear_attributes (GtkCellLayout *cell_layout,
+ ��膩��� 94 GtkCellRenderer *cell);
+ ��膩��� 95 void gtk_cell_layout_reorder (GtkCellLayout *cell_layout,
+ ��膩��� 96 GtkCellRenderer *cell,
+ ��膩��� 97 gint position);
+ ��膩��� 98
+ ��膩��� 99
+ ��膩��� 100 G_END_DECLS
+ ��膩��� 101
+ ��膩��� 102 #endif /* __GTK_CELL_LAYOUT_H__ */