1 /* $XConsortium: XawImP.h,v 1.4 95/06/06 20:50:30 kaleb Exp $ */
4 * Copyright 1991 by OMRON Corporation
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of OMRON not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. OMRON makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
16 * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
17 * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
18 * OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
19 * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS ACTION,
21 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
24 * Author: Seiji Kuwari OMRON Corporation
26 * kuwa%omron.co.jp@uunet.uu.net
31 Copyright (c) 1994 X Consortium
33 Permission is hereby granted, free of charge, to any person obtaining a copy
34 of this software and associated documentation files (the "Software"), to deal
35 in the Software without restriction, including without limitation the rights
36 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
37 copies of the Software, and to permit persons to whom the Software is
38 furnished to do so, subject to the following conditions:
40 The above copyright notice and this permission notice shall be included in
41 all copies or substantial portions of the Software.
43 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
44 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
46 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
47 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
48 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
50 Except as contained in this notice, the name of the X Consortium shall not be
51 used in advertising or otherwise to promote the sale, use or other dealings
52 in this Software without prior written authorization from the X Consortium.
59 #define XtNinputMethod "inputMethod"
60 #define XtCInputMethod "InputMethod"
61 #define XtNpreeditType "preeditType"
62 #define XtCPreeditType "PreeditType"
63 #define XtNopenIm "openIm"
64 #define XtCOpenIm "OpenIm"
65 #define XtNsharedIc "sharedIc"
66 #define XtCSharedIc "SharedIc"
68 #include <X11/Xaw/Text.h>
70 #define CIICFocus (1 << 0)
71 #define CIFontSet (1 << 1)
74 #define CIBgPixmap (1 << 4)
75 #define CICursorP (1 << 5)
76 #define CILineS (1 << 6)
78 typedef struct _XawImPart
81 XrmResourceList resources
;
82 Cardinal num_resources
;
85 Dimension area_height
;
92 typedef struct _XawIcTablePart
98 unsigned long prev_flg
;
104 XawTextPosition cursor_position
;
105 unsigned long line_spacing
;
106 Boolean openic_error
;
107 struct _XawIcTablePart
*next
;
108 } XawIcTablePart
, *XawIcTableList
;
110 typedef struct _XawIcPart
113 Cardinal ic_list_num
;
114 XIMStyle input_style
;
116 XawIcTableList shared_ic_table
;
117 XawIcTableList current_ic_table
;
118 XawIcTableList ic_table
;
121 typedef struct _contextDataRec
127 typedef struct _contextErrDataRec
133 void _XawImResizeVendorShell(
134 #if NeedFunctionPrototypes
139 Dimension
_XawImGetShellHeight(
140 #if NeedFunctionPrototypes
146 #if NeedFunctionPrototypes
151 void _XawImInitialize(
152 #if NeedFunctionPrototypes
158 void _XawImReconnect(
159 #if NeedFunctionPrototypes
165 #if NeedFunctionPrototypes
170 void _XawImUnregister(
171 #if NeedFunctionPrototypes
176 void _XawImSetValues(
177 #if NeedFunctionPrototypes
180 Cardinal
/* num_args */
184 /* DON'T USE THIS FUNCTION -- it's going away in the next release */
185 void _XawImVASetValues(
186 #if NeedVarargsPrototypes
192 void _XawImSetFocusValues(
193 #if NeedFunctionPrototypes
196 Cardinal
/* num_args */
200 /* DON'T USE THIS FUNCTION -- it's going away in the next release */
201 void _XawImVASetFocusValues(
202 #if NeedVarargsPrototypes
208 void _XawImUnsetFocus(
209 #if NeedFunctionPrototypes
214 int _XawImWcLookupString(
215 #if NeedFunctionPrototypes
217 XKeyPressedEvent
*, /* event */
218 wchar_t*, /* buffer_return */
219 int, /* bytes_buffer */
220 KeySym
*, /* keysym_return */
221 Status
* /* status return */
225 int _XawImGetImAreaHeight(
226 #if NeedFunctionPrototypes
231 void _XawImCallVendorShellExtResize(
232 #if NeedFunctionPrototypes
238 #if NeedFunctionPrototypes
244 #endif /* _XawImP_h */