4
* Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation and
10
* appearing in the file LICENSE.LGPL included in the package of this file.
11
* You can also redistribute it and/or modify it under the terms of
12
* the GNU General Public License as published by the Free Software Foundation and
13
* appearing in the file LICENSE.GPL included in the package of this file.
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22
* @author Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
23
* @brief This is the header for gtk imcontext of scim-bridge.
27
#ifndef SCIMBRIDGECLIENTIMCONTEXTGTK_H_
28
#define SCIMBRIDGECLIENTIMCONTEXTGTK_H_
31
#if GTK_CHECK_VERSION(3, 0, 0)
33
#include <gtk/gtkimcontext.h>
38
#include "scim-bridge.h"
39
#include "scim-bridge-client-imcontext.h"
41
#define GTK_TYPE_SCIM_CLIENT_IMCONTEXT (scim_bridge_client_imcontext_get_type ())
42
#if GTK_CHECK_VERSION(3, 0, 0)
43
#define SCIM_BRIDGE_CLIENT_IMCONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContext))
45
#define SCIM_BRIDGE_CLIENT_IMCONTEXT(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContext))
47
#define SCIM_BRIDGE_CLIENT_IMCONTEXT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
48
#if GTK_CHECK_VERSION(3, 0, 0)
49
#define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT))
51
#define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT(class) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT))
53
#define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SCIM_CLIENT_IMCONTEXT))
54
#if GTK_CHECK_VERSION(3, 0, 0)
55
#define SCIM_BRIDGE_CLIENT_IMCONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
57
#define SCIM_BRIDGE_CLIENT_IMCONTEXT_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
60
struct _ScimBridgeClientIMContextClass
62
GtkIMContextClass parent_class;
66
* IMContext class for gtk client.
68
typedef struct _ScimBridgeClientIMContextClass ScimBridgeClientIMContextClass;
71
* Initialize IMContext class itself.
73
void scim_bridge_client_imcontext_static_initialize ();
76
* Finalize IMContext class itself.
78
void scim_bridge_client_imcontext_static_finalize ();
81
* The connection with the agent is opened.
83
void scim_bridge_client_imcontext_connection_opened ();
86
* The connection with the agent is closed.
88
void scim_bridge_client_imcontext_connection_closed ();
91
* Allocate an IMContext.
93
* @return new IMContext.
95
GtkIMContext *scim_bridge_client_imcontext_new ();
98
* Get the type value of IMContexts.
100
* @return The type value of IMContexts.
102
GType scim_bridge_client_imcontext_get_type ();
105
* Register the type value for IMContexts.
107
* @param type_module The type module.
109
void scim_bridge_client_imcontext_register_type (GTypeModule *type_module);
111
#endif /*SCIMBRIDGECLIENTIMCONTEXTGTK_H_*/