gtkcellrenderertext.h 2.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* gtkcellrenderertext.h
 * Copyright (C) 2000  Red Hat, Inc.,  Jonathan Blandford <jrb@redhat.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
Javier Jardón's avatar
Javier Jardón committed
15
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 17
 */

18
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
19 20 21
#error "Only <gtk/gtk.h> can be included directly."
#endif

22 23 24
#ifndef __GTK_CELL_RENDERER_TEXT_H__
#define __GTK_CELL_RENDERER_TEXT_H__

25

26 27
#include <gtk/gtkcellrenderer.h>

28 29

G_BEGIN_DECLS
30 31 32


#define GTK_TYPE_CELL_RENDERER_TEXT		(gtk_cell_renderer_text_get_type ())
Manish Singh's avatar
Manish Singh committed
33 34 35 36 37
#define GTK_CELL_RENDERER_TEXT(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererText))
#define GTK_CELL_RENDERER_TEXT_CLASS(klass)	(G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererTextClass))
#define GTK_IS_CELL_RENDERER_TEXT(obj)		(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CELL_RENDERER_TEXT))
#define GTK_IS_CELL_RENDERER_TEXT_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CELL_RENDERER_TEXT))
#define GTK_CELL_RENDERER_TEXT_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CELL_RENDERER_TEXT, GtkCellRendererTextClass))
38

39 40 41
typedef struct _GtkCellRendererText              GtkCellRendererText;
typedef struct _GtkCellRendererTextPrivate       GtkCellRendererTextPrivate;
typedef struct _GtkCellRendererTextClass         GtkCellRendererTextClass;
42 43 44 45 46 47

struct _GtkCellRendererText
{
  GtkCellRenderer parent;

  /*< private >*/
48
  GtkCellRendererTextPrivate *priv;
49 50 51 52 53
};

struct _GtkCellRendererTextClass
{
  GtkCellRendererClass parent_class;
54 55

  void (* edited) (GtkCellRendererText *cell_renderer_text,
56 57
		   const gchar         *path,
		   const gchar         *new_text);
58 59 60 61 62 63

  /* Padding for future expansion */
  void (*_gtk_reserved1) (void);
  void (*_gtk_reserved2) (void);
  void (*_gtk_reserved3) (void);
  void (*_gtk_reserved4) (void);
64 65
};

Matthias Clasen's avatar
Matthias Clasen committed
66
GType            gtk_cell_renderer_text_get_type (void) G_GNUC_CONST;
67
GtkCellRenderer *gtk_cell_renderer_text_new      (void);
68

69 70
void             gtk_cell_renderer_text_set_fixed_height_from_font (GtkCellRendererText *renderer,
								    gint                 number_of_rows);
71

72

73
G_END_DECLS
74 75

#endif /* __GTK_CELL_RENDERER_TEXT_H__ */