1 /* # skkinput (Simple Kana-Kanji Input) 2 * XimpP.h 3 * This file is part of skkinput. 4 * Copyright (C) 1997 5 * Takashi SAKAMOTO (sakamoto@yajima.kuis.kyoto-u.ac.jp) 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2, or (at your option) 10 * any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with skkinput; see the file COPYING. If not, write to 19 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 20 */ 21 #ifndef XimpP_h 22 #define XimpP_h 23 24 #include "Ximp.h" 25 #include "attrs.h" 26 #include <X11/CoreP.h> 27 28 enum { 29 WINDOW_TYPE_SEPARATE = 0, 30 WINDOW_TYPE_OVERTHESPOT, 31 WINDOW_TYPE_OFFTHESPOT, 32 } ; 33 34 enum { 35 EVENT_NO_SHORINASHI = 0, 36 EVENT_HA_INPUTONLY, 37 EVENT_HA_FOCUS_KARA, 38 } ; 39 40 typedef struct { 41 String localename ; 42 String servername ; 43 String conversionStartKey ; /* �Ѵ����Ϥΰ�����Ȥʤ륭����*/ 44 unsigned long icid, property_id ; 45 Boolean ximp_defaultServer ; 46 47 XtCallbackList setupInputWindowCallback ; 48 XtCallbackList serverCloseCallback ; 49 50 /* �Ѵ����Ѥ��륢�ȥ�����Ĥ�����¿���Ǥ��͡�*/ 51 Atom ximp_selection1, ximp_selection2 ; 52 Atom compound_text ; 53 Atom ximp_version, ximp_inputstyle, ximp_keys, ximp_servername ; 54 Atom ximp_serverversion, ximp_vendorname, ximp_extensions ; 55 Atom ximp_protocol, ximp_focus, ximp_preedit, ximp_status ; 56 Atom ximp_preeditfont, ximp_statusfont, ximp_extbackfront ; 57 58 /* �ġ� */ 59 struct ConvAttrsMesg camsg ; 60 61 XDestroyWindowEvent *destroyWindowEvent ; 62 63 int jisyo_dirty ; 64 unsigned int status_width ; 65 66 /* XIMP Protocol �ǽ�������Ƥ��륯�饤����ȤΥꥹ�ȡ�*/ 67 struct XimpClient *client_list ; 68 } XimpPart ; 69 70 /* �դ뤤���� */ 71 typedef struct _XimpRec { 72 CorePart core ; 73 XimpPart ximp ; 74 } XimpRec ; 75 76 /* New fields for the My widget class record */ 77 typedef struct { 78 int dummy ; 79 } XimpClassPart ; 80 81 /* �դ뤯�餹�� */ 82 typedef struct _XimpClassRec { 83 CoreClassPart core_class ; 84 XimpClassPart ximp_class ; 85 } XimpClassRec ; 86 87 /* ���餹�ݤ��� */ 88 extern XimpClassRec ximpClassRec ; 89 90 #endif 91