Change /***ja to /***oldja
[m17n/m17n-lib.git] / src / m17n-X.h
1 /* m17n-X.h -- header file for the GUI API on X Windows.
2    Copyright (C) 2003, 2004
3      National Institute of Advanced Industrial Science and Technology (AIST)
4      Registration Number H15PRO112
5
6    This file is part of the m17n library.
7
8    The m17n library is free software; you can redistribute it and/or
9    modify it under the terms of the GNU Lesser General Public License
10    as published by the Free Software Foundation; either version 2.1 of
11    the License, or (at your option) any later version.
12
13    The m17n library is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16    Lesser General Public License for more details.
17
18    You should have received a copy of the GNU Lesser General Public
19    License along with the m17n library; if not, write to the Free
20    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21    02111-1307, USA.  */
22
23 #ifndef _M17N_X_H_
24 #define _M17N_X_H_
25
26 #include <X11/Xlib.h>
27 #include <X11/Xutil.h>
28 #include <X11/Xresource.h>
29
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #endif
34
35 /* For drawing.  */
36
37 extern MSymbol Mdisplay;
38 extern MSymbol Mscreen;
39 extern MSymbol Mdrawable;
40 extern MSymbol Mwidget;
41 extern MSymbol Mdepth;
42 extern MSymbol Mcolormap;
43
44 /* For inputting.  */
45
46 extern MInputDriver minput_xim_driver;
47 extern MSymbol Mxim;
48
49 /*** @ingroup m17nInputMethodWin */
50 /***en
51     @brief Structure pointed to by the argument $ARG of the function
52     input_open_im ().
53
54     The type #MInputXIMArgIM is the structure pointed to by the
55     argument $ARG of the function minput_open_im () for the foreign
56     input method of name #Mxim.  */
57
58 /***oldja
59     @brief ´Ø¿ô minput_open_im () ¤Î°ú¿ô $ARG ¤Ë¤è¤Ã¤Æ»Ø¤µ¤ì¤ë¹½Â¤ÂÎ
60
61
62     #MInputXIMArgIM ·¿¤Ï¡¢´Ø¿ô minput_open_im () ¤¬Ì¾Á° #Mxim ¤ò»ý
63     ¤Ä³°ÉôÆþÎϥ᥽¥Ã¥É¤òÀ¸À®¤¹¤ëºÝ¤Ë°ú¿ô $ARG ¤Ë¤è¤Ã¤Æ»Ø¤µ¤ì¤ë¹½Â¤ÂΤÇ
64     ¤¢¤ë¡£  */
65
66 typedef struct
67 {
68   /***en The meaning of the following four members are the same as
69       arguments to XOpenIM ().  */
70   /***oldja °Ê²¼¤Î£´¤Ä¤Î¥á¥ó¥Ð¤Î°ÕÌ£¤Ï¡¢XOpenIM () ¤Î°ú¿ô¤Î°ÕÌ£¤ÈƱ¤¸¤Ç¤¢
71       ¤ë¡£  */
72
73   /***en Display of the client.  */
74   /***oldja ¥¯¥é¥¤¥¢¥ó¥È¤Î¥Ç¥£¥¹¥×¥ì¥¤  */
75   Display *display;
76
77   /***en Pointer to the X resource database.  */
78   /***oldja X ¥ê¥½¡¼¥¹¡¦¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ø¤Î¥Ý¥¤¥ó¥¿  */
79   XrmDatabase db;
80
81   /***en Full class name of the application.  */
82   /***oldja ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î´°Á´¤Ê¥¯¥é¥¹Ì¾  */
83   char *res_class;
84
85   /***en Full resource name of the application.  */
86   /***oldja ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î´°Á´¤Ê¥ê¥½¡¼¥¹Ì¾  */
87   char *res_name;
88
89   /***en Locale name under which an XIM is opened.  */
90   /***oldja XIM¤¬¥ª¡¼¥×¥ó¤µ¤ì¤¿¥í¥±¡¼¥ë̾  */
91   char *locale;
92
93   /***en Arguments to XSetLocaleModifiers ().  */
94   /***oldja XSetLocaleModifiers () ¤Î°ú¿ô  */
95   char *modifier_list;
96 } MInputXIMArgIM;
97   /*=*/
98
99 /*** @ingroup m17nInputMethodWin */
100 /***en
101     @brief Structure pointed to by the argument $ARG of the function
102     minput_create_ic.
103
104     The type #MInputXIMArgIC is the structure pointed to by the
105     argument $ARG of the function minput_create_ic () for the foreign
106     input method of name #Mxim.  */
107
108 /***oldja
109     @brief ´Ø¿ô minput_create_ic () ¤Î°ú¿ô $ARG ¤Ë¤è¤Ã¤Æ»Ø¤µ¤ì¤ë¹½Â¤ÂÎ
110
111     #MInputXIMArgIC ·¿¤Ï¡¢´Ø¿ô minput_create_ic () ¤¬Ì¾Á° #Mxim ¤ò
112     »ý¤Ä³°ÉôÆþÎϥ᥽¥Ã¥ÉÍѤ˸ƤФì¤ëºÝ¤Ë¡¢°ú¿ô $ARG ¤Ë¤è¤Ã¤Æ»Ø¤µ¤ì¤ë¹½
113     Â¤ÂΤǤ¢¤ë¡£ */
114
115 typedef struct
116 {
117   /***en Used as the arguments of @c XCreateIC following @c
118       XNInputStyle.  If this is zero, ( @c XIMPreeditNothing | @c
119       XIMStatusNothing) is used, and <preedit_attrs> and
120       <status_attrs> are set to @c NULL.  */
121   /***oldja @c XCreateIC ¤Î @c XNInputStyle ¤Ë³¤¯°ú¿ô¤È¤·¤ÆÍѤ¤¤é¤ì¤ë¡£
122       ¥¼¥í¤Ê¤é¤Ð¡¢ ( @c XIMPreeditNothing | @c XIMStatusNothing) ¤¬ÍÑ
123       ¤¤¤é¤ì¡¢ <preedit_attrs> ¤È <status_attrs> ¤Ï @c NULL ¤ËÀßÄꤵ¤ì
124       ¤ë¡£ */
125
126   XIMStyle input_style;
127   /***en Used as the argument of @c XCreateIC following @c XNClientWindow.  */
128   /***oldja @c XCreateIC ¤Î @c XNClientWindow ¤Ë³¤¯°ú¿ô¤È¤·¤ÆÍѤ¤¤é¤ì¤ë¡£  */
129
130
131   Window client_win;
132   /***en Used as the argument of @c XCreateIC following @c XNFocusWindow.  */
133   /***oldja @c XCreateIC ¤Î @c XNFocusWindow ¤Ë³¤¯°ú¿ô¤È¤·¤ÆÍѤ¤¤é¤ì¤ë¡£  */
134
135   Window focus_win;
136   /***en If non- @c NULL, used as the argument of @c XCreateIC following
137       @c XNPreeditAttributes.  */
138   /***oldja @c NULL¤Ç¤Ê¤±¤ì¤Ð¡¢ @c XCreateIC following ¤Î@c
139       XNPreeditAttributes ¤Ë³¤¯°ú¿ô¤È¤·¤ÆÍѤ¤¤é¤ì¤ë¡£  */
140
141   XVaNestedList preedit_attrs;
142   /***en If non-NULL, used as the argument of @c XCreateIC following
143       @c XNStatusAttributes.  */ 
144   /***oldja @c NULL¤Ç¤Ê¤±¤ì¤Ð¡¢ @c XCreateIC following ¤Î @c
145       XNStatusAttributes ¤Ë³¤¯°ú¿ô¤È¤·¤ÆÍѤ¤¤é¤ì¤ë¡£  */
146
147   XVaNestedList status_attrs;
148 } MInputXIMArgIC;
149 /*=*/
150
151 #ifdef __cplusplus
152 }
153 #endif
154
155 #endif /* not _M17N_X_H_ */
156
157 /*
158   Local Variables:
159   coding: euc-japan
160   End:
161 */