home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / include / x11 / xutil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-17  |  21.5 KB  |  908 lines

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