Blame gtk/gtkcelllayout.h

Packit 98cdb6
/* gtkcelllayout.h
Packit 98cdb6
 * Copyright (C) 2003  Kristian Rietveld  <kris@gtk.org>
Packit 98cdb6
 *
Packit 98cdb6
 * This library is free software; you can redistribute it and/or
Packit 98cdb6
 * modify it under the terms of the GNU Library General Public
Packit 98cdb6
 * License as published by the Free Software Foundation; either
Packit 98cdb6
 * version 2 of the License, or (at your option) any later version.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is distributed in the hope that it will be useful,
Packit 98cdb6
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 98cdb6
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 98cdb6
 * Library General Public License for more details.
Packit 98cdb6
 *
Packit 98cdb6
 * You should have received a copy of the GNU Library General Public
Packit 98cdb6
 * License along with this library; if not, write to the
Packit 98cdb6
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit 98cdb6
 * Boston, MA 02111-1307, USA.
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
#ifndef __GTK_CELL_LAYOUT_H__
Packit 98cdb6
#define __GTK_CELL_LAYOUT_H__
Packit 98cdb6
Packit 98cdb6
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
Packit 98cdb6
#error "Only <gtk/gtk.h> can be included directly."
Packit 98cdb6
#endif
Packit 98cdb6
Packit 98cdb6
#include <gtk/gtkcellrenderer.h>
Packit 98cdb6
#include <gtk/gtktreeviewcolumn.h>
Packit 98cdb6
#include <gtk/gtkbuildable.h>
Packit 98cdb6
#include <gtk/gtkbuilder.h>
Packit 98cdb6
Packit 98cdb6
G_BEGIN_DECLS
Packit 98cdb6
Packit 98cdb6
#define GTK_TYPE_CELL_LAYOUT            (gtk_cell_layout_get_type ())
Packit 98cdb6
#define GTK_CELL_LAYOUT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayout))
Packit 98cdb6
#define GTK_IS_CELL_LAYOUT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_LAYOUT))
Packit 98cdb6
#define GTK_CELL_LAYOUT_GET_IFACE(obj)  (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_CELL_LAYOUT, GtkCellLayoutIface))
Packit 98cdb6
Packit 98cdb6
typedef struct _GtkCellLayout           GtkCellLayout; /* dummy typedef */
Packit 98cdb6
typedef struct _GtkCellLayoutIface      GtkCellLayoutIface;
Packit 98cdb6
Packit 98cdb6
/* keep in sync with GtkTreeCellDataFunc */
Packit 98cdb6
typedef void (* GtkCellLayoutDataFunc) (GtkCellLayout   *cell_layout,
Packit 98cdb6
                                        GtkCellRenderer *cell,
Packit 98cdb6
                                        GtkTreeModel    *tree_model,
Packit 98cdb6
                                        GtkTreeIter     *iter,
Packit 98cdb6
                                        gpointer         data);
