4
* Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
5
* Copyright (C) 2009, Intel Corporation.
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 Raymond liu <raymond.liu@intel.com>
23
* @brief This is the header for clutter imcontext of scim-bridge.
27
#ifndef SCIMBRIDGECLIENTIMCONTEXTCLUTTER_H_
28
#define SCIMBRIDGECLIENTIMCONTEXTCLUTTER_H_
30
#include <clutter/clutter.h>
31
#include <clutter-imcontext/clutter-imcontext.h>
32
#include <clutter-imcontext/clutter-immodule.h>
34
#include "scim-bridge.h"
35
#include "scim-bridge-client-imcontext.h"
37
#define CLUTTER_TYPE_SCIM_CLIENT_IMCONTEXT (scim_bridge_client_imcontext_get_type ())
38
#define SCIM_BRIDGE_CLIENT_IMCONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContext))
39
#define SCIM_BRIDGE_CLIENT_IMCONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
40
#define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT(class) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_SCIM_CLIENT_IMCONTEXT))
41
#define IS_SCIM_BRIDGE_CLIENT_IMCONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_SCIM_CLIENT_IMCONTEXT))
42
#define SCIM_BRIDGE_CLIENT_IMCONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_SCIM_CLIENT_IMCONTEXT, ScimBridgeClientIMContextClass))
44
struct _ScimBridgeClientIMContextClass
46
ClutterIMContextClass parent_class;
50
* IMContext class for clutter client.
52
typedef struct _ScimBridgeClientIMContextClass ScimBridgeClientIMContextClass;
55
* Initialize IMContext class itself.
57
void scim_bridge_client_imcontext_static_initialize ();
60
* Finalize IMContext class itself.
62
void scim_bridge_client_imcontext_static_finalize ();
65
* The connection with the agent is opened.
67
void scim_bridge_client_imcontext_connection_opened ();
70
* The connection with the agent is closed.
72
void scim_bridge_client_imcontext_connection_closed ();
75
* Allocate an IMContext.
77
* @return new IMContext.
79
ClutterIMContext *scim_bridge_client_imcontext_new ();
82
* Get the type value of IMContexts.
84
* @return The type value of IMContexts.
86
GType scim_bridge_client_imcontext_get_type ();
89
* Register the type value for IMContexts.
91
* @param type_module The type module.
93
void scim_bridge_client_imcontext_register_type (GTypeModule *type_module);
95
#endif /*SCIMBRIDGECLIENTIMCONTEXTCLUTTER_H_*/