3 * Copyright (C) 2003 Takuro Ashie
4 * Copyright (C) 2003 Kazuki IWAMOTO
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.
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.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
26 extern GType gtk_type_im_context_ime;
28 #define GTK_TYPE_IM_CONTEXT_IME gtk_type_im_context_ime
29 #define GTK_IM_CONTEXT_IME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT_IME, GtkIMContextIME))
30 #define GTK_IM_CONTEXT_IME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT_IME, GtkIMContextIMEClass))
31 #define GTK_IS_IM_CONTEXT_IME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT_IME))
32 #define GTK_IS_IM_CONTEXT_IME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT_IME))
33 #define GTK_IM_CONTEXT_IME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT_IME, GtkIMContextIMEClass))
35 typedef struct _GtkIMContextIME GtkIMContextIME;
36 typedef struct _GtkIMContextIMEPrivate GtkIMContextIMEPrivate;
37 typedef struct _GtkIMContextIMEClass GtkIMContextIMEClass;
39 struct _GtkIMContextIME
43 GdkWindow *client_window;
45 guint use_preedit : 1;
49 GdkRectangle cursor_location;
51 GtkIMContextIMEPrivate *priv;
54 struct _GtkIMContextIMEClass
56 GtkIMContextClass parent_class;
60 void gtk_im_context_ime_register_type (GTypeModule * type_module);
61 GtkIMContext *gtk_im_context_ime_new (void);