SCIMBridge 0.4.x

client-gtk/scim-bridge-client-imcontext-gtk.h

Go to the documentation of this file.
00001 /*
00002  * SCIM Bridge
00003  *
00004  * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
00005  *
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation and 
00010  * appearing in the file LICENSE.LGPL included in the package of this file.
00011  * You can also redistribute it and/or modify it under the terms of 
00012  * the GNU General Public License as published by the Free Software Foundation and 
00013  * appearing in the file LICENSE.GPL included in the package of this file.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00018  */
00019 
00027 #ifndef SCIMBRIDGECLIENTIMCONTEXTGTK_H_
00028 #define SCIMBRIDGECLIENTIMCONTEXTGTK_H_
00029 
00030 #include <gtk/gtk.h>
00031 #include <gtk/gtkimcontext.h>
00032 
00033 #include <gdk/gdk.h>
00034 
00035 #include "scim-bridge.h"
00036 #include "scim-bridge-client-imcontext.h"
00037 
00038 #define GTK_TYPE_SCIM_CLIENT_IMCONTEXT (scim_bridge_client_imcontext_get_type ())
00039 #define SCIM_BRIDGE_CLIENT_IMCONTEXT(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContext))
00040 #define SCIM_BRIDGE_CLIENT_IMCONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
00041 #define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT(class) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT))
00042 #define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCIM_CLIENT_IMCONTEXT))
00043 #define SCIM_BRIDGE_CLIENT_IMCONTEXT_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
00044 
00045 struct _ScimBridgeClientIMContextClass
00046 {
00047     GtkIMContextClass parent_class;
00048 };
00049 
00053 typedef struct _ScimBridgeClientIMContextClass ScimBridgeClientIMContextClass;
00054 
00058 void scim_bridge_client_imcontext_static_initialize ();
00059 
00063 void scim_bridge_client_imcontext_static_finalize ();
00064 
00068 void scim_bridge_client_imcontext_connection_opened ();
00069 
00073 void scim_bridge_client_imcontext_connection_closed ();
00074 
00080 GtkIMContext *scim_bridge_client_imcontext_new ();
00081 
00087 GType scim_bridge_client_imcontext_get_type ();
00088 
00094 void scim_bridge_client_imcontext_register_type (GTypeModule *type_module);
00095 
00096 #endif                                            /*SCIMBRIDGECLIENTIMCONTEXTGTK_H_*/