1 /* m17n-X.h -- header file for the GUI API on X Windows.
2    Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
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., 51 Franklin Street, Fifth Floor,
21    Boston, MA 02110-1301 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 inputting.  */
36 
37 extern MInputDriver minput_xim_driver;
38 extern MSymbol Mxim;
39 
40 /*** @ingroup m17nInputMethodWin */
41 /***en
42     @brief Structure pointed to by the argument $ARG of the function minput_open_im ().
43 
44     The type #MInputXIMArgIM is the structure pointed to by the
45     argument $ARG of the function minput_open_im () for the foreign
46     input method of name #Mxim.  */
47 
48 /***ja
49     @brief �ؿ� minput_open_im () �ΰ��� $ARG �ˤ�äƻؤ���빽¤��.
50 
51     #MInputXIMArgIM ���ϡ��ؿ� minput_open_im () ��̾�� #Mxim
52     ����ij������ϥ᥽�åɤ���������ݤ˰��� $ARG �ˤ�äƻؤ���빽¤�ΤǤ��롣  */
53 
54 typedef struct
55 {
56   /***en The meaning of the following four members are the same as
57       arguments to XOpenIM ().  */
58   /***ja �ʲ��Σ��ĤΥ��Фΰ�̣�ϡ�XOpenIM () �ΰ����ΰ�̣��Ʊ���Ǥ���.  */
59 
60   /***en Display of the client.  */
61   /***ja ���饤����ȤΥǥ����ץ쥤.  */
62   Display *display;
63 
64   /***en Pointer to the X resource database.  */
65   /***ja X �꥽�������ǡ����١����ؤΥݥ���.  */
66   XrmDatabase db;
67 
68   /***en Full class name of the application.  */
69   /***ja ���ץꥱ�������δ����ʥ��饹̾.  */
70   char *res_class;
71 
72   /***en Full resource name of the application.  */
73   /***ja ���ץꥱ�������δ����ʥ꥽����̾.  */
74   char *res_name;
75 
76   /***en Locale name under which an XIM is opened.  */
77   /***ja XIM�������ץ��줿������̾.  */
78   char *locale;
79 
80   /***en Arguments to XSetLocaleModifiers ().  */
81   /***ja XSetLocaleModifiers () �ΰ���.  */
82   char *modifier_list;
83 } MInputXIMArgIM;
84 
85 /*=*/
86 
87 /*** @ingroup m17nInputMethodWin */
88 /***en
89     @brief Structure pointed to by the argument $ARG of the function minput_create_ic ().
90 
91     The type #MInputXIMArgIC is the structure pointed to by the
92     argument $ARG of the function minput_create_ic () for the foreign
93     input method of name #Mxim.  */
94 
95 /***ja
96     @brief �ؿ� minput_create_ic () �ΰ��� $ARG �ˤ�äƻؤ���빽¤��.
97 
98     #MInputXIMArgIC ���ϡ��ؿ� minput_create_ic () ��̾�� #Mxim
99     ����ij������ϥ᥽�å��Ѥ˸ƤФ��ݤˡ����� $ARG �ˤ�äƻؤ���빽¤�ΤǤ��롣 */
100 
101 typedef struct
102 {
103   /***en Used as the arguments of @c XCreateIC following @c
104       XNInputStyle.  If this is zero, ( @c XIMPreeditNothing | @c
105       XIMStatusNothing) is used, and \<preedit_attrs\> and
106       \<status_attrs\> are set to @c NULL.  */
107   /***ja @c XCreateIC �� @c XNInputStyle ��³�������Ȥ����Ѥ����롣
108       ����ʤ�С� ( @c XIMPreeditNothing | @c XIMStatusNothing) ����
109       ����졢 \<preedit_attrs\> �� \<status_attrs\> �� @c NULL
110       �����ꤵ��롣 */
111 
112   XIMStyle input_style;
113   /***en Used as the argument of @c XCreateIC following @c XNClientWindow.  */
114   /***ja @c XCreateIC �� @c XNClientWindow ��³�������Ȥ����Ѥ����롣  */
115 
116   Window client_win;
117   /***en Used as the argument of @c XCreateIC following @c XNFocusWindow.  */
118   /***ja @c XCreateIC �� @c XNFocusWindow ��³�������Ȥ����Ѥ����롣  */
119 
120   Window focus_win;
121   /***en If non- @c NULL, used as the argument of @c XCreateIC following
122       @c XNPreeditAttributes.  */
123   /***ja @c NULL �Ǥʤ���С� @c XCreateIC following ��@c
124       XNPreeditAttributes ��³�������Ȥ����Ѥ����롣  */
125 
126   XVaNestedList preedit_attrs;
127   /***en If non- @c NULL, used as the argument of @c XCreateIC following
128       @c XNStatusAttributes.  */
129   /***ja @c NULL �Ǥʤ���С� @c XCreateIC following �� @c
130       XNStatusAttributes ��³�������Ȥ����Ѥ����롣  */
131 
132   XVaNestedList status_attrs;
133 } MInputXIMArgIC;
134 /*=*/
135 
136 #ifdef __cplusplus
137 }
138 #endif
139 
140 #endif /* not _M17N_X_H_ */
141 
142 /*
143   Local Variables:
144   coding: euc-japan
145   End:
146 */
147