Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:37

0001 /*
0002  * Copyright 1991 by OMRON Corporation
0003  *
0004  * Permission to use, copy, modify, distribute, and sell this software and its
0005  * documentation for any purpose is hereby granted without fee, provided that
0006  * the above copyright notice appear in all copies and that both that
0007  * copyright notice and this permission notice appear in supporting
0008  * documentation, and that the name of OMRON not be used in advertising or
0009  * publicity pertaining to distribution of the software without specific,
0010  * written prior permission.  OMRON makes no representations about the
0011  * suitability of this software for any purpose.  It is provided "as is"
0012  * without express or implied warranty.
0013  *
0014  * OMRON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0015  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0016  * OMRON BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0017  * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0018  * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTUOUS ACTION,
0019  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0020  * SOFTWARE.
0021  *
0022  *  Author: Seiji Kuwari    OMRON Corporation
0023  *              kuwa@omron.co.jp
0024  *              kuwa%omron.co.jp@uunet.uu.net
0025  */
0026 
0027 /*
0028 
0029 Copyright 1994, 1998  The Open Group
0030 
0031 Permission to use, copy, modify, distribute, and sell this software and its
0032 documentation for any purpose is hereby granted without fee, provided that
0033 the above copyright notice appear in all copies and that both that
0034 copyright notice and this permission notice appear in supporting
0035 documentation.
0036 
0037 The above copyright notice and this permission notice shall be included in
0038 all copies or substantial portions of the Software.
0039 
0040 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0041 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0042 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0043 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0044 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0045 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0046 
0047 Except as contained in this notice, the name of The Open Group shall not be
0048 used in advertising or otherwise to promote the sale, use or other dealings
0049 in this Software without prior written authorization from The Open Group.
0050 
0051 */
0052 
0053 #ifndef _XawImP_h
0054 #define _XawImP_h
0055 
0056 #define XtNinputMethod      "inputMethod"
0057 #define XtCInputMethod      "InputMethod"
0058 #define XtNpreeditType      "preeditType"
0059 #define XtCPreeditType      "PreeditType"
0060 #define XtNopenIm       "openIm"
0061 #define XtCOpenIm       "OpenIm"
0062 #define XtNsharedIc     "sharedIc"
0063 #define XtCSharedIc     "SharedIc"
0064 
0065 #include <X11/Xaw/Text.h>
0066 
0067 #define CIICFocus   (1 << 0)
0068 #define CIFontSet   (1 << 1)
0069 #define CIFg        (1 << 2)
0070 #define CIBg        (1 << 3)
0071 #define CIBgPixmap  (1 << 4)
0072 #define CICursorP   (1 << 5)
0073 #define CILineS     (1 << 6)
0074 
0075 typedef struct _XawImPart {
0076     XIM         xim;
0077     XrmResourceList resources;
0078     Cardinal        num_resources;
0079     Boolean     open_im;
0080     Boolean     initialized;
0081     Dimension       area_height;
0082     String      input_method;
0083     String      preedit_type;
0084 } XawImPart;
0085 
0086 typedef struct _XawIcTablePart {
0087     Widget      widget;
0088     XIC         xic;
0089     XIMStyle        input_style;
0090     unsigned long   flg;
0091     unsigned long   prev_flg;
0092     Boolean     ic_focused;
0093     XFontSet        font_set;
0094     Pixel       foreground;
0095     Pixel       background;
0096     Pixmap      bg_pixmap;
0097     XawTextPosition cursor_position;
0098     unsigned long   line_spacing;
0099     Boolean     openic_error;
0100     struct _XawIcTablePart *next;
0101 } XawIcTablePart, *XawIcTableList;
0102 
0103 typedef struct _XawIcPart {
0104     XIMStyle        input_style;
0105     Boolean     shared_ic;
0106     XawIcTableList  shared_ic_table;
0107     XawIcTableList  current_ic_table;
0108     XawIcTableList  ic_table;
0109 } XawIcPart;
0110 
0111 typedef struct _contextDataRec {
0112     Widget      parent;
0113     Widget      ve;
0114 } contextDataRec;
0115 
0116 typedef struct _contextErrDataRec {
0117     Widget      widget;
0118     XIM         xim;
0119 } contextErrDataRec;
0120 
0121 void _XawImResizeVendorShell
0122 (
0123  Widget         w
0124  );
0125 
0126 Dimension _XawImGetShellHeight
0127 (
0128  Widget         w
0129 );
0130 
0131 void _XawImRealize
0132 (
0133  Widget         w
0134  );
0135 
0136 void _XawImInitialize
0137 (
0138  Widget         w,
0139  Widget         ext
0140  );
0141 
0142 void _XawImReconnect
0143 (
0144  Widget         w
0145  );
0146 
0147 void _XawImRegister
0148 (
0149  Widget         w
0150  );
0151 
0152 void _XawImUnregister
0153 (
0154  Widget         w
0155  );
0156 
0157 void _XawImSetValues
0158 (
0159  Widget         w,
0160  ArgList        args,
0161  Cardinal       num_args
0162  );
0163 
0164 void _XawImSetFocusValues
0165 (
0166  Widget         w,
0167  ArgList        args,
0168  Cardinal       num_args
0169 );
0170 
0171 void _XawImUnsetFocus
0172 (
0173  Widget         w
0174  );
0175 
0176 int _XawImWcLookupString
0177 (
0178  Widget         w,
0179  XKeyPressedEvent   *event,
0180  wchar_t        *buffer_return,
0181  int            bytes_buffer,
0182  KeySym         *keysym_return
0183  );
0184 
0185 int _XawLookupString
0186 (
0187  Widget         w,
0188  XKeyEvent      *event,
0189  char           *buffer_return,
0190  int            buffer_size,
0191  KeySym         *keysym_return
0192  );
0193 
0194 int _XawImGetImAreaHeight
0195 (
0196  Widget         w
0197  );
0198 
0199 void _XawImCallVendorShellExtResize
0200 (
0201  Widget         w
0202  );
0203 
0204 void _XawImDestroy
0205 (
0206  Widget         w,
0207  Widget         ext
0208  );
0209 
0210 #endif  /* _XawImP_h */