XawImP.h

Go to the documentation of this file.
00001 /* $XConsortium: XawImP.h,v 1.4 95/06/06 20:50:30 kaleb Exp $ */
00002 
00003 /*
00004  * Copyright 1991 by OMRON Corporation
00005  *
00006  * Permission to use, copy, modify, distribute, and sell this software and its
00007  * documentation for any purpose is hereby granted without fee, provided that
00008  * the above copyright notice appear in all copies and that both that
00009  * copyright notice and this permission notice appear in supporting
00010  * documentation, and that the name of OMRON not be used in advertising or
00011  * publicity pertaining to distribution of the software without specific,
00012  * written prior permission.  OMRON makes no representations about the
00013  * suitability of this software for any purpose.  It is provided "as is"
00014  * without express or implied warranty.
00015  *
00016  * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
00017  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
00018  * OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
00019  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
00020  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS ACTION,
00021  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
00022  * SOFTWARE. 
00023  *
00024  *      Author: Seiji Kuwari    OMRON Corporation
00025  *                              kuwa@omron.co.jp
00026  *                              kuwa%omron.co.jp@uunet.uu.net
00027  */                             
00028 
00029 /*
00030 
00031 Copyright (c) 1994  X Consortium
00032 
00033 Permission is hereby granted, free of charge, to any person obtaining a copy
00034 of this software and associated documentation files (the "Software"), to deal
00035 in the Software without restriction, including without limitation the rights
00036 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00037 copies of the Software, and to permit persons to whom the Software is
00038 furnished to do so, subject to the following conditions:
00039 
00040 The above copyright notice and this permission notice shall be included in
00041 all copies or substantial portions of the Software.
00042 
00043 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00044 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00045 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00046 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00047 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00048 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00049 
00050 Except as contained in this notice, the name of the X Consortium shall not be
00051 used in advertising or otherwise to promote the sale, use or other dealings
00052 in this Software without prior written authorization from the X Consortium.
00053 
00054 */
00055 
00056 #ifndef _XawImP_h
00057 #define _XawImP_h
00058 
00059 #define XtNinputMethod          "inputMethod"
00060 #define XtCInputMethod          "InputMethod"
00061 #define XtNpreeditType          "preeditType"
00062 #define XtCPreeditType          "PreeditType"
00063 #define XtNopenIm               "openIm"
00064 #define XtCOpenIm               "OpenIm"
00065 #define XtNsharedIc             "sharedIc"
00066 #define XtCSharedIc             "SharedIc"
00067 
00068 #include <X11/Xaw3d/Text.h>
00069 
00070 #define CIICFocus       (1 << 0)
00071 #define CIFontSet       (1 << 1)
00072 #define CIFg            (1 << 2)
00073 #define CIBg            (1 << 3)
00074 #define CIBgPixmap      (1 << 4)
00075 #define CICursorP       (1 << 5)
00076 #define CILineS         (1 << 6)
00077 
00078 typedef struct _XawImPart
00079 {
00080     XIM                 xim;
00081     XrmResourceList     resources;
00082     Cardinal            num_resources;
00083     Boolean             open_im;
00084     Boolean             initialized;
00085     Dimension           area_height;
00086     String              input_method;
00087     String              preedit_type;
00088 } XawImPart;
00089 
00090 typedef struct _XawIcTablePart
00091 {
00092     Widget              widget;
00093     XIC                 xic;
00094     XIMStyle            input_style;
00095     unsigned long       flg;
00096     unsigned long       prev_flg;
00097     Boolean             ic_focused;
00098     XFontSet            font_set;
00099     Pixel               foreground;
00100     Pixel               background;
00101     Pixmap              bg_pixmap;
00102     XawTextPosition     cursor_position;
00103     unsigned long       line_spacing;
00104     Boolean             openic_error;
00105     struct _XawIcTablePart *next;
00106 } XawIcTablePart, *XawIcTableList;
00107 
00108 typedef struct _XawIcPart
00109 {
00110     XIMStyle            input_style;
00111     Boolean             shared_ic;
00112     XawIcTableList      shared_ic_table;
00113     XawIcTableList      current_ic_table;
00114     XawIcTableList      ic_table;
00115 } XawIcPart;
00116 
00117 typedef struct _contextDataRec
00118 {
00119     Widget              parent;
00120     Widget              ve;
00121 } contextDataRec;
00122 
00123 typedef struct _contextErrDataRec
00124 {
00125     Widget              widget;
00126     XIM                 xim;
00127 } contextErrDataRec;
00128 
00129 void _XawImResizeVendorShell( 
00130 #if NeedFunctionPrototypes
00131     Widget /* w */
00132 #endif
00133 );
00134 
00135 Dimension _XawImGetShellHeight( 
00136 #if NeedFunctionPrototypes
00137     Widget /* w */
00138 #endif
00139 );
00140 
00141 void _XawImRealize( 
00142 #if NeedFunctionPrototypes
00143     Widget /* w */
00144 #endif
00145 );
00146 
00147 void _XawImInitialize( 
00148 #if NeedFunctionPrototypes
00149     Widget, /* w */
00150     Widget  /* ext */
00151 #endif
00152 );
00153 
00154 void _XawImReconnect( 
00155 #if NeedFunctionPrototypes
00156     Widget  /* w */
00157 #endif
00158 );
00159 
00160 void _XawImRegister( 
00161 #if NeedFunctionPrototypes
00162     Widget  /* w */
00163 #endif
00164 );
00165 
00166 void _XawImUnregister( 
00167 #if NeedFunctionPrototypes
00168     Widget  /* w */
00169 #endif
00170 );
00171 
00172 void _XawImSetValues( 
00173 #if NeedFunctionPrototypes
00174     Widget,  /* w */
00175     ArgList, /* args */
00176     Cardinal /* num_args */
00177 #endif
00178 );
00179 
00180 /* DON'T USE THIS FUNCTION -- it's going away in the next release */
00181 void _XawImVASetValues( 
00182 #if NeedVarargsPrototypes
00183     Widget,  /* w */
00184     ... 
00185 #endif
00186 );
00187 
00188 void _XawImSetFocusValues( 
00189 #if NeedFunctionPrototypes
00190     Widget,  /* w */
00191     ArgList, /* args */
00192     Cardinal /* num_args */
00193 #endif
00194 );
00195 
00196 /* DON'T USE THIS FUNCTION -- it's going away in the next release */
00197 void _XawImVASetFocusValues( 
00198 #if NeedVarargsPrototypes
00199     Widget,  /* w */
00200     ... 
00201 #endif
00202 );
00203 
00204 void _XawImUnsetFocus( 
00205 #if NeedFunctionPrototypes
00206     Widget  /* w */
00207 #endif
00208 );
00209 
00210 int  _XawImWcLookupString( 
00211 #if NeedFunctionPrototypes
00212     Widget,   /* w */
00213     XKeyPressedEvent*, /* event */
00214     wchar_t*, /* buffer_return */
00215     int,      /* bytes_buffer */
00216     KeySym*,  /* keysym_return */
00217     Status*   /* status return */
00218 #endif
00219 );
00220 
00221 int  _XawImGetImAreaHeight( 
00222 #if NeedFunctionPrototypes
00223     Widget  /* w */
00224 #endif
00225 );
00226 
00227 void _XawImCallVendorShellExtResize( 
00228 #if NeedFunctionPrototypes
00229     Widget  /* w */
00230 #endif
00231 );
00232 
00233 void _XawImDestroy( 
00234 #if NeedFunctionPrototypes
00235     Widget,  /* w */
00236     Widget   /* ext */
00237 #endif
00238 );
00239 
00240 #endif  /* _XawImP_h */

Generated on Sun Mar 4 15:03:56 2007 for Scilab [trunk] by  doxygen 1.5.1