1 /***************************************************************************
2  *   Copyright (C) 2010~2012 by CSSlayer                                   *
3  *                                                                         *
4  *   This program is free software; you can redistribute it and/or modify  *
5  *   it under the terms of the GNU General Public License as published by  *
6  *   the Free Software Foundation; either version 2 of the License, or     *
7  *   (at your option) any later version.                                   *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.              *
18  ***************************************************************************/
19 
20 #ifndef __FCITX_IM_CONTEXT_H_
21 #define __FCITX_IM_CONTEXT_H_
22 
23 #include <gtk/gtk.h>
24 
25 /*
26 * Type macros.
27 */
28 #define FCITX_TYPE_IM_CONTEXT (fcitx_im_context_get_type())
29 #define FCITX_IM_CONTEXT(obj)                                                  \
30     (G_TYPE_CHECK_INSTANCE_CAST((obj), FCITX_TYPE_IM_CONTEXT, FcitxIMContext))
31 #define FCITX_IM_CONTEXT_CLASS(klass)                                          \
32     (G_TYPE_CHECK_CLASS_CAST((klass), FCITX_TYPE_IM_CONTEXT,                   \
33                              FcitxIMContextClass))
34 #define FCITX_IS_IM_CONTEXT(obj)                                               \
35     (G_TYPE_CHECK_INSTANCE_TYPE((obj), FCITX_TYPE_IM_CONTEXT))
36 #define FCITX_IS_IM_CONTEXT_CLASS(klass)                                       \
37     (G_TYPE_CHECK_CLASS_TYPE((klass), FCITX_TYPE_IM_CONTEXT))
38 #define FCITX_IM_CONTEXT_GET_CLASS(obj)                                        \
39     (G_TYPE_CHECK_GET_CLASS((obj), FCITX_TYPE_IM_CONTEXT, FcitxIMContextClass))
40 
41 G_BEGIN_DECLS
42 
43 typedef struct _FcitxIMContext FcitxIMContext;
44 typedef struct _FcitxIMContextClass FcitxIMContextClass;
45 
46 GType fcitx_im_context_get_type(void);
47 FcitxIMContext *fcitx_im_context_new(void);
48 void fcitx_im_context_register_type(GTypeModule *type_module);
49 
50 G_END_DECLS
51 #endif
52 // kate: indent-mode cstyle; space-indent on; indent-width 0;
53