Back to index

im-sdk  12.3.91
unicode_char_info.h
Go to the documentation of this file.
00001 #ifndef __UNICHAR_INFO_H__
00002 #define __UNICHAR_INFO_H__
00003 
00004 #include <glib-object.h>
00005 #include <glib.h>
00006 #include <gtk/gtk.h>
00007 
00008 G_BEGIN_DECLS
00009 
00010 #define UNICHARTABLE_TYPE           (unichartable_get_type ())
00011 #define UNICHARTABLE(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
00012                                       UNICHARTABLE_TYPE, UniCharTable))
00013 #define UNICHARTABLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), \
00014                                       UNICHARTABLE_TYPE, UniCharTableClass))
00015 #define IS_UNICHARTABLE(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
00016                                       UNICCHARTABLE_TYPE))
00017 #define IS_UNICHARTABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),\
00018                                       UNICCHARTABLE_TYPE))
00019                                 
00020 
00021 typedef struct _UniCharInfo UniCharInfo;
00022 typedef struct _UniCharInfoClass UniCharInfoClass;
00023 
00024 struct _UniCharInfo {
00025   GtkHBox parent;
00026   GtkWidget *drawing_area;
00027   GdkPixmap *pixmap;
00028   GtkWidget *mybutton;
00029 
00030   GtkObject *adjustment;
00031   gulong adjustment_changed_handler_id;
00032 
00033   gint n_rows, n_cols;
00034   
00035   gunichar begin_char;
00036   gunichar end_char;
00037   gunichar first_char;
00038   gunichar previous_first_char;
00039   gunichar selected_char;
00040   gunichar previous_selected_char;
00041 
00042   PangoFontMetrics *pango_fm;
00043   PangoLayout *pango_layout;
00044   
00045   
00046 };
00047 
00048 struct _UniCharInfoClass {
00049   GtkHBoxClass parent_class;
00050   void (* set_active_char) (UniCharInfo *, guint);
00051 };
00052 
00053 GType      unicharinfo_get_type (void);
00054 GtkWidget *unicharinfo_new (void);
00055 void charinfo_table_set_current_character (UniCharInfo *, gunichar);
00056                                                        
00057 G_END_DECLS
00058 
00059 #define UNICHAR_MAX 0xffff
00060 
00061 #endif /* #ifndef __UNICHAR_INFO_H__ */