Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/X11/extensions/xfixeswire.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
0003  * Copyright 2010 Red Hat, Inc.
0004  *
0005  * Permission is hereby granted, free of charge, to any person obtaining a
0006  * copy of this software and associated documentation files (the "Software"),
0007  * to deal in the Software without restriction, including without limitation
0008  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0009  * and/or sell copies of the Software, and to permit persons to whom the
0010  * Software is furnished to do so, subject to the following conditions:
0011  *
0012  * The above copyright notice and this permission notice (including the next
0013  * paragraph) shall be included in all copies or substantial portions of the
0014  * Software.
0015  *
0016  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0017  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0018  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0019  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0020  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0021  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
0022  * DEALINGS IN THE SOFTWARE.
0023  */
0024 /*
0025  * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
0026  *
0027  * Permission to use, copy, modify, distribute, and sell this software and its
0028  * documentation for any purpose is hereby granted without fee, provided that
0029  * the above copyright notice appear in all copies and that both that
0030  * copyright notice and this permission notice appear in supporting
0031  * documentation, and that the name of Keith Packard not be used in
0032  * advertising or publicity pertaining to distribution of the software without
0033  * specific, written prior permission.  Keith Packard makes no
0034  * representations about the suitability of this software for any purpose.  It
0035  * is provided "as is" without express or implied warranty.
0036  *
0037  * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
0038  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
0039  * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
0040  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
0041  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
0042  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
0043  * PERFORMANCE OF THIS SOFTWARE.
0044  */
0045 
0046 
0047 #ifndef _XFIXESWIRE_H_
0048 #define _XFIXESWIRE_H_
0049 
0050 #define XFIXES_NAME "XFIXES"
0051 #define XFIXES_MAJOR    5
0052 #define XFIXES_MINOR    0
0053 
0054 /*************** Version 1 ******************/
0055 #define X_XFixesQueryVersion            0
0056 #define X_XFixesChangeSaveSet           1
0057 #define X_XFixesSelectSelectionInput        2
0058 #define X_XFixesSelectCursorInput       3
0059 #define X_XFixesGetCursorImage          4
0060 /*************** Version 2 ******************/
0061 #define X_XFixesCreateRegion            5
0062 #define X_XFixesCreateRegionFromBitmap      6
0063 #define X_XFixesCreateRegionFromWindow      7
0064 #define X_XFixesCreateRegionFromGC      8
0065 #define X_XFixesCreateRegionFromPicture     9
0066 #define X_XFixesDestroyRegion           10
0067 #define X_XFixesSetRegion           11
0068 #define X_XFixesCopyRegion          12
0069 #define X_XFixesUnionRegion         13
0070 #define X_XFixesIntersectRegion         14
0071 #define X_XFixesSubtractRegion          15
0072 #define X_XFixesInvertRegion            16
0073 #define X_XFixesTranslateRegion         17
0074 #define X_XFixesRegionExtents           18
0075 #define X_XFixesFetchRegion         19
0076 #define X_XFixesSetGCClipRegion         20
0077 #define X_XFixesSetWindowShapeRegion        21
0078 #define X_XFixesSetPictureClipRegion        22
0079 #define X_XFixesSetCursorName           23
0080 #define X_XFixesGetCursorName           24
0081 #define X_XFixesGetCursorImageAndName       25
0082 #define X_XFixesChangeCursor            26
0083 #define X_XFixesChangeCursorByName      27
0084 /*************** Version 3 ******************/
0085 #define X_XFixesExpandRegion            28
0086 /*************** Version 4 ******************/
0087 #define X_XFixesHideCursor          29
0088 #define X_XFixesShowCursor          30
0089 /*************** Version 5 ******************/
0090 #define X_XFixesCreatePointerBarrier        31
0091 #define X_XFixesDestroyPointerBarrier       32
0092 
0093 #define XFixesNumberRequests            (X_XFixesDestroyPointerBarrier+1)
0094 
0095 /* Selection events share one event number */
0096 #define XFixesSelectionNotify           0
0097 
0098 /* Within the selection, the 'subtype' field distinguishes */
0099 #define XFixesSetSelectionOwnerNotify       0
0100 #define XFixesSelectionWindowDestroyNotify  1
0101 #define XFixesSelectionClientCloseNotify    2
0102 
0103 #define XFixesSetSelectionOwnerNotifyMask   (1L << 0)
0104 #define XFixesSelectionWindowDestroyNotifyMask  (1L << 1)
0105 #define XFixesSelectionClientCloseNotifyMask    (1L << 2)
0106 
0107 /* There's only one cursor event so far */
0108 #define XFixesCursorNotify          1
0109 
0110 #define XFixesDisplayCursorNotify       0
0111 
0112 #define XFixesDisplayCursorNotifyMask       (1L << 0)
0113 
0114 #define XFixesNumberEvents          (2)
0115 
0116 /* errors */
0117 #define BadRegion               0
0118 #define BadBarrier              1
0119 #define XFixesNumberErrors          (BadBarrier+1)
0120 
0121 #define SaveSetNearest              0
0122 #define SaveSetRoot             1
0123 
0124 #define SaveSetMap              0
0125 #define SaveSetUnmap                1
0126 
0127 /*************** Version 2 ******************/
0128 
0129 #define WindowRegionBounding            0
0130 #define WindowRegionClip            1
0131 
0132 /*************** Version 5 ******************/
0133 
0134 #define BarrierPositiveX            (1L << 0)
0135 #define BarrierPositiveY            (1L << 1)
0136 #define BarrierNegativeX            (1L << 2)
0137 #define BarrierNegativeY            (1L << 3)
0138 
0139 #endif  /* _XFIXESWIRE_H_ */