/[dtapublic]/projs/ets/trunk/src/c_tk_base_7_5_w_mods/xutil.h
ViewVC logotype

Diff of /projs/ets/trunk/src/c_tk_base_7_5_w_mods/xutil.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.70  
changed lines
  Added in v.71

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25