File indexing completed on 2025-01-30 10:26:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049
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