00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
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
00132 #endif
00133 );
00134
00135 Dimension _XawImGetShellHeight(
00136 #if NeedFunctionPrototypes
00137 Widget
00138 #endif
00139 );
00140
00141 void _XawImRealize(
00142 #if NeedFunctionPrototypes
00143 Widget
00144 #endif
00145 );
00146
00147 void _XawImInitialize(
00148 #if NeedFunctionPrototypes
00149 Widget,
00150 Widget
00151 #endif
00152 );
00153
00154 void _XawImReconnect(
00155 #if NeedFunctionPrototypes
00156 Widget
00157 #endif
00158 );
00159
00160 void _XawImRegister(
00161 #if NeedFunctionPrototypes
00162 Widget
00163 #endif
00164 );
00165
00166 void _XawImUnregister(
00167 #if NeedFunctionPrototypes
00168 Widget
00169 #endif
00170 );
00171
00172 void _XawImSetValues(
00173 #if NeedFunctionPrototypes
00174 Widget,
00175 ArgList,
00176 Cardinal
00177 #endif
00178 );
00179
00180
00181 void _XawImVASetValues(
00182 #if NeedVarargsPrototypes
00183 Widget,
00184 ...
00185 #endif
00186 );
00187
00188 void _XawImSetFocusValues(
00189 #if NeedFunctionPrototypes
00190 Widget,
00191 ArgList,
00192 Cardinal
00193 #endif
00194 );
00195
00196
00197 void _XawImVASetFocusValues(
00198 #if NeedVarargsPrototypes
00199 Widget,
00200 ...
00201 #endif
00202 );
00203
00204 void _XawImUnsetFocus(
00205 #if NeedFunctionPrototypes
00206 Widget
00207 #endif
00208 );
00209
00210 int _XawImWcLookupString(
00211 #if NeedFunctionPrototypes
00212 Widget,
00213 XKeyPressedEvent*,
00214 wchar_t*,
00215 int,
00216 KeySym*,
00217 Status*
00218 #endif
00219 );
00220
00221 int _XawImGetImAreaHeight(
00222 #if NeedFunctionPrototypes
00223 Widget
00224 #endif
00225 );
00226
00227 void _XawImCallVendorShellExtResize(
00228 #if NeedFunctionPrototypes
00229 Widget
00230 #endif
00231 );
00232
00233 void _XawImDestroy(
00234 #if NeedFunctionPrototypes
00235 Widget,
00236 Widget
00237 #endif
00238 );
00239
00240 #endif