1450N/A/* $XConsortium: XawImP.h,v 1.4 95/06/06 20:50:30 kaleb Exp $ */
1450N/A
1450N/A/*
1450N/A * Copyright 1991 by OMRON Corporation
1450N/A *
1450N/A * Permission to use, copy, modify, distribute, and sell this software and its
1450N/A * documentation for any purpose is hereby granted without fee, provided that
1450N/A * the above copyright notice appear in all copies and that both that
1450N/A * copyright notice and this permission notice appear in supporting
1450N/A * documentation, and that the name of OMRON not be used in advertising or
1450N/A * publicity pertaining to distribution of the software without specific,
1450N/A * written prior permission. OMRON makes no representations about the
1450N/A * suitability of this software for any purpose. It is provided "as is"
1450N/A * without express or implied warranty.
1450N/A *
1450N/A * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
1450N/A * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
1450N/A * OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
1450N/A * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
1450N/A * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS ACTION,
1450N/A * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
1450N/A * SOFTWARE.
1450N/A *
1450N/A * Author: Seiji Kuwari OMRON Corporation
1450N/A * kuwa@omron.co.jp
1450N/A * kuwa%omron.co.jp@uunet.uu.net
1450N/A */
1450N/A
1450N/A/*
1450N/A
1450N/ACopyright (c) 1994 X Consortium
1450N/A
1450N/APermission is hereby granted, free of charge, to any person obtaining a copy
1450N/Aof this software and associated documentation files (the "Software"), to deal
1450N/Ain the Software without restriction, including without limitation the rights
1450N/Ato use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1450N/Acopies of the Software, and to permit persons to whom the Software is
1450N/Afurnished to do so, subject to the following conditions:
1450N/A
1450N/AThe above copyright notice and this permission notice shall be included in
1450N/Aall copies or substantial portions of the Software.
1450N/A
1450N/ATHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1450N/AIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1450N/AFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1450N/AX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
1450N/AAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1450N/ACONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1450N/A
1450N/AExcept as contained in this notice, the name of the X Consortium shall not be
1450N/Aused in advertising or otherwise to promote the sale, use or other dealings
1450N/Ain this Software without prior written authorization from the X Consortium.
1450N/A
1450N/A*/
1450N/A
1450N/A#ifndef _XawImP_h
1450N/A#define _XawImP_h
1450N/A
1450N/A#define XtNinputMethod "inputMethod"
1450N/A#define XtCInputMethod "InputMethod"
1450N/A#define XtNpreeditType "preeditType"
1450N/A#define XtCPreeditType "PreeditType"
1450N/A#define XtNopenIm "openIm"
1450N/A#define XtCOpenIm "OpenIm"
1450N/A#define XtNsharedIc "sharedIc"
1450N/A#define XtCSharedIc "SharedIc"
1450N/A
1450N/A#include <X11/Xaw/Text.h>
1450N/A
1450N/A#define CIICFocus (1 << 0)
1450N/A#define CIFontSet (1 << 1)
1450N/A#define CIFg (1 << 2)
1450N/A#define CIBg (1 << 3)
1450N/A#define CIBgPixmap (1 << 4)
1450N/A#define CICursorP (1 << 5)
1450N/A#define CILineS (1 << 6)
1450N/A
1450N/Atypedef struct _XawImPart
1450N/A{
1450N/A XIM xim;
1450N/A XrmResourceList resources;
1450N/A Cardinal num_resources;
1450N/A Boolean open_im;
1450N/A Boolean initialized;
1450N/A Dimension area_height;
1450N/A String input_method;
1450N/A String preedit_type;
1450N/A String *im_list;
1450N/A Cardinal im_list_num;
1450N/A} XawImPart;
1450N/A
1450N/Atypedef struct _XawIcTablePart
1450N/A{
1450N/A Widget widget;
1450N/A XIC xic;
1450N/A XIMStyle input_style;
1450N/A unsigned long flg;
1450N/A unsigned long prev_flg;
1450N/A Boolean ic_focused;
1450N/A XFontSet font_set;
1450N/A Pixel foreground;
1450N/A Pixel background;
1450N/A Pixmap bg_pixmap;
1450N/A XawTextPosition cursor_position;
1450N/A unsigned long line_spacing;
1450N/A Boolean openic_error;
1450N/A struct _XawIcTablePart *next;
1450N/A} XawIcTablePart, *XawIcTableList;
1450N/A
1450N/Atypedef struct _XawIcPart
1450N/A{
1450N/A String *ic_list;
1450N/A Cardinal ic_list_num;
1450N/A XIMStyle input_style;
1450N/A Boolean shared_ic;
1450N/A XawIcTableList shared_ic_table;
1450N/A XawIcTableList current_ic_table;
1450N/A XawIcTableList ic_table;
1450N/A} XawIcPart;
1450N/A
1450N/Atypedef struct _contextDataRec
1450N/A{
1450N/A Widget parent;
1450N/A Widget ve;
1450N/A} contextDataRec;
1450N/A
1450N/Atypedef struct _contextErrDataRec
1450N/A{
1450N/A Widget widget;
1450N/A XIM xim;
1450N/A} contextErrDataRec;
1450N/A
1450N/Avoid _XawImResizeVendorShell(
1450N/A#if NeedFunctionPrototypes
1450N/A Widget /* w */
1450N/A#endif
1450N/A);
1450N/A
1450N/ADimension _XawImGetShellHeight(
1450N/A#if NeedFunctionPrototypes
1450N/A Widget /* w */
1450N/A#endif
1450N/A);
1450N/A
1450N/Avoid _XawImRealize(
1450N/A#if NeedFunctionPrototypes
1450N/A Widget /* w */
1450N/A#endif
1450N/A);
1450N/A
1450N/Avoid _XawImInitialize(
1450N/A#if NeedFunctionPrototypes
1450N/A Widget, /* w */
1450N/A Widget /* ext */
1450N/A#endif
1450N/A);
1450N/A
1450N/Avoid _XawImReconnect(
1450N/A#if NeedFunctionPrototypes
1450N/A Widget /* w */
1450N/A#endif
1450N/A);
1450N/A
1450N/Avoid _XawImRegister(
1450N/A#if NeedFunctionPrototypes
1450N/A Widget /* w */
1450N/A#endif
1450N/A);
1450N/A
1450N/Avoid _XawImUnregister(
1450N/A#if NeedFunctionPrototypes
1450N/A Widget /* w */
1450N/A#endif
1450N/A);
void _XawImSetValues(
#if NeedFunctionPrototypes
Widget, /* w */
ArgList, /* args */
Cardinal /* num_args */
#endif
);
/* DON'T USE THIS FUNCTION -- it's going away in the next release */
void _XawImVASetValues(
#if NeedVarargsPrototypes
Widget, /* w */
...
#endif
);
void _XawImSetFocusValues(
#if NeedFunctionPrototypes
Widget, /* w */
ArgList, /* args */
Cardinal /* num_args */
#endif
);
/* DON'T USE THIS FUNCTION -- it's going away in the next release */
void _XawImVASetFocusValues(
#if NeedVarargsPrototypes
Widget, /* w */
...
#endif
);
void _XawImUnsetFocus(
#if NeedFunctionPrototypes
Widget /* w */
#endif
);
int _XawImWcLookupString(
#if NeedFunctionPrototypes
Widget, /* w */
XKeyPressedEvent*, /* event */
wchar_t*, /* buffer_return */
int, /* bytes_buffer */
KeySym*, /* keysym_return */
Status* /* status return */
#endif
);
int _XawImGetImAreaHeight(
#if NeedFunctionPrototypes
Widget /* w */
#endif
);
void _XawImCallVendorShellExtResize(
#if NeedFunctionPrototypes
Widget /* w */
#endif
);
void _XawImDestroy(
#if NeedFunctionPrototypes
Widget, /* w */
Widget /* ext */
#endif
);
#endif /* _XawImP_h */