Debian Codegraph @

gtk/gtkimcontextime.h

raw symbols SCIP
1 /*
2 * gtkimmoduleime
3 * Copyright (C) 2003 Takuro Ashie
4 * Copyright (C) 2003 Kazuki IWAMOTO
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 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, see <http://www.gnu.org/licenses/>.
18 *
19 * $Id$
20 */
21
22 #include <gtk/gtk.h>
23
24 #define GTK_TYPE_IM_CONTEXT_IME (gtk_im_context_ime_get_type ())
25 #define GTK_IM_CONTEXT_IME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT_IME, GtkIMContextIME))
26 #define GTK_IM_CONTEXT_IME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT_IME, GtkIMContextIMEClass))
27 #define GTK_IS_IM_CONTEXT_IME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT_IME))
28 #define GTK_IS_IM_CONTEXT_IME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT_IME))
29 #define GTK_IM_CONTEXT_IME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT_IME, GtkIMContextIMEClass))
30
31 typedef struct _GtkIMContextIME GtkIMContextIME;
32 typedef struct _GtkIMContextIMEPrivate GtkIMContextIMEPrivate;
33 typedef struct _GtkIMContextIMEClass GtkIMContextIMEClass;
34
35 struct _GtkIMContextIME
36 {
37 GtkIMContext object;
38
39 GtkWidget *client_widget;
40 GdkSurface *client_surface;
41 guint use_preedit : 1;
42 guint preediting : 1;
43 guint opened : 1;
44 guint focus : 1;
45 GdkRectangle cursor_location;
46 char *commit_string;
47
48 GtkIMContextIMEPrivate *priv;
49 };
50
51 struct _GtkIMContextIMEClass
52 {
53 GtkIMContextClass parent_class;
54 };
55
56 GDK_AVAILABLE_IN_ALL
57 GType gtk_im_context_ime_get_type (void) G_GNUC_CONST;
58
59 void gtk_im_context_ime_register_type (GTypeModule * type_module);
60 GtkIMContext *gtk_im_context_ime_new (void);