| 1 |
#include "tk.h" |
| 2 |
|
| 3 |
/* |
| 4 |
* Undocumented Xlib internal function |
| 5 |
*/ |
| 6 |
|
| 7 |
int _XInitImageFuncPtrs(XImage *image) |
| 8 |
{ |
| 9 |
return 0; |
| 10 |
} |
| 11 |
|
| 12 |
/* |
| 13 |
* From Xutil.h |
| 14 |
*/ |
| 15 |
|
| 16 |
void |
| 17 |
XSetWMClientMachine(display, w, text_prop) |
| 18 |
Display* display; |
| 19 |
Window w; |
| 20 |
XTextProperty* text_prop; |
| 21 |
{ |
| 22 |
} |
| 23 |
|
| 24 |
int |
| 25 |
XStringListToTextProperty(list, count, text_prop_return) |
| 26 |
char** list; |
| 27 |
int count; |
| 28 |
XTextProperty* text_prop_return; |
| 29 |
{ |
| 30 |
return (int) NULL; |
| 31 |
} |
| 32 |
|
| 33 |
/* |
| 34 |
* From Xlib.h |
| 35 |
*/ |
| 36 |
|
| 37 |
void |
| 38 |
XChangeProperty(display, w, property, type, format, mode, data, nelements) |
| 39 |
Display* display; |
| 40 |
Window w; |
| 41 |
Atom property; |
| 42 |
Atom type; |
| 43 |
int format; |
| 44 |
int mode; |
| 45 |
_Xconst unsigned char* data; |
| 46 |
int nelements; |
| 47 |
{ |
| 48 |
} |
| 49 |
|
| 50 |
Cursor |
| 51 |
XCreateGlyphCursor(display, source_font, mask_font, source_char, mask_char, |
| 52 |
foreground_color, background_color) |
| 53 |
Display* display; |
| 54 |
Font source_font; |
| 55 |
Font mask_font; |
| 56 |
unsigned int source_char; |
| 57 |
unsigned int mask_char; |
| 58 |
XColor* foreground_color; |
| 59 |
XColor* background_color; |
| 60 |
{ |
| 61 |
return 1; |
| 62 |
} |
| 63 |
|
| 64 |
XIC |
| 65 |
XCreateIC() |
| 66 |
{ |
| 67 |
return NULL; |
| 68 |
} |
| 69 |
|
| 70 |
Cursor |
| 71 |
XCreatePixmapCursor(display, source, mask, foreground_color, |
| 72 |
background_color, x, y) |
| 73 |
Display* display; |
| 74 |
Pixmap source; |
| 75 |
Pixmap mask; |
| 76 |
XColor* foreground_color; |
| 77 |
XColor* background_color; |
| 78 |
unsigned int x; |
| 79 |
unsigned int y; |
| 80 |
{ |
| 81 |
return (Cursor) NULL; |
| 82 |
} |
| 83 |
|
| 84 |
void |
| 85 |
XDeleteProperty(display, w, property) |
| 86 |
Display* display; |
| 87 |
Window w; |
| 88 |
Atom property; |
| 89 |
{ |
| 90 |
} |
| 91 |
|
| 92 |
void |
| 93 |
XDestroyIC(ic) |
| 94 |
XIC ic; |
| 95 |
{ |
| 96 |
} |
| 97 |
|
| 98 |
Bool |
| 99 |
XFilterEvent(event, window) |
| 100 |
XEvent* event; |
| 101 |
Window window; |
| 102 |
{ |
| 103 |
return 0; |
| 104 |
} |
| 105 |
|
| 106 |
extern void XForceScreenSaver(display, mode) |
| 107 |
Display* display; |
| 108 |
int mode; |
| 109 |
{ |
| 110 |
} |
| 111 |
|
| 112 |
void |
| 113 |
XFreeCursor(display, cursor) |
| 114 |
Display* display; |
| 115 |
Cursor cursor; |
| 116 |
{ |
| 117 |
} |
| 118 |
|
| 119 |
GContext |
| 120 |
XGContextFromGC(gc) |
| 121 |
GC gc; |
| 122 |
{ |
| 123 |
return (GContext) NULL; |
| 124 |
} |
| 125 |
|
| 126 |
char * |
| 127 |
XGetAtomName(display, atom) |
| 128 |
Display* display; |
| 129 |
Atom atom; |
| 130 |
{ |
| 131 |
return NULL; |
| 132 |
} |
| 133 |
|
| 134 |
int |
| 135 |
XGetWMColormapWindows(display, w, windows_return, count_return) |
| 136 |
Display* display; |
| 137 |
Window w; |
| 138 |
Window** windows_return; |
| 139 |
int* count_return; |
| 140 |
{ |
| 141 |
return (int) NULL; |
| 142 |
} |
| 143 |
|
| 144 |
int |
| 145 |
XIconifyWindow(display, w, screen_number) |
| 146 |
Display* display; |
| 147 |
Window w; |
| 148 |
int screen_number; |
| 149 |
{ |
| 150 |
return 0; |
| 151 |
} |
| 152 |
|
| 153 |
XHostAddress * |
| 154 |
XListHosts(display, nhosts_return, state_return) |
| 155 |
Display* display; |
| 156 |
int* nhosts_return; |
| 157 |
Bool* state_return; |
| 158 |
{ |
| 159 |
return NULL; |
| 160 |
} |
| 161 |
|
| 162 |
int |
| 163 |
XLookupColor(display, colormap, color_name, exact_def_return, |
| 164 |
screen_def_return) |
| 165 |
Display* display; |
| 166 |
Colormap colormap; |
| 167 |
_Xconst char* color_name; |
| 168 |
XColor* exact_def_return; |
| 169 |
XColor* screen_def_return; |
| 170 |
{ |
| 171 |
return 0; |
| 172 |
} |
| 173 |
|
| 174 |
void |
| 175 |
XNextEvent(display, event_return) |
| 176 |
Display* display; |
| 177 |
XEvent* event_return; |
| 178 |
{ |
| 179 |
} |
| 180 |
|
| 181 |
void |
| 182 |
XPutBackEvent(display, event) |
| 183 |
Display* display; |
| 184 |
XEvent* event; |
| 185 |
{ |
| 186 |
} |
| 187 |
|
| 188 |
void |
| 189 |
XQueryColor(display, colormap, def_in_out) |
| 190 |
Display* display; |
| 191 |
Colormap colormap; |
| 192 |
XColor* def_in_out; |
| 193 |
{ |
| 194 |
XQueryColors(display, colormap, def_in_out, 1); |
| 195 |
} |
| 196 |
|
| 197 |
#if 0 |
| 198 |
void |
| 199 |
XQueryColors(display, colormap, defs_in_out, ncolors) |
| 200 |
Display* display; |
| 201 |
Colormap colormap; |
| 202 |
XColor* defs_in_out; |
| 203 |
int ncolors; |
| 204 |
{ |
| 205 |
} |
| 206 |
#endif |
| 207 |
|
| 208 |
int |
| 209 |
XQueryTree(display, w, root_return, parent_return, children_return, |
| 210 |
nchildren_return) |
| 211 |
Display* display; |
| 212 |
Window w; |
| 213 |
Window* root_return; |
| 214 |
Window* parent_return; |
| 215 |
Window** children_return; |
| 216 |
unsigned int* nchildren_return; |
| 217 |
{ |
| 218 |
return 0; |
| 219 |
} |
| 220 |
|
| 221 |
void |
| 222 |
XRefreshKeyboardMapping(event_map) |
| 223 |
XMappingEvent* event_map; |
| 224 |
{ |
| 225 |
} |
| 226 |
|
| 227 |
Window |
| 228 |
XRootWindow(display, screen_number) |
| 229 |
Display* display; |
| 230 |
int screen_number; |
| 231 |
{ |
| 232 |
return (Window) NULL; |
| 233 |
} |
| 234 |
|
| 235 |
void |
| 236 |
XSelectInput(display, w, event_mask) |
| 237 |
Display* display; |
| 238 |
Window w; |
| 239 |
long event_mask; |
| 240 |
{ |
| 241 |
} |
| 242 |
|
| 243 |
int |
| 244 |
XSendEvent(display, w, propagate, event_mask, event_send) |
| 245 |
Display* display; |
| 246 |
Window w; |
| 247 |
Bool propagate; |
| 248 |
long event_mask; |
| 249 |
XEvent* event_send; |
| 250 |
{ |
| 251 |
return 0; |
| 252 |
} |
| 253 |
|
| 254 |
void |
| 255 |
XSetCommand(display, w, args, argc) |
| 256 |
Display* display; |
| 257 |
Window w; |
| 258 |
CONST char** args; |
| 259 |
int argc; |
| 260 |
{ |
| 261 |
} |
| 262 |
|
| 263 |
XErrorHandler |
| 264 |
XSetErrorHandler (handler) |
| 265 |
XErrorHandler handler; |
| 266 |
{ |
| 267 |
return NULL; |
| 268 |
} |
| 269 |
|
| 270 |
void |
| 271 |
XSetIconName(display, w, icon_name) |
| 272 |
Display* display; |
| 273 |
Window w; |
| 274 |
_Xconst char* icon_name; |
| 275 |
{ |
| 276 |
} |
| 277 |
|
| 278 |
void |
| 279 |
XSetWindowBackground(display, w, background_pixel) |
| 280 |
Display* display; |
| 281 |
Window w; |
| 282 |
unsigned long background_pixel; |
| 283 |
{ |
| 284 |
} |
| 285 |
|
| 286 |
void |
| 287 |
XSetWindowBackgroundPixmap(display, w, background_pixmap) |
| 288 |
Display* display; |
| 289 |
Window w; |
| 290 |
Pixmap background_pixmap; |
| 291 |
{ |
| 292 |
} |
| 293 |
|
| 294 |
void |
| 295 |
XSetWindowBorder(display, w, border_pixel) |
| 296 |
Display* display; |
| 297 |
Window w; |
| 298 |
unsigned long border_pixel; |
| 299 |
{ |
| 300 |
} |
| 301 |
|
| 302 |
void |
| 303 |
XSetWindowBorderPixmap(display, w, border_pixmap) |
| 304 |
Display* display; |
| 305 |
Window w; |
| 306 |
Pixmap border_pixmap; |
| 307 |
{ |
| 308 |
} |
| 309 |
|
| 310 |
void |
| 311 |
XSetWindowBorderWidth(display, w, width) |
| 312 |
Display* display; |
| 313 |
Window w; |
| 314 |
unsigned int width; |
| 315 |
{ |
| 316 |
} |
| 317 |
|
| 318 |
void |
| 319 |
XSetWindowColormap(display, w, colormap) |
| 320 |
Display* display; |
| 321 |
Window w; |
| 322 |
Colormap colormap; |
| 323 |
{ |
| 324 |
} |
| 325 |
|
| 326 |
Bool |
| 327 |
XTranslateCoordinates(display, src_w, dest_w, src_x, src_y, dest_x_return, |
| 328 |
dest_y_return, child_return) |
| 329 |
Display* display; |
| 330 |
Window src_w; |
| 331 |
Window dest_w; |
| 332 |
int src_x; |
| 333 |
int src_y; |
| 334 |
int* dest_x_return; |
| 335 |
int* dest_y_return; |
| 336 |
Window* child_return; |
| 337 |
{ |
| 338 |
return 0; |
| 339 |
} |
| 340 |
|
| 341 |
void |
| 342 |
XWindowEvent(display, w, event_mask, event_return) |
| 343 |
Display* display; |
| 344 |
Window w; |
| 345 |
long event_mask; |
| 346 |
XEvent* event_return; |
| 347 |
{ |
| 348 |
} |
| 349 |
|
| 350 |
int |
| 351 |
XWithdrawWindow(display, w, screen_number) |
| 352 |
Display* display; |
| 353 |
Window w; |
| 354 |
int screen_number; |
| 355 |
{ |
| 356 |
return 0; |
| 357 |
} |
| 358 |
|
| 359 |
int |
| 360 |
XmbLookupString(ic, event, buffer_return, bytes_buffer, keysym_return, |
| 361 |
status_return) |
| 362 |
XIC ic; |
| 363 |
XKeyPressedEvent* event; |
| 364 |
char* buffer_return; |
| 365 |
int bytes_buffer; |
| 366 |
KeySym* keysym_return; |
| 367 |
int* status_return; |
| 368 |
{ |
| 369 |
return 0; |
| 370 |
} |
| 371 |
|
| 372 |
int |
| 373 |
XGetWindowProperty(display, w, property, long_offset, long_length, delete, |
| 374 |
req_type, actual_type_return, actual_format_return, nitems_return, |
| 375 |
bytes_after_return, prop_return) |
| 376 |
Display* display; |
| 377 |
Window w; |
| 378 |
Atom property; |
| 379 |
long long_offset; |
| 380 |
long long_length; |
| 381 |
Bool delete; |
| 382 |
Atom req_type; |
| 383 |
Atom* actual_type_return; |
| 384 |
int* actual_format_return; |
| 385 |
unsigned long* nitems_return; |
| 386 |
unsigned long* bytes_after_return; |
| 387 |
unsigned char** prop_return; |
| 388 |
{ |
| 389 |
*actual_type_return = None; |
| 390 |
*actual_format_return = 0; |
| 391 |
*nitems_return = 0; |
| 392 |
*bytes_after_return = 0; |
| 393 |
*prop_return = NULL; |
| 394 |
return BadValue; |
| 395 |
} |
| 396 |
|
| 397 |
|
| 398 |
|