Blame src/m17n-X.h

Packit 741ade
/* m17n-X.h -- header file for the GUI API on X Windows.
Packit 741ade
   Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Packit 741ade
     National Institute of Advanced Industrial Science and Technology (AIST)
Packit 741ade
     Registration Number H15PRO112
Packit 741ade
Packit 741ade
   This file is part of the m17n library.
Packit 741ade
Packit 741ade
   The m17n library is free software; you can redistribute it and/or
Packit 741ade
   modify it under the terms of the GNU Lesser General Public License
Packit 741ade
   as published by the Free Software Foundation; either version 2.1 of
Packit 741ade
   the License, or (at your option) any later version.
Packit 741ade
Packit 741ade
   The m17n library is distributed in the hope that it will be useful,
Packit 741ade
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 741ade
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 741ade
   Lesser General Public License for more details.
Packit 741ade
Packit 741ade
   You should have received a copy of the GNU Lesser General Public
Packit 741ade
   License along with the m17n library; if not, write to the Free
Packit 741ade
   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Packit 741ade
   Boston, MA 02110-1301 USA.  */
Packit 741ade
Packit 741ade
#ifndef _M17N_X_H_
Packit 741ade
#define _M17N_X_H_
Packit 741ade
Packit 741ade
#include <X11/Xlib.h>
Packit 741ade
#include <X11/Xutil.h>
Packit 741ade
#include <X11/Xresource.h>
Packit 741ade
Packit 741ade
#ifdef __cplusplus
Packit 741ade
extern "C"
Packit 741ade
{
Packit 741ade
#endif
Packit 741ade
Packit 741ade
/* For inputting.  */
Packit 741ade
Packit 741ade
extern MInputDriver minput_xim_driver;
Packit 741ade
extern MSymbol Mxim;
Packit 741ade
Packit 741ade
/*** @ingroup m17nInputMethodWin */
Packit 741ade
/***en
Packit 741ade
    @brief Structure pointed to by the argument $ARG of the function minput_open_im ().
Packit 741ade
Packit 741ade
    The type #MInputXIMArgIM is the structure pointed to by the
Packit 741ade
    argument $ARG of the function minput_open_im () for the foreign
Packit 741ade
    input method of name #Mxim.  */
Packit 741ade
Packit 741ade
/***ja
Packit 741ade
    @brief 関数 minput_open_im () の引数 $ARG によって指される構造体.
Packit 741ade
Packit 741ade
    #MInputXIMArgIM 型は、関数 minput_open_im () が名前 #Mxim 
Packit 741ade
    を持つ外部入力メソッドを生成する際に引数 $ARG によって指される構造体である。  */
Packit 741ade
Packit 741ade
typedef struct
Packit 741ade
{
Packit 741ade
  /***en The meaning of the following four members are the same as
Packit 741ade
      arguments to XOpenIM ().  */
Packit 741ade
  /***ja 以下の4つのメンバの意味は、XOpenIM () の引数の意味と同じである.  */
Packit 741ade
Packit 741ade
  /***en Display of the client.  */
Packit 741ade
  /***ja クライアントのディスプレイ.  */
Packit 741ade
  Display *display;
Packit 741ade
Packit 741ade
  /***en Pointer to the X resource database.  */
Packit 741ade
  /***ja X リソース・データベースへのポインタ.  */
Packit 741ade
  XrmDatabase db;
Packit 741ade
Packit 741ade
  /***en Full class name of the application.  */
Packit 741ade
  /***ja アプリケーションの完全なクラス名.  */
Packit 741ade
  char *res_class;
Packit 741ade
Packit 741ade
  /***en Full resource name of the application.  */
Packit 741ade
  /***ja アプリケーションの完全なリソース名.  */
Packit 741ade
  char *res_name;
Packit 741ade
Packit 741ade
  /***en Locale name under which an XIM is opened.  */
Packit 741ade
  /***ja XIMがオープンされたロケール名.  */
Packit 741ade
  char *locale;
Packit 741ade
Packit 741ade
  /***en Arguments to XSetLocaleModifiers ().  */
Packit 741ade
  /***ja XSetLocaleModifiers () の引数.  */
Packit 741ade
  char *modifier_list;
Packit 741ade
} MInputXIMArgIM;
Packit 741ade
Packit 741ade
/*=*/
Packit 741ade
Packit 741ade
/*** @ingroup m17nInputMethodWin */
Packit 741ade
/***en
Packit 741ade
    @brief Structure pointed to by the argument $ARG of the function minput_create_ic ().
Packit 741ade
Packit 741ade
    The type #MInputXIMArgIC is the structure pointed to by the
Packit 741ade
    argument $ARG of the function minput_create_ic () for the foreign
Packit 741ade
    input method of name #Mxim.  */
Packit 741ade
Packit 741ade
/***ja
Packit 741ade
    @brief 関数 minput_create_ic () の引数 $ARG によって指される構造体.
Packit 741ade
Packit 741ade
    #MInputXIMArgIC 型は、関数 minput_create_ic () が名前 #Mxim 
Packit 741ade
    を持つ外部入力メソッド用に呼ばれる際に、引数 $ARG によって指される構造体である。 */
Packit 741ade
Packit 741ade
typedef struct
Packit 741ade
{
Packit 741ade
  /***en Used as the arguments of @c XCreateIC following @c
Packit 741ade
      XNInputStyle.  If this is zero, ( @c XIMPreeditNothing | @c
Packit 741ade
      XIMStatusNothing) is used, and \<preedit_attrs\> and
Packit 741ade
      \<status_attrs\> are set to @c NULL.  */
Packit 741ade
  /***ja @c XCreateIC の @c XNInputStyle に続く引数として用いられる。
Packit 741ade
      ゼロならば、 ( @c XIMPreeditNothing | @c XIMStatusNothing) が用
Packit 741ade
      いられ、 \<preedit_attrs\> と \<status_attrs\> は @c NULL 
Packit 741ade
      に設定される。 */
Packit 741ade
Packit 741ade
  XIMStyle input_style;
Packit 741ade
  /***en Used as the argument of @c XCreateIC following @c XNClientWindow.  */
Packit 741ade
  /***ja @c XCreateIC の @c XNClientWindow に続く引数として用いられる。  */
Packit 741ade
Packit 741ade
  Window client_win;
Packit 741ade
  /***en Used as the argument of @c XCreateIC following @c XNFocusWindow.  */
Packit 741ade
  /***ja @c XCreateIC の @c XNFocusWindow に続く引数として用いられる。  */
Packit 741ade
Packit 741ade
  Window focus_win;
Packit 741ade
  /***en If non- @c NULL, used as the argument of @c XCreateIC following
Packit 741ade
      @c XNPreeditAttributes.  */
Packit 741ade
  /***ja @c NULL でなければ、 @c XCreateIC following の@c
Packit 741ade
      XNPreeditAttributes に続く引数として用いられる。  */
Packit 741ade
Packit 741ade
  XVaNestedList preedit_attrs;
Packit 741ade
  /***en If non- @c NULL, used as the argument of @c XCreateIC following
Packit 741ade
      @c XNStatusAttributes.  */ 
Packit 741ade
  /***ja @c NULL でなければ、 @c XCreateIC following の @c
Packit 741ade
      XNStatusAttributes に続く引数として用いられる。  */
Packit 741ade
Packit 741ade
  XVaNestedList status_attrs;
Packit 741ade
} MInputXIMArgIC;
Packit 741ade
/*=*/
Packit 741ade
Packit 741ade
#ifdef __cplusplus
Packit 741ade
}
Packit 741ade
#endif
Packit 741ade
Packit 741ade
#endif /* not _M17N_X_H_ */
Packit 741ade
Packit 741ade
/*
Packit 741ade
  Local Variables:
Packit 741ade
  coding: euc-japan
Packit 741ade
  End:
Packit 741ade
*/