Packit 98cdb6
Packit 98cdb6
struct _GtkCellLayoutIface
Packit 98cdb6
{
Packit 98cdb6
  GTypeInterface g_iface;
Packit 98cdb6
Packit 98cdb6
  /* Virtual Table */
Packit 98cdb6
  void (* pack_start)         (GtkCellLayout         *cell_layout,
Packit 98cdb6
                               GtkCellRenderer       *cell,
Packit 98cdb6
                               gboolean               expand);
Packit 98cdb6
  void (* pack_end)           (GtkCellLayout         *cell_layout,
Packit 98cdb6
                               GtkCellRenderer       *cell,
Packit 98cdb6
                               gboolean               expand);
Packit 98cdb6
  void (* clear)              (GtkCellLayout         *cell_layout);
Packit 98cdb6
  void (* add_attribute)      (GtkCellLayout         *cell_layout,
Packit 98cdb6
                               GtkCellRenderer       *cell,
Packit 98cdb6
                               const gchar           *attribute,
Packit 98cdb6
                               gint                   column);
Packit 98cdb6
  void (* set_cell_data_func) (GtkCellLayout         *cell_layout,
Packit 98cdb6
                               GtkCellRenderer       *cell,
Packit 98cdb6
                               GtkCellLayoutDataFunc  func,
Packit 98cdb6
                               gpointer               func_data,
Packit 98cdb6
                               GDestroyNotify         destroy);
Packit 98cdb6
  void (* clear_attributes)   (GtkCellLayout         *cell_layout,
Packit 98cdb6
                               GtkCellRenderer       *cell);
Packit 98cdb6
  void (* reorder)            (GtkCellLayout         *cell_layout,
Packit 98cdb6
                               GtkCellRenderer       *cell,
Packit 98cdb6
                               gint                   position);
Packit 98cdb6
  GList* (* get_cells)        (GtkCellLayout         *cell_layout);
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
GType gtk_cell_layout_get_type           (void) G_GNUC_CONST;
Packit 98cdb6
void  gtk_cell_layout_pack_start         (GtkCellLayout         *cell_layout,
Packit 98cdb6
                                          GtkCellRenderer       *cell,
Packit 98cdb6
                                          gboolean               expand);
Packit 98cdb6
void  gtk_cell_layout_pack_end           (GtkCellLayout         *cell_layout,
Packit 98cdb6
                                          GtkCellRenderer       *cell,
Packit 98cdb6
                                          gboolean               expand);
Packit 98cdb6
GList *gtk_cell_layout_get_cells         (GtkCellLayout         *cell_layout);
Packit 98cdb6
void  gtk_cell_layout_clear              (GtkCellLayout         *cell_layout);
Packit 98cdb6
void  gtk_cell_layout_set_attributes     (GtkCellLayout         *cell_layout,
Packit 98cdb6
                                          GtkCellRenderer       *cell,
Packit 98cdb6
                                          ...) G_GNUC_NULL_TERMINATED;
Packit 98cdb6
void  gtk_cell_layout_add_attribute      (GtkCellLayout         *cell_layout,
Packit 98cdb6
                                          GtkCellRenderer       *cell,
Packit 98cdb6
                                          const gchar           *attribute,
Packit 98cdb6
                                          gint                   column);
Packit 98cdb6
void  gtk_cell_layout_set_cell_data_func (GtkCellLayout         *cell_layout,
Packit 98cdb6
                                          GtkCellRenderer       *cell,
Packit 98cdb6
                                          GtkCellLayoutDataFunc  func,
Packit 98cdb6
                                          gpointer               func_data,
Packit 98cdb6
                                          GDestroyNotify         destroy);
Packit 98cdb6
void  gtk_cell_layout_clear_attributes   (GtkCellLayout         *cell_layout,
Packit 98cdb6
                                          GtkCellRenderer       *cell);
Packit 98cdb6
void  gtk_cell_layout_reorder            (GtkCellLayout         *cell_layout,
Packit 98cdb6
                                          GtkCellRenderer       *cell,
Packit 98cdb6
                                          gint                   position);
Packit 98cdb6
gboolean _gtk_cell_layout_buildable_custom_tag_start (GtkBuildable  *buildable,
Packit 98cdb6
						      GtkBuilder    *builder,
Packit 98cdb6
						      GObject       *child,
Packit 98cdb6
						      const gchar   *tagname,
Packit 98cdb6
						      GMarkupParser *parser,
Packit 98cdb6
						      gpointer      *data);
Packit 98cdb6
void _gtk_cell_layout_buildable_custom_tag_end       (GtkBuildable  *buildable,
Packit 98cdb6
						      GtkBuilder    *builder,
Packit 98cdb6
						      GObject       *child,
Packit 98cdb6
						      const gchar   *tagname,
Packit 98cdb6
						      gpointer      *data);
Packit 98cdb6
void _gtk_cell_layout_buildable_add_child            (GtkBuildable  *buildable,
Packit 98cdb6
						      GtkBuilder    *builder,
Packit 98cdb6
						      GObject       *child,
Packit 98cdb6
						      const gchar   *type);
Packit 98cdb6
Packit 98cdb6
G_END_DECLS
Packit 98cdb6
Packit 98cdb6
#endif /* __GTK_CELL_LAYOUT_H__ */