1 |
/* $Header$ */ |
2 |
|
3 |
/* $XConsortium: Xutil.h,v 11.73 91/07/30 16:21:37 rws Exp $ */ |
4 |
|
5 |
/*********************************************************** |
6 |
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts, |
7 |
and the Massachusetts Institute of Technology, Cambridge, Massachusetts. |
8 |
|
9 |
All Rights Reserved |
10 |
|
11 |
Permission to use, copy, modify, and distribute this software and its |
12 |
documentation for any purpose and without fee is hereby granted, |
13 |
provided that the above copyright notice appear in all copies and that |
14 |
both that copyright notice and this permission notice appear in |
15 |
supporting documentation, and that the names of Digital or MIT not be |
16 |
used in advertising or publicity pertaining to distribution of the |
17 |
software without specific, written prior permission. |
18 |
|
19 |
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING |
20 |
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL |
21 |
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR |
22 |
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, |
23 |
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, |
24 |
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS |
25 |
SOFTWARE. |
26 |
|
27 |
******************************************************************/ |
28 |
|
29 |
#ifndef _XUTIL_H_ |
30 |
#define _XUTIL_H_ |
31 |
|
32 |
/* You must include <X11/Xlib.h> before including this file */ |
33 |
|
34 |
#ifdef MAC_TCL |
35 |
# define Region XRegion |
36 |
#endif |
37 |
|
38 |
/* |
39 |
* Bitmask returned by XParseGeometry(). Each bit tells if the corresponding |
40 |
* value (x, y, width, height) was found in the parsed string. |
41 |
*/ |
42 |
#define NoValue 0x0000 |
43 |
#define XValue 0x0001 |
44 |
#define YValue 0x0002 |
45 |
#define WidthValue 0x0004 |
46 |
#define HeightValue 0x0008 |
47 |
#define AllValues 0x000F |
48 |
#define XNegative 0x0010 |
49 |
#define YNegative 0x0020 |
50 |
|
51 |
/* |
52 |
* new version containing base_width, base_height, and win_gravity fields; |
53 |
* used with WM_NORMAL_HINTS. |
54 |
*/ |
55 |
typedef struct { |
56 |
long flags; /* marks which fields in this structure are defined */ |
57 |
int x, y; /* obsolete for new window mgrs, but clients */ |
58 |
int width, height; /* should set so old wm's don't mess up */ |
59 |
int min_width, min_height; |
60 |
int max_width, max_height; |
61 |
int width_inc, height_inc; |
62 |
struct { |
63 |
int x; /* numerator */ |
64 |
int y; /* denominator */ |
65 |
} min_aspect, max_aspect; |
66 |
int base_width, base_height; /* added by ICCCM version 1 */ |
67 |
int win_gravity; /* added by ICCCM version 1 */ |
68 |
} XSizeHints; |
69 |
|
70 |
/* |
71 |
* The next block of definitions are for window manager properties that |
72 |
* clients and applications use for communication. |
73 |
*/ |
74 |
|
75 |
/* flags argument in size hints */ |
76 |
#define USPosition (1L << 0) /* user specified x, y */ |
77 |
#define USSize (1L << 1) /* user specified width, height */ |
78 |
|
79 |
#define PPosition (1L << 2) /* program specified position */ |
80 |
#define PSize (1L << 3) /* program specified size */ |
81 |
#define PMinSize (1L << 4) /* program specified minimum size */ |
82 |
#define PMaxSize (1L << 5) /* program specified maximum size */ |
83 |
#define PResizeInc (1L << 6) /* program specified resize increments */ |
84 |
#define PAspect (1L << 7) /* program specified min and max aspect ratios */ |
85 |
#define PBaseSize (1L << 8) /* program specified base for incrementing */ |
86 |
#define PWinGravity (1L << 9) /* program specified window gravity */ |
87 |
|
88 |
/* obsolete */ |
89 |
#define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect) |
90 |
|
91 |
|
92 |
|
93 |
typedef struct { |
94 |
long flags; /* marks which fields in this structure are defined */ |
95 |
Bool input; /* does this application rely on the window manager to |
96 |
get keyboard input? */ |
97 |
int initial_state; /* see below */ |
98 |
Pixmap icon_pixmap; /* pixmap to be used as icon */ |
99 |
Window icon_window; /* window to be used as icon */ |
100 |
int icon_x, icon_y; /* initial position of icon */ |
101 |
Pixmap icon_mask; /* icon mask bitmap */ |
102 |
XID window_group; /* id of related window group */ |
103 |
/* this structure may be extended in the future */ |
104 |
} XWMHints; |
105 |
|
106 |
/* definition for flags of XWMHints */ |
107 |
|
108 |
#define InputHint (1L << 0) |
109 |
#define StateHint (1L << 1) |
110 |
#define IconPixmapHint (1L << 2) |
111 |
#define IconWindowHint (1L << 3) |
112 |
#define IconPositionHint (1L << 4) |
113 |
#define IconMaskHint (1L << 5) |
114 |
#define WindowGroupHint (1L << 6) |
115 |
#define AllHints (InputHint|StateHint|IconPixmapHint|IconWindowHint| \ |
116 |
IconPositionHint|IconMaskHint|WindowGroupHint) |
117 |
|
118 |
/* definitions for initial window state */ |
119 |
#define WithdrawnState 0 /* for windows that are not mapped */ |
120 |
#define NormalState 1 /* most applications want to start this way */ |
121 |
#define IconicState 3 /* application wants to start as an icon */ |
122 |
|
123 |
/* |
124 |
* Obsolete states no longer defined by ICCCM |
125 |
*/ |
126 |
#define DontCareState 0 /* don't know or care */ |
127 |
#define ZoomState 2 /* application wants to start zoomed */ |
128 |
#define InactiveState 4 /* application believes it is seldom used; */ |
129 |
/* some wm's may put it on inactive menu */ |
130 |
|
131 |
|
132 |
/* |
133 |
* new structure for manipulating TEXT properties; used with WM_NAME, |
134 |
* WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND. |
135 |
*/ |
136 |
typedef struct { |
137 |
unsigned char *value; /* same as Property routines */ |
138 |
Atom encoding; /* prop type */ |
139 |
int format; /* prop data format: 8, 16, or 32 */ |
140 |
unsigned long nitems; /* number of data items in value */ |
141 |
} XTextProperty; |
142 |
|
143 |
#define XNoMemory -1 |
144 |
#define XLocaleNotSupported -2 |
145 |
#define XConverterNotFound -3 |
146 |
|
147 |
typedef enum { |
148 |
XStringStyle, /* STRING */ |
149 |
XCompoundTextStyle, /* COMPOUND_TEXT */ |
150 |
XTextStyle, /* text in owner's encoding (current locale)*/ |
151 |
XStdICCTextStyle /* STRING, else COMPOUND_TEXT */ |
152 |
} XICCEncodingStyle; |
153 |
|
154 |
typedef struct { |
155 |
int min_width, min_height; |
156 |
int max_width, max_height; |
157 |
int width_inc, height_inc; |
158 |
} XIconSize; |
159 |
|
160 |
typedef struct { |
161 |
char *res_name; |
162 |
char *res_class; |
163 |
} XClassHint; |
164 |
|
165 |
/* |
166 |
* These macros are used to give some sugar to the image routines so that |
167 |
* naive people are more comfortable with them. |
168 |
*/ |
169 |
#define XDestroyImage(ximage) \ |
170 |
((*((ximage)->f.destroy_image))((ximage))) |
171 |
#define XGetPixel(ximage, x, y) \ |
172 |
((*((ximage)->f.get_pixel))((ximage), (x), (y))) |
173 |
#define XPutPixel(ximage, x, y, pixel) \ |
174 |
((*((ximage)->f.put_pixel))((ximage), (x), (y), (pixel))) |
175 |
#define XSubImage(ximage, x, y, width, height) \ |
176 |
((*((ximage)->f.sub_image))((ximage), (x), (y), (width), (height))) |
177 |
#define XAddPixel(ximage, value) \ |
178 |
((*((ximage)->f.add_pixel))((ximage), (value))) |
179 |
|
180 |
/* |
181 |
* Compose sequence status structure, used in calling XLookupString. |
182 |
*/ |
183 |
typedef struct _XComposeStatus { |
184 |
XPointer compose_ptr; /* state table pointer */ |
185 |
int chars_matched; /* match state */ |
186 |
} XComposeStatus; |
187 |
|
188 |
/* |
189 |
* Keysym macros, used on Keysyms to test for classes of symbols |
190 |
*/ |
191 |
#define IsKeypadKey(keysym) \ |
192 |
(((unsigned)(keysym) >= XK_KP_Space) && ((unsigned)(keysym) <= XK_KP_Equal)) |
193 |
|
194 |
#define IsCursorKey(keysym) \ |
195 |
(((unsigned)(keysym) >= XK_Home) && ((unsigned)(keysym) < XK_Select)) |
196 |
|
197 |
#define IsPFKey(keysym) \ |
198 |
(((unsigned)(keysym) >= XK_KP_F1) && ((unsigned)(keysym) <= XK_KP_F4)) |
199 |
|
200 |
#define IsFunctionKey(keysym) \ |
201 |
(((unsigned)(keysym) >= XK_F1) && ((unsigned)(keysym) <= XK_F35)) |
202 |
|
203 |
#define IsMiscFunctionKey(keysym) \ |
204 |
(((unsigned)(keysym) >= XK_Select) && ((unsigned)(keysym) <= XK_Break)) |
205 |
|
206 |
#define IsModifierKey(keysym) \ |
207 |
((((unsigned)(keysym) >= XK_Shift_L) && ((unsigned)(keysym) <= XK_Hyper_R)) \ |
208 |
|| ((unsigned)(keysym) == XK_Mode_switch) \ |
209 |
|| ((unsigned)(keysym) == XK_Num_Lock)) |
210 |
/* |
211 |
* opaque reference to Region data type |
212 |
*/ |
213 |
typedef struct _XRegion *Region; |
214 |
|
215 |
/* Return values from XRectInRegion() */ |
216 |
|
217 |
#define RectangleOut 0 |
218 |
#define RectangleIn 1 |
219 |
#define RectanglePart 2 |
220 |
|
221 |
|
222 |
/* |
223 |
* Information used by the visual utility routines to find desired visual |
224 |
* type from the many visuals a display may support. |
225 |
*/ |
226 |
|
227 |
typedef struct { |
228 |
Visual *visual; |
229 |
VisualID visualid; |
230 |
int screen; |
231 |
int depth; |
232 |
#if defined(__cplusplus) || defined(c_plusplus) |
233 |
int c_class; /* C++ */ |
234 |
#else |
235 |
int class; |
236 |
#endif |
237 |
unsigned long red_mask; |
238 |
unsigned long green_mask; |
239 |
unsigned long blue_mask; |
240 |
int colormap_size; |
241 |
int bits_per_rgb; |
242 |
} XVisualInfo; |
243 |
|
244 |
#define VisualNoMask 0x0 |
245 |
#define VisualIDMask 0x1 |
246 |
#define VisualScreenMask 0x2 |
247 |
#define VisualDepthMask 0x4 |
248 |
#define VisualClassMask 0x8 |
249 |
#define VisualRedMaskMask 0x10 |
250 |
#define VisualGreenMaskMask 0x20 |
251 |
#define VisualBlueMaskMask 0x40 |
252 |
#define VisualColormapSizeMask 0x80 |
253 |
#define VisualBitsPerRGBMask 0x100 |
254 |
#define VisualAllMask 0x1FF |
255 |
|
256 |
/* |
257 |
* This defines a window manager property that clients may use to |
258 |
* share standard color maps of type RGB_COLOR_MAP: |
259 |
*/ |
260 |
typedef struct { |
261 |
Colormap colormap; |
262 |
unsigned long red_max; |
263 |
unsigned long red_mult; |
264 |
unsigned long green_max; |
265 |
unsigned long green_mult; |
266 |
unsigned long blue_max; |
267 |
unsigned long blue_mult; |
268 |
unsigned long base_pixel; |
269 |
VisualID visualid; /* added by ICCCM version 1 */ |
270 |
XID killid; /* added by ICCCM version 1 */ |
271 |
} XStandardColormap; |
272 |
|
273 |
#define ReleaseByFreeingColormap ((XID) 1L) /* for killid field above */ |
274 |
|
275 |
|
276 |
/* |
277 |
* return codes for XReadBitmapFile and XWriteBitmapFile |
278 |
*/ |
279 |
#define BitmapSuccess 0 |
280 |
#define BitmapOpenFailed 1 |
281 |
#define BitmapFileInvalid 2 |
282 |
#define BitmapNoMemory 3 |
283 |
|
284 |
/**************************************************************** |
285 |
* |
286 |
* Context Management |
287 |
* |
288 |
****************************************************************/ |
289 |
|
290 |
|
291 |
/* Associative lookup table return codes */ |
292 |
|
293 |
#define XCSUCCESS 0 /* No error. */ |
294 |
#define XCNOMEM 1 /* Out of memory */ |
295 |
#define XCNOENT 2 /* No entry in table */ |
296 |
|
297 |
typedef int XContext; |
298 |
|
299 |
#define XUniqueContext() ((XContext) XrmUniqueQuark()) |
300 |
#define XStringToContext(string) ((XContext) XrmStringToQuark(string)) |
301 |
|
302 |
_XFUNCPROTOBEGIN |
303 |
|
304 |
/* The following declarations are alphabetized. */ |
305 |
|
306 |
extern XClassHint *XAllocClassHint ( |
307 |
#if NeedFunctionPrototypes |
308 |
void |
309 |
#endif |
310 |
); |
311 |
|
312 |
extern XIconSize *XAllocIconSize ( |
313 |
#if NeedFunctionPrototypes |
314 |
void |
315 |
#endif |
316 |
); |
317 |
|
318 |
extern XSizeHints *XAllocSizeHints ( |
319 |
#if NeedFunctionPrototypes |
320 |
void |
321 |
#endif |
322 |
); |
323 |
|
324 |
extern XStandardColormap *XAllocStandardColormap ( |
325 |
#if NeedFunctionPrototypes |
326 |
void |
327 |
#endif |
328 |
); |
329 |
|
330 |
extern XWMHints *XAllocWMHints ( |
331 |
#if NeedFunctionPrototypes |
332 |
void |
333 |
#endif |
334 |
); |
335 |
|
336 |
extern void XClipBox( |
337 |
#if NeedFunctionPrototypes |
338 |
Region /* r */, |
339 |
XRectangle* /* rect_return */ |
340 |
#endif |
341 |
); |
342 |
|
343 |
extern Region XCreateRegion( |
344 |
#if NeedFunctionPrototypes |
345 |
void |
346 |
#endif |
347 |
); |
348 |
|
349 |
extern char *XDefaultString( |
350 |
#if NeedFunctionPrototypes |
351 |
void |
352 |
#endif |
353 |
); |
354 |
|
355 |
extern int XDeleteContext( |
356 |
#if NeedFunctionPrototypes |
357 |
Display* /* display */, |
358 |
XID /* rid */, |
359 |
XContext /* context */ |
360 |
#endif |
361 |
); |
362 |
|
363 |
extern void XDestroyRegion( |
364 |
#if NeedFunctionPrototypes |
365 |
Region /* r */ |
366 |
#endif |
367 |
); |
368 |
|
369 |
extern void XEmptyRegion( |
370 |
#if NeedFunctionPrototypes |
371 |
Region /* r */ |
372 |
#endif |
373 |
); |
374 |
|
375 |
extern void XEqualRegion( |
376 |
#if NeedFunctionPrototypes |
377 |
Region /* r1 */, |
378 |
Region /* r2 */ |
379 |
#endif |
380 |
); |
381 |
|
382 |
extern int XFindContext( |
383 |
#if NeedFunctionPrototypes |
384 |
Display* /* display */, |
385 |
XID /* rid */, |
386 |
XContext /* context */, |
387 |
XPointer* /* data_return */ |
388 |
#endif |
389 |
); |
390 |
|
391 |
extern Status XGetClassHint( |
392 |
#if NeedFunctionPrototypes |
393 |
Display* /* display */, |
394 |
Window /* w */, |
395 |
XClassHint* /* class_hints_return */ |
396 |
#endif |
397 |
); |
398 |
|
399 |
extern Status XGetIconSizes( |
400 |
#if NeedFunctionPrototypes |
401 |
Display* /* display */, |
402 |
Window /* w */, |
403 |
XIconSize** /* size_list_return */, |
404 |
int* /* count_return */ |
405 |
#endif |
406 |
); |
407 |
|
408 |
extern Status XGetNormalHints( |
409 |
#if NeedFunctionPrototypes |
410 |
Display* /* display */, |
411 |
Window /* w */, |
412 |
XSizeHints* /* hints_return */ |
413 |
#endif |
414 |
); |
415 |
|
416 |
extern Status XGetRGBColormaps( |
417 |
#if NeedFunctionPrototypes |
418 |
Display* /* display */, |
419 |
Window /* w */, |
420 |
XStandardColormap** /* stdcmap_return */, |
421 |
int* /* count_return */, |
422 |
Atom /* property */ |
423 |
#endif |
424 |
); |
425 |
|
426 |
extern Status XGetSizeHints( |
427 |
#if NeedFunctionPrototypes |
428 |
Display* /* display */, |
429 |
Window /* w */, |
430 |
XSizeHints* /* hints_return */, |
431 |
Atom /* property */ |
432 |
#endif |
433 |
); |
434 |
|
435 |
extern Status XGetStandardColormap( |
436 |
#if NeedFunctionPrototypes |
437 |
Display* /* display */, |
438 |
Window /* w */, |
439 |
XStandardColormap* /* colormap_return */, |
440 |
Atom /* property */ |
441 |
#endif |
442 |
); |
443 |
|
444 |
extern Status XGetTextProperty( |
445 |
#if NeedFunctionPrototypes |
446 |
Display* /* display */, |
447 |
Window /* window */, |
448 |
XTextProperty* /* text_prop_return */, |
449 |
Atom /* property */ |
450 |
#endif |
451 |
); |
452 |
|
453 |
|
454 |
extern Status XGetWMClientMachine( |
455 |
#if NeedFunctionPrototypes |
456 |
Display* /* display */, |
457 |
Window /* w */, |
458 |
XTextProperty* /* text_prop_return */ |
459 |
#endif |
460 |
); |
461 |
|
462 |
extern XWMHints *XGetWMHints( |
463 |
#if NeedFunctionPrototypes |
464 |
Display* /* display */, |
465 |
Window /* w */ |
466 |
#endif |
467 |
); |
468 |
|
469 |
extern Status XGetWMIconName( |
470 |
#if NeedFunctionPrototypes |
471 |
Display* /* display */, |
472 |
Window /* w */, |
473 |
XTextProperty* /* text_prop_return */ |
474 |
#endif |
475 |
); |
476 |
|
477 |
extern Status XGetWMName( |
478 |
#if NeedFunctionPrototypes |
479 |
Display* /* display */, |
480 |
Window /* w */, |
481 |
XTextProperty* /* text_prop_return */ |
482 |
#endif |
483 |
); |
484 |
|
485 |
extern Status XGetWMNormalHints( |
486 |
#if NeedFunctionPrototypes |
487 |
Display* /* display */, |
488 |
Window /* w */, |
489 |
XSizeHints* /* hints_return */, |
490 |
long* /* supplied_return */ |
491 |
#endif |
492 |
); |
493 |
|
494 |
extern Status XGetWMSizeHints( |
495 |
#if NeedFunctionPrototypes |
496 |
Display* /* display */, |
497 |
Window /* w */, |
498 |
XSizeHints* /* hints_return */, |
499 |
long* /* supplied_return */, |
500 |
Atom /* property */ |
501 |
#endif |
502 |
); |
503 |
|
504 |
extern Status XGetZoomHints( |
505 |
#if NeedFunctionPrototypes |
506 |
Display* /* display */, |
507 |
Window /* w */, |
508 |
XSizeHints* /* zhints_return */ |
509 |
#endif |
510 |
); |
511 |
|
512 |
extern void XIntersectRegion( |
513 |
#if NeedFunctionPrototypes |
514 |
Region /* sra */, |
515 |
Region /* srb */, |
516 |
Region /* dr_return */ |
517 |
#endif |
518 |
); |
519 |
|
520 |
extern int XLookupString( |
521 |
#if NeedFunctionPrototypes |
522 |
XKeyEvent* /* event_struct */, |
523 |
char* /* buffer_return */, |
524 |
int /* bytes_buffer */, |
525 |
KeySym* /* keysym_return */, |
526 |
XComposeStatus* /* status_in_out */ |
527 |
#endif |
528 |
); |
529 |
|
530 |
extern Status XMatchVisualInfo( |
531 |
#if NeedFunctionPrototypes |
532 |
Display* /* display */, |
533 |
int /* screen */, |
534 |
int /* depth */, |
535 |
int /* class */, |
536 |
XVisualInfo* /* vinfo_return */ |
537 |
#endif |
538 |
); |
539 |
|
540 |
extern void XOffsetRegion( |
541 |
#if NeedFunctionPrototypes |
542 |
Region /* r */, |
543 |
int /* dx */, |
544 |
int /* dy */ |
545 |
#endif |
546 |
); |
547 |
|
548 |
extern Bool XPointInRegion( |
549 |
#if NeedFunctionPrototypes |
550 |
Region /* r */, |
551 |
int /* x */, |
552 |
int /* y */ |
553 |
#endif |
554 |
); |
555 |
|
556 |
extern Region XPolygonRegion( |
557 |
#if NeedFunctionPrototypes |
558 |
XPoint* /* points */, |
559 |
int /* n */, |
560 |
int /* fill_rule */ |
561 |
#endif |
562 |
); |
563 |
|
564 |
extern int XRectInRegion( |
565 |
#if NeedFunctionPrototypes |
566 |
Region /* r */, |
567 |
int /* x */, |
568 |
int /* y */, |
569 |
unsigned int /* width */, |
570 |
unsigned int /* height */ |
571 |
#endif |
572 |
); |
573 |
|
574 |
extern int XSaveContext( |
575 |
#if NeedFunctionPrototypes |
576 |
Display* /* display */, |
577 |
XID /* rid */, |
578 |
XContext /* context */, |
579 |
_Xconst char* /* data */ |
580 |
#endif |
581 |
); |
582 |
|
583 |
extern void XSetClassHint( |
584 |
#if NeedFunctionPrototypes |
585 |
Display* /* display */, |
586 |
Window /* w */, |
587 |
XClassHint* /* class_hints */ |
588 |
#endif |
589 |
); |
590 |
|
591 |
extern void XSetIconSizes( |
592 |
#if NeedFunctionPrototypes |
593 |
Display* /* display */, |
594 |
Window /* w */, |
595 |
XIconSize* /* size_list */, |
596 |
int /* count */ |
597 |
#endif |
598 |
); |
599 |
|
600 |
extern void XSetNormalHints( |
601 |
#if NeedFunctionPrototypes |
602 |
Display* /* display */, |
603 |
Window /* w */, |
604 |
XSizeHints* /* hints */ |
605 |
#endif |
606 |
); |
607 |
|
608 |
extern void XSetRGBColormaps( |
609 |
#if NeedFunctionPrototypes |
610 |
Display* /* display */, |
611 |
Window /* w */, |
612 |
XStandardColormap* /* stdcmaps */, |
613 |
int /* count */, |
614 |
Atom /* property */ |
615 |
#endif |
616 |
); |
617 |
|
618 |
extern void XSetSizeHints( |
619 |
#if NeedFunctionPrototypes |
620 |
Display* /* display */, |
621 |
Window /* w */, |
622 |
XSizeHints* /* hints */, |
623 |
Atom /* property */ |
624 |
#endif |
625 |
); |
626 |
|
627 |
extern void XSetStandardProperties( |
628 |
#if NeedFunctionPrototypes |
629 |
Display* /* display */, |
630 |
Window /* w */, |
631 |
_Xconst char* /* window_name */, |
632 |
_Xconst char* /* icon_name */, |
633 |
Pixmap /* icon_pixmap */, |
634 |
char** /* argv */, |
635 |
int /* argc */, |
636 |
XSizeHints* /* hints */ |
637 |
#endif |
638 |
); |
639 |
|
640 |
extern void XSetTextProperty( |
641 |
#if NeedFunctionPrototypes |
642 |
Display* /* display */, |
643 |
Window /* w */, |
644 |
XTextProperty* /* text_prop */, |
645 |
Atom /* property */ |
646 |
#endif |
647 |
); |
648 |
|
649 |
extern void XSetWMHints( |
650 |
#if NeedFunctionPrototypes |
651 |
Display* /* display */, |
652 |
Window /* w */, |
653 |
XWMHints* /* wm_hints */ |
654 |
#endif |
655 |
); |
656 |
|
657 |
extern void XSetWMIconName( |
658 |
#if NeedFunctionPrototypes |
659 |
Display* /* display */, |
660 |
Window /* w */, |
661 |
XTextProperty* /* text_prop */ |
662 |
#endif |
663 |
); |
664 |
|
665 |
extern void XSetWMName( |
666 |
#if NeedFunctionPrototypes |
667 |
Display* /* display */, |
668 |
Window /* w */, |
669 |
XTextProperty* /* text_prop */ |
670 |
#endif |
671 |
); |
672 |
|
673 |
extern void XSetWMNormalHints( |
674 |
#if NeedFunctionPrototypes |
675 |
Display* /* display */, |
676 |
Window /* w */, |
677 |
XSizeHints* /* hints */ |
678 |
#endif |
679 |
); |
680 |
|
681 |
extern void XSetWMProperties( |
682 |
#if NeedFunctionPrototypes |
683 |
Display* /* display */, |
684 |
Window /* w */, |
685 |
XTextProperty* /* window_name */, |
686 |
XTextProperty* /* icon_name */, |
687 |
char** /* argv */, |
688 |
int /* argc */, |
689 |
XSizeHints* /* normal_hints */, |
690 |
XWMHints* /* wm_hints */, |
691 |
XClassHint* /* class_hints */ |
692 |
#endif |
693 |
); |
694 |
|
695 |
extern void XmbSetWMProperties( |
696 |
#if NeedFunctionPrototypes |
697 |
Display* /* display */, |
698 |
Window /* w */, |
699 |
_Xconst char* /* window_name */, |
700 |
_Xconst char* /* icon_name */, |
701 |
char** /* argv */, |
702 |
int /* argc */, |
703 |
XSizeHints* /* normal_hints */, |
704 |
XWMHints* /* wm_hints */, |
705 |
XClassHint* /* class_hints */ |
706 |
#endif |
707 |
); |
708 |
|
709 |
extern void XSetWMSizeHints( |
710 |
#if NeedFunctionPrototypes |
711 |
Display* /* display */, |
712 |
Window /* w */, |
713 |
XSizeHints* /* hints */, |
714 |
Atom /* property */ |
715 |
#endif |
716 |
); |
717 |
|
718 |
extern void XSetRegion( |
719 |
#if NeedFunctionPrototypes |
720 |
Display* /* display */, |
721 |
GC /* gc */, |
722 |
Region /* r */ |
723 |
#endif |
724 |
); |
725 |
|
726 |
extern void XSetStandardColormap( |
727 |
#if NeedFunctionPrototypes |
728 |
Display* /* display */, |
729 |
Window /* w */, |
730 |
XStandardColormap* /* colormap */, |
731 |
Atom /* property */ |
732 |
#endif |
733 |
); |
734 |
|
735 |
extern void XSetZoomHints( |
736 |
#if NeedFunctionPrototypes |
737 |
Display* /* display */, |
738 |
Window /* w */, |
739 |
XSizeHints* /* zhints */ |
740 |
#endif |
741 |
); |
742 |
|
743 |
extern void XShrinkRegion( |
744 |
#if NeedFunctionPrototypes |
745 |
Region /* r */, |
746 |
int /* dx */, |
747 |
int /* dy */ |
748 |
#endif |
749 |
); |
750 |
|
751 |
extern void XSubtractRegion( |
752 |
#if NeedFunctionPrototypes |
753 |
Region /* sra */, |
754 |
Region /* srb */, |
755 |
Region /* dr_return */ |
756 |
#endif |
757 |
); |
758 |
|
759 |
extern int XmbTextListToTextProperty( |
760 |
#if NeedFunctionPrototypes |
761 |
Display* /* display */, |
762 |
char** /* list */, |
763 |
int /* count */, |
764 |
XICCEncodingStyle /* style */, |
765 |
XTextProperty* /* text_prop_return */ |
766 |
#endif |
767 |
); |
768 |
|
769 |
extern int XwcTextListToTextProperty( |
770 |
#if NeedFunctionPrototypes |
771 |
Display* /* display */, |
772 |
wchar_t** /* list */, |
773 |
int /* count */, |
774 |
XICCEncodingStyle /* style */, |
775 |
XTextProperty* /* text_prop_return */ |
776 |
#endif |
777 |
); |
778 |
|
779 |
extern void XwcFreeStringList( |
780 |
#if NeedFunctionPrototypes |
781 |
wchar_t** /* list */ |
782 |
#endif |
783 |
); |
784 |
|
785 |
extern Status XTextPropertyToStringList( |
786 |
#if NeedFunctionPrototypes |
787 |
XTextProperty* /* text_prop */, |
788 |
char*** /* list_return */, |
789 |
int* /* count_return */ |
790 |
#endif |
791 |
); |
792 |
|
793 |
extern int XmbTextPropertyToTextList( |
794 |
#if NeedFunctionPrototypes |
795 |
Display* /* display */, |
796 |
XTextProperty* /* text_prop */, |
797 |
char*** /* list_return */, |
798 |
int* /* count_return */ |
799 |
#endif |
800 |
); |
801 |
|
802 |
extern int XwcTextPropertyToTextList( |
803 |
#if NeedFunctionPrototypes |
804 |
Display* /* display */, |
805 |
XTextProperty* /* text_prop */, |
806 |
wchar_t*** /* list_return */, |
807 |
int* /* count_return */ |
808 |
#endif |
809 |
); |
810 |
|
811 |
extern void XUnionRectWithRegion( |
812 |
#if NeedFunctionPrototypes |
813 |
XRectangle* /* rectangle */, |
814 |
Region /* src_region */, |
815 |
Region /* dest_region_return */ |
816 |
#endif |
817 |
); |
818 |
|
819 |
extern void XUnionRegion( |
820 |
#if NeedFunctionPrototypes |
821 |
Region /* sra */, |
822 |
Region /* srb */, |
823 |
Region /* dr_return */ |
824 |
#endif |
825 |
); |
826 |
|
827 |
extern int XWMGeometry( |
828 |
#if NeedFunctionPrototypes |
829 |
Display* /* display */, |
830 |
int /* screen_number */, |
831 |
_Xconst char* /* user_geometry */, |
832 |
_Xconst char* /* default_geometry */, |
833 |
unsigned int /* border_width */, |
834 |
XSizeHints* /* hints */, |
835 |
int* /* x_return */, |
836 |
int* /* y_return */, |
837 |
int* /* width_return */, |
838 |
int* /* height_return */, |
839 |
int* /* gravity_return */ |
840 |
#endif |
841 |
); |
842 |
|
843 |
extern void XXorRegion( |
844 |
#if NeedFunctionPrototypes |
845 |
Region /* sra */, |
846 |
Region /* srb */, |
847 |
Region /* dr_return */ |
848 |
#endif |
849 |
); |
850 |
|
851 |
_XFUNCPROTOEND |
852 |
|
853 |
#ifdef MAC_TCL |
854 |
# undef Region |
855 |
#endif |
856 |
|
857 |
#endif /* _XUTIL_H_ */ |
858 |
|
859 |
/* End of xutil.h */ |