gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / x11 / libXaw5 / src / XawImP.h
blobe90ec138ae613bf5c57fb31bc8c239acb7ebb31b
1 /* $XConsortium: XawImP.h,v 1.4 95/06/06 20:50:30 kaleb Exp $ */
3 /*
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
22 * SOFTWARE.
24 * Author: Seiji Kuwari OMRON Corporation
25 * kuwa@omron.co.jp
26 * kuwa%omron.co.jp@uunet.uu.net
27 */
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.
56 #ifndef _XawImP_h
57 #define _XawImP_h
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)
72 #define CIFg (1 << 2)
73 #define CIBg (1 << 3)
74 #define CIBgPixmap (1 << 4)
75 #define CICursorP (1 << 5)
76 #define CILineS (1 << 6)
78 typedef struct _XawImPart
80 XIM xim;
81 XrmResourceList resources;
82 Cardinal num_resources;
83 Boolean open_im;
84 Boolean initialized;
85 Dimension area_height;
86 String input_method;
87 String preedit_type;
88 String *im_list;
89 Cardinal im_list_num;
90 } XawImPart;
92 typedef struct _XawIcTablePart
94 Widget widget;
95 XIC xic;
96 XIMStyle input_style;
97 unsigned long flg;
98 unsigned long prev_flg;
99 Boolean ic_focused;
100 XFontSet font_set;
101 Pixel foreground;
102 Pixel background;
103 Pixmap bg_pixmap;
104 XawTextPosition cursor_position;
105 unsigned long line_spacing;
106 Boolean openic_error;
107 struct _XawIcTablePart *next;
108 } XawIcTablePart, *XawIcTableList;
110 typedef struct _XawIcPart
112 String *ic_list;
113 Cardinal ic_list_num;
114 XIMStyle input_style;
115 Boolean shared_ic;
116 XawIcTableList shared_ic_table;
117 XawIcTableList current_ic_table;
118 XawIcTableList ic_table;
119 } XawIcPart;
121 typedef struct _contextDataRec
123 Widget parent;
124 Widget ve;
125 } contextDataRec;
127 typedef struct _contextErrDataRec
129 Widget widget;
130 XIM xim;
131 } contextErrDataRec;
133 void _XawImResizeVendorShell(
134 #if NeedFunctionPrototypes
135 Widget /* w */
136 #endif
139 Dimension _XawImGetShellHeight(
140 #if NeedFunctionPrototypes
141 Widget /* w */
142 #endif
145 void _XawImRealize(
146 #if NeedFunctionPrototypes
147 Widget /* w */
148 #endif
151 void _XawImInitialize(
152 #if NeedFunctionPrototypes
153 Widget, /* w */
154 Widget /* ext */
155 #endif
158 void _XawImReconnect(
159 #if NeedFunctionPrototypes
160 Widget /* w */
161 #endif
164 void _XawImRegister(
165 #if NeedFunctionPrototypes
166 Widget /* w */
167 #endif
170 void _XawImUnregister(
171 #if NeedFunctionPrototypes
172 Widget /* w */
173 #endif
176 void _XawImSetValues(
177 #if NeedFunctionPrototypes
178 Widget, /* w */
179 ArgList, /* args */
180 Cardinal /* num_args */
181 #endif
184 /* DON'T USE THIS FUNCTION -- it's going away in the next release */
185 void _XawImVASetValues(
186 #if NeedVarargsPrototypes
187 Widget, /* w */
188 ...
189 #endif
192 void _XawImSetFocusValues(
193 #if NeedFunctionPrototypes
194 Widget, /* w */
195 ArgList, /* args */
196 Cardinal /* num_args */
197 #endif
200 /* DON'T USE THIS FUNCTION -- it's going away in the next release */
201 void _XawImVASetFocusValues(
202 #if NeedVarargsPrototypes
203 Widget, /* w */
204 ...
205 #endif
208 void _XawImUnsetFocus(
209 #if NeedFunctionPrototypes
210 Widget /* w */
211 #endif
214 int _XawImWcLookupString(
215 #if NeedFunctionPrototypes
216 Widget, /* w */
217 XKeyPressedEvent*, /* event */
218 wchar_t*, /* buffer_return */
219 int, /* bytes_buffer */
220 KeySym*, /* keysym_return */
221 Status* /* status return */
222 #endif
225 int _XawImGetImAreaHeight(
226 #if NeedFunctionPrototypes
227 Widget /* w */
228 #endif
231 void _XawImCallVendorShellExtResize(
232 #if NeedFunctionPrototypes
233 Widget /* w */
234 #endif
237 void _XawImDestroy(
238 #if NeedFunctionPrototypes
239 Widget, /* w */
240 Widget /* ext */
241 #endif
244 #endif /* _XawImP_h */