]> Pileus Git - ~andy/gtk/blob - modules/input/gtkimcontextime.h
modules/input/gtkimcontextime.c modules/input/gtkimcontextmultipress.c use
[~andy/gtk] / modules / input / gtkimcontextime.h
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, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  * $Id$
22  */
23
24 #include <gtk/gtk.h>
25
26 extern GType gtk_type_im_context_ime;
27
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))
34
35 typedef struct _GtkIMContextIME GtkIMContextIME;
36 typedef struct _GtkIMContextIMEPrivate GtkIMContextIMEPrivate;
37 typedef struct _GtkIMContextIMEClass GtkIMContextIMEClass;
38
39 struct _GtkIMContextIME
40 {
41   GtkIMContext object;
42
43   GdkWindow *client_window;
44   GdkWindow *toplevel;
45   guint use_preedit : 1;
46   guint preediting : 1;
47   guint opened : 1;
48   guint focus : 1;
49   GdkRectangle cursor_location;
50
51   GtkIMContextIMEPrivate *priv;
52 };
53
54 struct _GtkIMContextIMEClass
55 {
56   GtkIMContextClass parent_class;
57 };
58
59
60 void          gtk_im_context_ime_register_type (GTypeModule * type_module);
61 GtkIMContext *gtk_im_context_ime_new           (void);