Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-03-13 09:29:38

0001 /************************************************************
0002 
0003 Copyright 1989, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 ********************************************************/
0026 
0027 #ifndef _SHAPE_H_
0028 #define _SHAPE_H_
0029 
0030 #include <X11/Xfuncproto.h>
0031 #include <X11/extensions/shapeconst.h>
0032 
0033 #ifndef _SHAPE_SERVER_
0034 #include <X11/Xutil.h>
0035 
0036 typedef struct {
0037     int type;           /* of event */
0038     unsigned long serial;   /* # of last request processed by server */
0039     Bool send_event;        /* true if this came from a SendEvent request */
0040     Display *display;       /* Display the event was read from */
0041     Window window;      /* window of event */
0042     int kind;           /* ShapeBounding or ShapeClip */
0043     int x, y;           /* extents of new region */
0044     unsigned width, height;
0045     Time time;          /* server timestamp when region changed */
0046     Bool shaped;        /* true if the region exists */
0047 } XShapeEvent;
0048 
0049 _XFUNCPROTOBEGIN
0050 
0051 extern Bool XShapeQueryExtension (
0052     Display*    /* display */,
0053     int*    /* event_base */,
0054     int*    /* error_base */
0055 );
0056 
0057 extern Status XShapeQueryVersion (
0058     Display*    /* display */,
0059     int*    /* major_version */,
0060     int*    /* minor_version */
0061 );
0062 
0063 extern void XShapeCombineRegion (
0064     Display*    /* display */,
0065     Window  /* dest */,
0066     int     /* dest_kind */,
0067     int     /* x_off */,
0068     int     /* y_off */,
0069     Region  /* region */,
0070     int     /* op */
0071 );
0072 
0073 extern void XShapeCombineRectangles (
0074     Display*    /* display */,
0075     Window  /* dest */,
0076     int     /* dest_kind */,
0077     int     /* x_off */,
0078     int     /* y_off */,
0079     XRectangle* /* rectangles */,
0080     int     /* n_rects */,
0081     int     /* op */,
0082     int     /* ordering */
0083 );
0084 
0085 extern void XShapeCombineMask (
0086     Display*    /* display */,
0087     Window  /* dest */,
0088     int     /* dest_kind */,
0089     int     /* x_off */,
0090     int     /* y_off */,
0091     Pixmap  /* src */,
0092     int     /* op */
0093 );
0094 
0095 extern void XShapeCombineShape (
0096     Display*    /* display */,
0097     Window  /* dest */,
0098     int     /* dest_kind */,
0099     int     /* x_off */,
0100     int     /* y_off */,
0101     Window  /* src */,
0102     int     /* src_kind */,
0103     int     /* op */
0104 );
0105 
0106 extern void XShapeOffsetShape (
0107     Display*    /* display */,
0108     Window  /* dest */,
0109     int     /* dest_kind */,
0110     int     /* x_off */,
0111     int     /* y_off */
0112 );
0113 
0114 extern Status XShapeQueryExtents (
0115     Display*        /* display */,
0116     Window      /* window */,
0117     Bool*       /* bounding_shaped */,
0118     int*        /* x_bounding */,
0119     int*        /* y_bounding */,
0120     unsigned int*   /* w_bounding */,
0121     unsigned int*   /* h_bounding */,
0122     Bool*       /* clip_shaped */,
0123     int*        /* x_clip */,
0124     int*        /* y_clip */,
0125     unsigned int*   /* w_clip */,
0126     unsigned int*   /* h_clip */
0127 );
0128 
0129 extern void XShapeSelectInput (
0130     Display*        /* display */,
0131     Window      /* window */,
0132     unsigned long   /* mask */
0133 );
0134 
0135 extern unsigned long XShapeInputSelected (
0136     Display*    /* display */,
0137     Window  /* window */
0138 );
0139 
0140 extern XRectangle *XShapeGetRectangles (
0141     Display*    /* display */,
0142     Window  /* window */,
0143     int     /* kind */,
0144     int*    /* count */,
0145     int*    /* ordering */
0146 );
0147 
0148 _XFUNCPROTOEND
0149 
0150 #endif /* !_SHAPE_SERVER_ */
0151 
0152 #endif /* _SHAPE_H_ */