1 /* GmcCharGrid Widget - Simple character grid for the gmc viewer
3 * Copyright (C) 1997 The Free Software Foundation
5 * Author: Federico Mena <federico@nuclecu.unam.mx>
13 #include <gtk/gtkwidget.h>
14 #include <libgnome/gnome-defs.h>
20 #define GMC_CHAR_GRID(obj) GTK_CHECK_CAST (obj, gmc_char_grid_get_type (), GmcCharGrid)
21 #define GMC_CHAR_GRID_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gmc_char_grid_get_type (), GmcCharGridClass)
22 #define GMC_IS_CHAR_GRID(obj) GTK_CHECK_TYPE (obj, gmc_char_grid_get_type ())
25 typedef struct _GmcCharGrid GmcCharGrid
;
26 typedef struct _GmcCharGridClass GmcCharGridClass
;
47 struct _GmcCharGridClass
{
48 GtkWidgetClass parent_class
;
50 void (* size_changed
) (GmcCharGrid
*cgrid
, guint width
, guint height
);
54 guint
gmc_char_grid_get_type (void);
55 GtkWidget
*gmc_char_grid_new (void);
57 void gmc_char_grid_clear (GmcCharGrid
*cgrid
, int x
, int y
, int width
, int height
, GdkColor
*bg
);
58 void gmc_char_grid_put_char (GmcCharGrid
*cgrid
, int x
, int y
, GdkColor
*fg
, GdkColor
*bg
, char ch
);
59 void gmc_char_grid_put_string (GmcCharGrid
*cgrid
, int x
, int y
, GdkColor
*fg
, GdkColor
*bg
, char *str
);
60 void gmc_char_grid_put_text (GmcCharGrid
*cgrid
, int x
, int y
, GdkColor
*fg
, GdkColor
*bg
, char *text
, int length
);
62 void gmc_char_grid_set_font (GmcCharGrid
*cgrid
, const char *font_name
);
63 void gmc_char_grid_set_size (GmcCharGrid
*cgrid
, guint width
, guint height
);
64 void gmc_char_grid_get_size (GmcCharGrid
*cgrid
, guint
*width
, guint
*height
);
66 void gmc_char_grid_freeze (GmcCharGrid
*cgrid
);
67 void gmc_char_grid_thaw (GmcCharGrid
*cgrid
);