Debian Codegraph @

nx-X11/lib/include/X11/Xutil.h

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