Mercurial > kinput2.yaz
comparison include/InputConvP.h @ 0:92745d501b9a
initial import from kinput2-v3.1
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 04:44:30 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:92745d501b9a |
---|---|
1 /* $Id: InputConvP.h,v 1.15 1999/01/13 08:41:55 ishisone Exp $ */ | |
2 /* | |
3 * Copyright (c) 1990 Software Research Associates, Inc. | |
4 * | |
5 * Permission to use, copy, modify, and distribute this software and its | |
6 * documentation for any purpose and without fee is hereby granted, provided | |
7 * that the above copyright notice appear in all copies and that both that | |
8 * copyright notice and this permission notice appear in supporting | |
9 * documentation, and that the name of Software Research Associates not be | |
10 * used in advertising or publicity pertaining to distribution of the | |
11 * software without specific, written prior permission. Software Research | |
12 * Associates makes no representations about the suitability of this software | |
13 * for any purpose. It is provided "as is" without express or implied | |
14 * warranty. | |
15 * | |
16 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan | |
17 */ | |
18 | |
19 #ifndef _InputConvP_h | |
20 #define _InputConvP_h | |
21 | |
22 #include <X11/ObjectP.h> | |
23 #include "InputConv.h" | |
24 | |
25 typedef struct { | |
26 int (*InputEvent)(); | |
27 ICString *(*GetMode)(); | |
28 int (*CursorPos)(); | |
29 int (*NumSegments)(); | |
30 ICString *(*GetSegment)(); | |
31 int (*CompareSegment)(); | |
32 ICString *(*GetItemList)(); | |
33 int (*SelectItem)(); | |
34 int (*GetConvertedString)(); | |
35 int (*ClearConversion)(); | |
36 ICString *(*GetAuxSegments)(); | |
37 Boolean SupportMultipleObjects; | |
38 int (*GetTriggerKeys)(); | |
39 int num_trigger_keys; | |
40 ICTriggerKey *trigger_keys; | |
41 int (*GetPreeditString)(); | |
42 int (*GetStatusString)(); | |
43 /* private state */ | |
44 Boolean NoMoreObjects; | |
45 } InputConvClassPart; | |
46 | |
47 typedef struct _InputConvClassRec { | |
48 ObjectClassPart object_class; | |
49 InputConvClassPart inputConv_class; | |
50 } InputConvClassRec; | |
51 | |
52 extern InputConvClassRec inputConvClassRec; | |
53 | |
54 typedef struct { | |
55 /* resources */ | |
56 XtCallbackList selectioncallback; | |
57 XtCallbackList modechangecallback; | |
58 XtCallbackList textchangecallback; | |
59 XtCallbackList endcallback; | |
60 XtCallbackList fixcallback; | |
61 XtCallbackList auxcallback; | |
62 WidgetClass displayObjClass; | |
63 } InputConvPart; | |
64 | |
65 typedef struct _InputConvRec { | |
66 ObjectPart object; | |
67 InputConvPart inputConv; | |
68 } InputConvRec; | |
69 | |
70 #define XtInheritInputEvent (int(*)())_XtInherit | |
71 #define XtInheritGetMode (ICString*(*)())_XtInherit | |
72 #define XtInheritCursorPos (int(*)())_XtInherit | |
73 #define XtInheritNumSegments (int(*)())_XtInherit | |
74 #define XtInheritGetSegment (ICString*(*)())_XtInherit | |
75 #define XtInheritCompareSegment (int(*)())_XtInherit | |
76 #define XtInheritGetItemList (ICString*(*)())_XtInherit | |
77 #define XtInheritSelectItem (int(*)())_XtInherit | |
78 #define XtInheritGetConvertedString (int(*)())_XtInherit | |
79 #define XtInheritClearConversion (int(*)())_XtInherit | |
80 #define XtInheritGetAuxSegments (ICString*(*)())_XtInherit | |
81 #define XtInheritGetTriggerKeys (int(*)())_XtInherit | |
82 #define XtInheritGetPreeditString (int(*)())_XtInherit | |
83 #define XtInheritGetStatusString (int(*)())_XtInherit | |
84 | |
85 #endif |