1 |
dashley |
25 |
/* $Header: /cvsroot/esrg/sfesrg/esrgpcpj/shared/tk_base/stubs.c,v 1.1.1.1 2001/06/13 04:53:02 dtashley Exp $ */
|
2 |
|
|
|
3 |
|
|
#include "tk.h"
|
4 |
|
|
|
5 |
|
|
/*
|
6 |
|
|
* Undocumented Xlib internal function
|
7 |
|
|
*/
|
8 |
|
|
|
9 |
|
|
_XInitImageFuncPtrs(XImage *image)
|
10 |
|
|
{
|
11 |
|
|
return 0;
|
12 |
|
|
}
|
13 |
|
|
|
14 |
|
|
/*
|
15 |
|
|
* From Xutil.h
|
16 |
|
|
*/
|
17 |
|
|
|
18 |
|
|
void
|
19 |
|
|
XSetWMClientMachine(display, w, text_prop)
|
20 |
|
|
Display* display;
|
21 |
|
|
Window w;
|
22 |
|
|
XTextProperty* text_prop;
|
23 |
|
|
{
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
Status
|
27 |
|
|
XStringListToTextProperty(list, count, text_prop_return)
|
28 |
|
|
char** list;
|
29 |
|
|
int count;
|
30 |
|
|
XTextProperty* text_prop_return;
|
31 |
|
|
{
|
32 |
|
|
return (Status) NULL;
|
33 |
|
|
}
|
34 |
|
|
|
35 |
|
|
/*
|
36 |
|
|
* From Xlib.h
|
37 |
|
|
*/
|
38 |
|
|
|
39 |
|
|
void
|
40 |
|
|
XChangeProperty(display, w, property, type, format, mode, data, nelements)
|
41 |
|
|
Display* display;
|
42 |
|
|
Window w;
|
43 |
|
|
Atom property;
|
44 |
|
|
Atom type;
|
45 |
|
|
int format;
|
46 |
|
|
int mode;
|
47 |
|
|
_Xconst unsigned char* data;
|
48 |
|
|
int nelements;
|
49 |
|
|
{
|
50 |
|
|
}
|
51 |
|
|
|
52 |
|
|
Cursor
|
53 |
|
|
XCreateGlyphCursor(display, source_font, mask_font, source_char, mask_char,
|
54 |
|
|
foreground_color, background_color)
|
55 |
|
|
Display* display;
|
56 |
|
|
Font source_font;
|
57 |
|
|
Font mask_font;
|
58 |
|
|
unsigned int source_char;
|
59 |
|
|
unsigned int mask_char;
|
60 |
|
|
XColor* foreground_color;
|
61 |
|
|
XColor* background_color;
|
62 |
|
|
{
|
63 |
|
|
return 1;
|
64 |
|
|
}
|
65 |
|
|
|
66 |
|
|
XIC
|
67 |
|
|
XCreateIC()
|
68 |
|
|
{
|
69 |
|
|
return NULL;
|
70 |
|
|
}
|
71 |
|
|
|
72 |
|
|
Cursor
|
73 |
|
|
XCreatePixmapCursor(display, source, mask, foreground_color,
|
74 |
|
|
background_color, x, y)
|
75 |
|
|
Display* display;
|
76 |
|
|
Pixmap source;
|
77 |
|
|
Pixmap mask;
|
78 |
|
|
XColor* foreground_color;
|
79 |
|
|
XColor* background_color;
|
80 |
|
|
unsigned int x;
|
81 |
|
|
unsigned int y;
|
82 |
|
|
{
|
83 |
|
|
return (Cursor) NULL;
|
84 |
|
|
}
|
85 |
|
|
|
86 |
|
|
void
|
87 |
|
|
XDeleteProperty(display, w, property)
|
88 |
|
|
Display* display;
|
89 |
|
|
Window w;
|
90 |
|
|
Atom property;
|
91 |
|
|
{
|
92 |
|
|
}
|
93 |
|
|
|
94 |
|
|
void
|
95 |
|
|
XDestroyIC(ic)
|
96 |
|
|
XIC ic;
|
97 |
|
|
{
|
98 |
|
|
}
|
99 |
|
|
|
100 |
|
|
Bool
|
101 |
|
|
XFilterEvent(event, window)
|
102 |
|
|
XEvent* event;
|
103 |
|
|
Window window;
|
104 |
|
|
{
|
105 |
|
|
return 0;
|
106 |
|
|
}
|
107 |
|
|
|
108 |
|
|
extern void XForceScreenSaver(display, mode)
|
109 |
|
|
Display* display;
|
110 |
|
|
int mode;
|
111 |
|
|
{
|
112 |
|
|
}
|
113 |
|
|
|
114 |
|
|
void
|
115 |
|
|
XFreeCursor(display, cursor)
|
116 |
|
|
Display* display;
|
117 |
|
|
Cursor cursor;
|
118 |
|
|
{
|
119 |
|
|
}
|
120 |
|
|
|
121 |
|
|
GContext
|
122 |
|
|
XGContextFromGC(gc)
|
123 |
|
|
GC gc;
|
124 |
|
|
{
|
125 |
|
|
return (GContext) NULL;
|
126 |
|
|
}
|
127 |
|
|
|
128 |
|
|
char *
|
129 |
|
|
XGetAtomName(display, atom)
|
130 |
|
|
Display* display;
|
131 |
|
|
Atom atom;
|
132 |
|
|
{
|
133 |
|
|
return NULL;
|
134 |
|
|
}
|
135 |
|
|
|
136 |
|
|
int
|
137 |
|
|
XGetWindowAttributes(display, w, window_attributes_return)
|
138 |
|
|
Display* display;
|
139 |
|
|
Window w;
|
140 |
|
|
XWindowAttributes* window_attributes_return;
|
141 |
|
|
{
|
142 |
|
|
return 0;
|
143 |
|
|
}
|
144 |
|
|
|
145 |
|
|
Status
|
146 |
|
|
XGetWMColormapWindows(display, w, windows_return, count_return)
|
147 |
|
|
Display* display;
|
148 |
|
|
Window w;
|
149 |
|
|
Window** windows_return;
|
150 |
|
|
int* count_return;
|
151 |
|
|
{
|
152 |
|
|
return (Status) NULL;
|
153 |
|
|
}
|
154 |
|
|
|
155 |
|
|
int
|
156 |
|
|
XIconifyWindow(display, w, screen_number)
|
157 |
|
|
Display* display;
|
158 |
|
|
Window w;
|
159 |
|
|
int screen_number;
|
160 |
|
|
{
|
161 |
|
|
return 0;
|
162 |
|
|
}
|
163 |
|
|
|
164 |
|
|
XHostAddress *
|
165 |
|
|
XListHosts(display, nhosts_return, state_return)
|
166 |
|
|
Display* display;
|
167 |
|
|
int* nhosts_return;
|
168 |
|
|
Bool* state_return;
|
169 |
|
|
{
|
170 |
|
|
return NULL;
|
171 |
|
|
}
|
172 |
|
|
|
173 |
|
|
int
|
174 |
|
|
XLookupColor(display, colormap, color_name, exact_def_return,
|
175 |
|
|
screen_def_return)
|
176 |
|
|
Display* display;
|
177 |
|
|
Colormap colormap;
|
178 |
|
|
_Xconst char* color_name;
|
179 |
|
|
XColor* exact_def_return;
|
180 |
|
|
XColor* screen_def_return;
|
181 |
|
|
{
|
182 |
|
|
return 0;
|
183 |
|
|
}
|
184 |
|
|
|
185 |
|
|
void
|
186 |
|
|
XNextEvent(display, event_return)
|
187 |
|
|
Display* display;
|
188 |
|
|
XEvent* event_return;
|
189 |
|
|
{
|
190 |
|
|
}
|
191 |
|
|
|
192 |
|
|
void
|
193 |
|
|
XPutBackEvent(display, event)
|
194 |
|
|
Display* display;
|
195 |
|
|
XEvent* event;
|
196 |
|
|
{
|
197 |
|
|
}
|
198 |
|
|
|
199 |
|
|
void
|
200 |
|
|
XQueryColors(display, colormap, defs_in_out, ncolors)
|
201 |
|
|
Display* display;
|
202 |
|
|
Colormap colormap;
|
203 |
|
|
XColor* defs_in_out;
|
204 |
|
|
int ncolors;
|
205 |
|
|
{
|
206 |
|
|
}
|
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, argv, argc)
|
256 |
|
|
Display* display;
|
257 |
|
|
Window w;
|
258 |
|
|
char** argv;
|
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 |
|
|
Status* 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 |
|
|
/* $History: stubs.c $
|
399 |
|
|
*
|
400 |
|
|
* ***************** Version 1 *****************
|
401 |
|
|
* User: Dtashley Date: 1/02/01 Time: 2:33a
|
402 |
|
|
* Created in $/IjuScripter, IjuConsole/Source/Tk Base
|
403 |
|
|
* Initial check-in.
|
404 |
|
|
*/
|
405 |
|
|
|
406 |
|
|
/* End of STUBS.C */ |