| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | #ifndef _XawImP_h |
| 54 | #define _XawImP_h |
| 55 | |
| 56 | #define XtNinputMethod "inputMethod" |
| 57 | #define XtCInputMethod "InputMethod" |
| 58 | #define XtNpreeditType "preeditType" |
| 59 | #define XtCPreeditType "PreeditType" |
| 60 | #define XtNopenIm "openIm" |
| 61 | #define XtCOpenIm "OpenIm" |
| 62 | #define XtNsharedIc "sharedIc" |
| 63 | #define XtCSharedIc "SharedIc" |
| 64 | |
| 65 | #include <X11/Xaw/Text.h> |
| 66 | |
| 67 | #define CIICFocus (1 << 0) |
| 68 | #define CIFontSet (1 << 1) |
| 69 | #define CIFg (1 << 2) |
| 70 | #define CIBg (1 << 3) |
| 71 | #define CIBgPixmap (1 << 4) |
| 72 | #define CICursorP (1 << 5) |
| 73 | #define CILineS (1 << 6) |
| 74 | |
| 75 | typedef struct _XawImPart { |
| 76 | XIM xim; |
| 77 | XrmResourceList resources; |
| 78 | Cardinal num_resources; |
| 79 | Boolean open_im; |
| 80 | Boolean initialized; |
| 81 | Dimension area_height; |
| 82 | String input_method; |
| 83 | String preedit_type; |
| 84 | } XawImPart; |
| 85 | |
| 86 | typedef struct _XawIcTablePart { |
| 87 | Widget widget; |
| 88 | XIC xic; |
| 89 | XIMStyle input_style; |
| 90 | unsigned long flg; |
| 91 | unsigned long prev_flg; |
| 92 | Boolean ic_focused; |
| 93 | XFontSet font_set; |
| 94 | Pixel foreground; |
| 95 | Pixel background; |
| 96 | Pixmap bg_pixmap; |
| 97 | XawTextPosition cursor_position; |
| 98 | unsigned long line_spacing; |
| 99 | Boolean openic_error; |
| 100 | struct _XawIcTablePart *next; |
| 101 | } XawIcTablePart, *XawIcTableList; |
| 102 | |
| 103 | typedef struct _XawIcPart { |
| 104 | XIMStyle input_style; |
| 105 | Boolean shared_ic; |
| 106 | XawIcTableList shared_ic_table; |
| 107 | XawIcTableList current_ic_table; |
| 108 | XawIcTableList ic_table; |
| 109 | } XawIcPart; |
| 110 | |
| 111 | typedef struct _contextDataRec { |
| 112 | Widget parent; |
| 113 | Widget ve; |
| 114 | } contextDataRec; |
| 115 | |
| 116 | typedef struct _contextErrDataRec { |
| 117 | Widget widget; |
| 118 | XIM xim; |
| 119 | } contextErrDataRec; |
| 120 | |
| 121 | void _XawImResizeVendorShell |
| 122 | ( |
| 123 | Widget w |
| 124 | ); |
| 125 | |
| 126 | Dimension _XawImGetShellHeight |
| 127 | ( |
| 128 | Widget w |
| 129 | ); |
| 130 | |
| 131 | void _XawImRealize |
| 132 | ( |
| 133 | Widget w |
| 134 | ); |
| 135 | |
| 136 | void _XawImInitialize |
| 137 | ( |
| 138 | Widget w, |
| 139 | Widget ext |
| 140 | ); |
| 141 | |
| 142 | void _XawImReconnect |
| 143 | ( |
| 144 | Widget w |
| 145 | ); |
| 146 | |
| 147 | void _XawImRegister |
| 148 | ( |
| 149 | Widget w |
| 150 | ); |
| 151 | |
| 152 | void _XawImUnregister |
| 153 | ( |
| 154 | Widget w |
| 155 | ); |
| 156 | |
| 157 | void _XawImSetValues |
| 158 | ( |
| 159 | Widget w, |
| 160 | ArgList args, |
| 161 | Cardinal num_args |
| 162 | ); |
| 163 | |
| 164 | void _XawImSetFocusValues |
| 165 | ( |
| 166 | Widget w, |
| 167 | ArgList args, |
| 168 | Cardinal num_args |
| 169 | ); |
| 170 | |
| 171 | void _XawImUnsetFocus |
| 172 | ( |
| 173 | Widget w |
| 174 | ); |
| 175 | |
| 176 | int _XawImWcLookupString |
| 177 | ( |
| 178 | Widget w, |
| 179 | XKeyPressedEvent *event, |
| 180 | wchar_t *buffer_return, |
| 181 | int bytes_buffer, |
| 182 | KeySym *keysym_return |
| 183 | ); |
| 184 | |
| 185 | int _XawLookupString |
| 186 | ( |
| 187 | Widget w, |
| 188 | XKeyEvent *event, |
| 189 | char *buffer_return, |
| 190 | int buffer_size, |
| 191 | KeySym *keysym_return |
| 192 | ); |
| 193 | |
| 194 | int _XawImGetImAreaHeight |
| 195 | ( |
| 196 | Widget w |
| 197 | ); |
| 198 | |
| 199 | void _XawImCallVendorShellExtResize |
| 200 | ( |
| 201 | Widget w |
| 202 | ); |
| 203 | |
| 204 | void _XawImDestroy |
| 205 | ( |
| 206 | Widget w, |
| 207 | Widget ext |
| 208 | ); |
| 209 | |
| 210 | #endif |