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 #define PALETTE_AUX_VKB_LAYOUT_FILE  "/keyboard_layout.txt"
00010 
00011 
00012 typedef struct _vkb_window_t {
00013     GtkWidget *window;
00014     GtkWidget *drawing_area;
00015     GdkPixmap *pixmap;
00016 
00017     PangoContext *context;
00018     PangoLayout *pango_layout;
00019     PangoFontDescription *fontdesc_basekey;
00020     PangoFontDescription *fontdesc_ctrlkey;
00021 
00022     GdkCursor *moving_cursor;
00023     GdkCursor *normal_cursor;
00024 
00025     GdkRectangle buttons[MAX_VK_NUM];
00026 
00027     gint width;
00028     gint height;
00029 
00030     gint pos_x;
00031     gint pos_y;
00032 
00033     gint button_id_focused;
00034     gint button_id_pressed;
00035 
00036     gboolean draging;
00037     gboolean draw_draging_frame;
00038     gint drag_x_start;
00039     gint drag_y_start;
00040     gint drag_x_save;
00041     gint drag_y_save;
00042 
00043     vkb_layout_t *layout;
00044 
00045     int status_ctrlkey:2;
00046     int status_shiftkey:2;
00047     int status_altkey:2;
00048     int status_capslockkey:2;
00049 } vkb_window_t;
00050 
00051 typedef struct _vkb_session_t {
00052     vkb_layout_t *layout;
00053 
00054     int pos_x;
00055     int pos_y;
00056     int status_ctrlkey:2;
00057     int status_shiftkey:2;
00058     int status_altkey:2;
00059     int status_capslockkey:2;
00060 } vkb_session_t;
00061 
00062 #endif /* _VKB_AUX_H_ */