Debian Codegraph @

src/gtk-im/gtkimcontexthime.h

raw
1 /*
2 * Copyright (C) 2020 The HIME team, Taiwan
3 * GTK - The GIMP Toolkit
4 * Copyright (C) 2000 Red Hat Software
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #ifndef GTKIMCONTEXTHIME_H
22 #define GTKIMCONTEXTHIME_H
23
24 #include <gdk/gdkx.h>
25 #include <gtk/gtk.h>
26 #include <gtk/gtkimmodule.h>
27 #if !GTK_CHECK_VERSION(3, 0, 0)
28 #include <gdk/gdkkeysyms.h>
29 #endif
30
31 #include "../hime-gtk-compatible.h"
32
33 extern GType gtk_type_im_context_hime;
34
35 #define GTK_TYPE_IM_CONTEXT_HIME gtk_type_im_context_hime
36 #define GTK_IM_CONTEXT_HIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT_HIME, GtkIMContextHIME))
37 #define GTK_IM_CONTEXT_HIME_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT_HIME, GtkIMContextHIME const))
38 #define GTK_IM_CONTEXT_HIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT_HIME, GtkIMContextHIMEClass))
39 #define GTK_IS_IM_CONTEXT_HIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT_HIME))
40 #define GTK_IS_IM_CONTEXT_HIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT_HIME))
41 #define GTK_IM_CONTEXT_HIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT_HIME, GtkIMContextHIMEClass))
42
43 typedef struct _GtkIMContextHIME GtkIMContextHIME;
44 typedef struct _GtkIMContextHIMEClass GtkIMContextHIMEClass;
45
46 struct _GtkIMContextHIMEClass {
47 GtkIMContextClass parent_class;
48 };
49
50 void gtk_im_context_hime_register_type (GTypeModule *type_module);
51
52 GtkIMContext *gtk_im_context_hime_new (void);
53
54 void gtk_im_context_hime_shutdown (void);
55
56 #endif /* HIME_GTKIMCONTEXTHIME_H */