Path: blob/master/thirdparty/linuxbsd_headers/X11/extensions/shape.h
9905 views
/************************************************************12Copyright 1989, 1998 The Open Group34Permission to use, copy, modify, distribute, and sell this software and its5documentation for any purpose is hereby granted without fee, provided that6the above copyright notice appear in all copies and that both that7copyright notice and this permission notice appear in supporting8documentation.910The above copyright notice and this permission notice shall be included in11all copies or substantial portions of the Software.1213THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE16OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN17AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN18CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.1920Except as contained in this notice, the name of The Open Group shall not be21used in advertising or otherwise to promote the sale, use or other dealings22in this Software without prior written authorization from The Open Group.2324********************************************************/2526#ifndef _SHAPE_H_27#define _SHAPE_H_2829#include <X11/Xfuncproto.h>30#include <X11/extensions/shapeconst.h>3132#ifndef _SHAPE_SERVER_33#include <X11/Xutil.h>3435typedef struct {36int type; /* of event */37unsigned long serial; /* # of last request processed by server */38Bool send_event; /* true if this came frome a SendEvent request */39Display *display; /* Display the event was read from */40Window window; /* window of event */41int kind; /* ShapeBounding or ShapeClip */42int x, y; /* extents of new region */43unsigned width, height;44Time time; /* server timestamp when region changed */45Bool shaped; /* true if the region exists */46} XShapeEvent;4748_XFUNCPROTOBEGIN4950extern Bool XShapeQueryExtension (51Display* /* display */,52int* /* event_base */,53int* /* error_base */54);5556extern Status XShapeQueryVersion (57Display* /* display */,58int* /* major_version */,59int* /* minor_version */60);6162extern void XShapeCombineRegion (63Display* /* display */,64Window /* dest */,65int /* dest_kind */,66int /* x_off */,67int /* y_off */,68Region /* region */,69int /* op */70);7172extern void XShapeCombineRectangles (73Display* /* display */,74Window /* dest */,75int /* dest_kind */,76int /* x_off */,77int /* y_off */,78XRectangle* /* rectangles */,79int /* n_rects */,80int /* op */,81int /* ordering */82);8384extern void XShapeCombineMask (85Display* /* display */,86Window /* dest */,87int /* dest_kind */,88int /* x_off */,89int /* y_off */,90Pixmap /* src */,91int /* op */92);9394extern void XShapeCombineShape (95Display* /* display */,96Window /* dest */,97int /* dest_kind */,98int /* x_off */,99int /* y_off */,100Window /* src */,101int /* src_kind */,102int /* op */103);104105extern void XShapeOffsetShape (106Display* /* display */,107Window /* dest */,108int /* dest_kind */,109int /* x_off */,110int /* y_off */111);112113extern Status XShapeQueryExtents (114Display* /* display */,115Window /* window */,116Bool* /* bounding_shaped */,117int* /* x_bounding */,118int* /* y_bounding */,119unsigned int* /* w_bounding */,120unsigned int* /* h_bounding */,121Bool* /* clip_shaped */,122int* /* x_clip */,123int* /* y_clip */,124unsigned int* /* w_clip */,125unsigned int* /* h_clip */126);127128extern void XShapeSelectInput (129Display* /* display */,130Window /* window */,131unsigned long /* mask */132);133134extern unsigned long XShapeInputSelected (135Display* /* display */,136Window /* window */137);138139extern XRectangle *XShapeGetRectangles (140Display* /* display */,141Window /* window */,142int /* kind */,143int* /* count */,144int* /* ordering */145);146147_XFUNCPROTOEND148149#endif /* !_SHAPE_SERVER_ */150151#endif /* _SHAPE_H_ */152153154