Path: blob/master/thirdparty/linuxbsd_headers/X11/extensions/xfixeswire.h
9905 views
/*1* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.2* Copyright 2010 Red Hat, Inc.3*4* Permission is hereby granted, free of charge, to any person obtaining a5* copy of this software and associated documentation files (the "Software"),6* to deal in the Software without restriction, including without limitation7* the rights to use, copy, modify, merge, publish, distribute, sublicense,8* and/or sell copies of the Software, and to permit persons to whom the9* Software is furnished to do so, subject to the following conditions:10*11* The above copyright notice and this permission notice (including the next12* paragraph) shall be included in all copies or substantial portions of the13* Software.14*15* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR16* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,17* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL18* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER19* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING20* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER21* DEALINGS IN THE SOFTWARE.22*/23/*24* Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.25*26* Permission to use, copy, modify, distribute, and sell this software and its27* documentation for any purpose is hereby granted without fee, provided that28* the above copyright notice appear in all copies and that both that29* copyright notice and this permission notice appear in supporting30* documentation, and that the name of Keith Packard not be used in31* advertising or publicity pertaining to distribution of the software without32* specific, written prior permission. Keith Packard makes no33* representations about the suitability of this software for any purpose. It34* is provided "as is" without express or implied warranty.35*36* KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,37* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO38* EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR39* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,40* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER41* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR42* PERFORMANCE OF THIS SOFTWARE.43*/444546#ifndef _XFIXESWIRE_H_47#define _XFIXESWIRE_H_4849#define XFIXES_NAME "XFIXES"50#define XFIXES_MAJOR 651#define XFIXES_MINOR 05253/*************** Version 1 ******************/54#define X_XFixesQueryVersion 055#define X_XFixesChangeSaveSet 156#define X_XFixesSelectSelectionInput 257#define X_XFixesSelectCursorInput 358#define X_XFixesGetCursorImage 459/*************** Version 2 ******************/60#define X_XFixesCreateRegion 561#define X_XFixesCreateRegionFromBitmap 662#define X_XFixesCreateRegionFromWindow 763#define X_XFixesCreateRegionFromGC 864#define X_XFixesCreateRegionFromPicture 965#define X_XFixesDestroyRegion 1066#define X_XFixesSetRegion 1167#define X_XFixesCopyRegion 1268#define X_XFixesUnionRegion 1369#define X_XFixesIntersectRegion 1470#define X_XFixesSubtractRegion 1571#define X_XFixesInvertRegion 1672#define X_XFixesTranslateRegion 1773#define X_XFixesRegionExtents 1874#define X_XFixesFetchRegion 1975#define X_XFixesSetGCClipRegion 2076#define X_XFixesSetWindowShapeRegion 2177#define X_XFixesSetPictureClipRegion 2278#define X_XFixesSetCursorName 2379#define X_XFixesGetCursorName 2480#define X_XFixesGetCursorImageAndName 2581#define X_XFixesChangeCursor 2682#define X_XFixesChangeCursorByName 2783/*************** Version 3 ******************/84#define X_XFixesExpandRegion 2885/*************** Version 4 ******************/86#define X_XFixesHideCursor 2987#define X_XFixesShowCursor 3088/*************** Version 5 ******************/89#define X_XFixesCreatePointerBarrier 3190#define X_XFixesDestroyPointerBarrier 3291/*************** Version 6 ******************/92#define X_XFixesSetClientDisconnectMode 3393#define X_XFixesGetClientDisconnectMode 349495#define XFixesNumberRequests (X_XFixesGetClientDisconnectMode+1)9697/* Selection events share one event number */98#define XFixesSelectionNotify 099100/* Within the selection, the 'subtype' field distinguishes */101#define XFixesSetSelectionOwnerNotify 0102#define XFixesSelectionWindowDestroyNotify 1103#define XFixesSelectionClientCloseNotify 2104105#define XFixesSetSelectionOwnerNotifyMask (1L << 0)106#define XFixesSelectionWindowDestroyNotifyMask (1L << 1)107#define XFixesSelectionClientCloseNotifyMask (1L << 2)108109/* There's only one cursor event so far */110#define XFixesCursorNotify 1111112#define XFixesDisplayCursorNotify 0113114#define XFixesDisplayCursorNotifyMask (1L << 0)115116#define XFixesNumberEvents (2)117118/* errors */119#define BadRegion 0120#define BadBarrier 1121#define XFixesNumberErrors (BadBarrier+1)122123#define SaveSetNearest 0124#define SaveSetRoot 1125126#define SaveSetMap 0127#define SaveSetUnmap 1128129/*************** Version 2 ******************/130131#define WindowRegionBounding 0132#define WindowRegionClip 1133134/*************** Version 5 ******************/135136#define BarrierPositiveX (1L << 0)137#define BarrierPositiveY (1L << 1)138#define BarrierNegativeX (1L << 2)139#define BarrierNegativeY (1L << 3)140141/*************** Version 6 ******************/142143/* The default server behaviour */144#define XFixesClientDisconnectFlagDefault 0145/* The server may disconnect this client to shut down */146#define XFixesClientDisconnectFlagTerminate (1L << 0)147148#endif /* _XFIXESWIRE_H_ */149150151