Back to index

im-sdk  12.3.91
vkb_aux.h
Go to the documentation of this file.
00001 #ifndef _VKB_AUX_H_
00002 #define _VKB_AUX_H_
00003 
00004 #include <gdk/gdk.h>
00005 #include <gtk/gtk.h>
00006 
00007 #include "vkb_layout.h"
00008 
00009 typedef struct _vkb_window_t {
00010     GtkWidget *window;
00011     GtkWidget *drawing_area;
00012     GdkPixmap *pixmap;
00013 
00014     PangoContext *context;
00015     PangoLayout *pango_layout;
00016     PangoFontDescription *fontdesc_basekey;
00017     PangoFontDescription *fontdesc_ctrlkey;
00018 
00019     GdkCursor *moving_cursor;
00020     GdkCursor *normal_cursor;
00021 
00022     GdkRectangle buttons[MAX_VK_NUM];
00023 
00024     gint width;
00025     gint height;
00026 
00027     gint pos_x;
00028     gint pos_y;
00029 
00030     gint button_id_focused;
00031     gint button_id_pressed;
00032 
00033     gboolean draging;
00034     gboolean draw_draging_frame;
00035     gint drag_x_start;
00036     gint drag_y_start;
00037     gint drag_x_save;
00038     gint drag_y_save;
00039 
00040     vkb_layout_t *layout;
00041 
00042     int status_ctrlkey:2;
00043     int status_shiftkey:2;
00044     int status_altkey:2;
00045     int status_capslockkey:2;
00046 } vkb_window_t;
00047 
00048 typedef struct _vkb_session_t {
00049     vkb_layout_t *layout;
00050 
00051     int pos_x;
00052     int pos_y;
00053     int status_ctrlkey:2;
00054     int status_shiftkey:2;
00055     int status_altkey:2;
00056     int status_capslockkey:2;
00057 } vkb_session_t;
00058 
00059 #endif /* _VKB_AUX_H_ */