Main Page   Modules   Data Structures   Globals   Appendix  

m17n-X.h

Go to the documentation of this file.
00001 /* m17n-X.h -- header file for the GUI API on X Windows.
00002    Copyright (C) 2003, 2004
00003      National Institute of Advanced Industrial Science and Technology (AIST)
00004      Registration Number H15PRO112
00005 
00006    This file is part of the m17n library.
00007 
00008    The m17n library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Lesser General Public License
00010    as published by the Free Software Foundation; either version 2.1 of
00011    the License, or (at your option) any later version.
00012 
00013    The m17n library is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Lesser General Public License for more details.
00017 
00018    You should have received a copy of the GNU Lesser General Public
00019    License along with the m17n library; if not, write to the Free
00020    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00021    02111-1307, USA.  */
00022 
00023 #ifndef _M17N_X_H_
00024 #define _M17N_X_H_
00025 
00026 #include <X11/Xlib.h>
00027 #include <X11/Xutil.h>
00028 #include <X11/Xresource.h>
00029 
00030 #ifdef __cplusplus
00031 extern "C"
00032 {
00033 #endif
00034 
00035 /* For drawing.  */
00036 
00037 extern MSymbol Mdisplay;
00038 extern MSymbol Mscreen;
00039 extern MSymbol Mdrawable;
00040 extern MSymbol Mwidget;
00041 extern MSymbol Mdepth;
00042 extern MSymbol Mcolormap;
00043 
00044 /* For inputting.  */
00045 
00046 extern MInputDriver minput_xim_driver;
00047 extern MSymbol Mxim;
00048 
00049 /*** @ingroup m17nInputMethodWin */
00050 /***en
00051     @brief Structure pointed to by the argument $ARG of the function
00052     input_open_im ().
00053 
00054     The type #MInputXIMArgIM is the structure pointed to by the
00055     argument $ARG of the function minput_open_im () for the foreign
00056     input method of name #Mxim.  */
00057 
00058 /***ja
00059     @brief 関数 minput_open_im () の引数 $ARG によって指される構造体
00060 
00061 
00062     #MInputXIMArgIM 型は、関数 minput_open_im () が名前 #Mxim を持
00063     つ外部入力メソッドを生成する際に引数 $ARG によって指される構造体で
00064     ある。  */
00065 
00066 typedef struct
00067 {
00068   /***en The meaning of the following four members are the same as
00069       arguments to XOpenIM ().  */
00070   /***ja 以下の4つのメンバの意味は、XOpenIM () の引数の意味と同じであ
00071       る。  */
00072 
00073   /***en Display of the client.  */
00074   /***ja クライアントのディスプレイ  */
00075   Display *display;
00076 
00077   /***en Pointer to the X resource database.  */
00078   /***ja X リソース・データベースへのポインタ  */
00079   XrmDatabase db;
00080 
00081   /***en Full class name of the application.  */
00082   /***ja アプリケーションの完全なクラス名  */
00083   char *res_class;
00084 
00085   /***en Full resource name of the application.  */
00086   /***ja アプリケーションの完全なリソース名  */
00087   char *res_name;
00088 
00089   /***en Locale name under which an XIM is opened.  */
00090   /***ja XIMがオープンされたロケール名  */
00091   char *locale;
00092 
00093   /***en Arguments to XSetLocaleModifiers ().  */
00094   /***ja XSetLocaleModifiers () の引数  */
00095   char *modifier_list;
00096 } MInputXIMArgIM;
00097   /*=*/
00098 
00099 /*** @ingroup m17nInputMethodWin */
00100 /***en
00101     @brief Structure pointed to by the argument $ARG of the function
00102     minput_create_ic.
00103 
00104     The type #MInputXIMArgIC is the structure pointed to by the
00105     argument $ARG of the function minput_create_ic () for the foreign
00106     input method of name #Mxim.  */
00107 
00108 /***ja
00109     @brief 関数 minput_create_ic () の引数 $ARG によって指される構造体
00110 
00111     #MInputXIMArgIC 型は、関数 minput_create_ic () が名前 #Mxim を
00112     持つ外部入力メソッド用に呼ばれる際に、引数 $ARG によって指される構
00113     造体である。 */
00114 
00115 typedef struct
00116 {
00117   /***en Used as the arguments of @c XCreateIC following @c
00118       XNInputStyle.  If this is zero, ( @c XIMPreeditNothing | @c
00119       XIMStatusNothing) is used, and <preedit_attrs> and
00120       <status_attrs> are set to @c NULL.  */
00121   /***ja @c XCreateIC の @c XNInputStyle に続く引数として用いられる。
00122       ゼロならば、 ( @c XIMPreeditNothing | @c XIMStatusNothing) が用
00123       いられ、 <preedit_attrs> と <status_attrs> は @c NULL に設定され
00124       る。 */
00125 
00126   XIMStyle input_style;
00127   /***en Used as the argument of @c XCreateIC following @c XNClientWindow.  */
00128   /***ja @c XCreateIC の @c XNClientWindow に続く引数として用いられる。  */
00129 
00130 
00131   Window client_win;
00132   /***en Used as the argument of @c XCreateIC following @c XNFocusWindow.  */
00133   /***ja @c XCreateIC の @c XNFocusWindow に続く引数として用いられる。  */
00134 
00135   Window focus_win;
00136   /***en If non- @c NULL, used as the argument of @c XCreateIC following
00137       @c XNPreeditAttributes.  */
00138   /***ja @c NULLでなければ、 @c XCreateIC following の@c
00139       XNPreeditAttributes に続く引数として用いられる。  */
00140 
00141   XVaNestedList preedit_attrs;
00142   /***en If non-NULL, used as the argument of @c XCreateIC following
00143       @c XNStatusAttributes.  */ 
00144   /***ja @c NULLでなければ、 @c XCreateIC following の @c
00145       XNStatusAttributes に続く引数として用いられる。  */
00146 
00147   XVaNestedList status_attrs;
00148 } MInputXIMArgIC;
00149 /*=*/
00150 
00151 #ifdef __cplusplus
00152 }
00153 #endif
00154 
00155 #endif /* not _M17N_X_H_ */
00156 
00157 /*
00158   Local Variables:
00159   coding: euc-japan
00160   End:
00161 */

Top of this page

Main Page   Modules   Data Structures   Globals   Appendix  

mulemark mule-aist@m17n.org