Back to index

im-sdk  12.3.91
chartable.h
Go to the documentation of this file.
00001 #ifndef __CHAR_TABLE_H__
00002 #define __CHAR_TABLE_H__
00003 
00004 
00005 G_BEGIN_DECLS
00006 #define CHARTABLE_TYPE (chartable_get_type ())
00007 #define CHARTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHARTABLE_TYPE, CharTable))
00008 #define CHARTABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CHARTABLE_TYPE, CharTableClass))
00009 #define IS_CHARTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHARTABLE_TYPE))
00010 #define IS_CHARTABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CHARTABLE_TYPE))
00011 #define CHARTABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CHARTABLE_TYPE, CharTableClass))
00012 
00013 typedef struct _CharTable CharTable;
00014 typedef struct _CharTableClass CharTableClass;
00015 
00016 struct _CharTable
00017 {
00018   GtkHBox parent;
00019   GdkPixmap *pixmap;
00020   GtkWidget *drawingarea;
00021 
00022   GtkObject *adjustment;
00023   gulong adjustment_changed_handler_id;
00024   
00025   guint _begin;
00026   guint _end;
00027   guint ncols;
00028   guint nrows;
00029   gchar *font_name;
00030   PangoFontMetrics *font_metrics;
00031   PangoLayout *pango_layout;
00032 };
00033 
00034 struct _CharTableClass
00035 {
00036   GtkHBoxClass parent_class;
00037 };
00038 
00039 GtkWidget *chartable_new (void);
00040 GtkWidget *chartable_new_with_range (guint begin, guint end);
00041 void chartable_set_begin (CharTable *table, guint begin);
00042 void chartable_set_end (CharTable *table, guint begin);
00043 
00044 
00045 
00046 G_END_DECLS  
00047 #endif