The C and C++ Include Header Files
/usr/include/X11/extensions/presenttokens.h
$ cat -n /usr/include/X11/extensions/presenttokens.h 1 /* 2 * Copyright © 2013 Keith Packard 3 * 4 * Permission to use, copy, modify, distribute, and sell this software and its 5 * documentation for any purpose is hereby granted without fee, provided that 6 * the above copyright notice appear in all copies and that both that copyright 7 * notice and this permission notice appear in supporting documentation, and 8 * that the name of the copyright holders not be used in advertising or 9 * publicity pertaining to distribution of the software without specific, 10 * written prior permission. The copyright holders make no representations 11 * about the suitability of this software for any purpose. It is provided "as 12 * is" without express or implied warranty. 13 * 14 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 20 * OF THIS SOFTWARE. 21 */ 22 23 #ifndef _PRESENT_TOKENS_H_ 24 #define _PRESENT_TOKENS_H_ 25 26 #define PRESENT_NAME "Present" 27 #define PRESENT_MAJOR 1 28 #define PRESENT_MINOR 3 29 30 #define PresentNumberErrors 0 31 #define PresentNumberEvents 0 32 33 /* Requests */ 34 #define X_PresentQueryVersion 0 35 #define X_PresentPixmap 1 36 #define X_PresentNotifyMSC 2 37 #define X_PresentSelectInput 3 38 #define X_PresentQueryCapabilities 4 39 40 #define PresentNumberRequests 5 41 42 /* Present operation options */ 43 #define PresentOptionNone 0 44 #define PresentOptionAsync (1 << 0) 45 #define PresentOptionCopy (1 << 1) 46 #define PresentOptionUST (1 << 2) 47 #define PresentOptionSuboptimal (1 << 3) 48 #define PresentOptionAsyncMayTear (1 << 4) 49 50 #define PresentAllOptions (PresentOptionAsync | \ 51 PresentOptionCopy | \ 52 PresentOptionUST | \ 53 PresentOptionSuboptimal | \ 54 PresentOptionAsyncMayTear) 55 56 #define PresentAllAsyncOptions (PresentOptionAsync | PresentOptionAsyncMayTear) 57 58 /* Present capabilities */ 59 60 #define PresentCapabilityNone 0 61 #define PresentCapabilityAsync 1 62 #define PresentCapabilityFence 2 63 #define PresentCapabilityUST 4 64 #define PresentCapabilityAsyncMayTear 8 65 66 #define PresentAllCapabilities (PresentCapabilityAsync | \ 67 PresentCapabilityFence | \ 68 PresentCapabilityUST | \ 69 PresentCapabilityAsyncMayTear) 70 71 #define PresentAllAsyncCapabilities (PresentCapabilityAsync | PresentCapabilityAsyncMayTear) 72 73 /* Events */ 74 #define PresentConfigureNotify 0 75 #define PresentCompleteNotify 1 76 #define PresentIdleNotify 2 77 #if PRESENT_FUTURE_VERSION 78 #define PresentRedirectNotify 3 79 #endif 80 81 /* Event Masks */ 82 #define PresentConfigureNotifyMask 1 83 #define PresentCompleteNotifyMask 2 84 #define PresentIdleNotifyMask 4 85 #if PRESENT_FUTURE_VERSION 86 #define PresentRedirectNotifyMask 8 87 #endif 88 89 #if PRESENT_FUTURE_VERSION 90 #define PRESENT_REDIRECT_NOTIFY_MASK PresentRedirectNotifyMask 91 #else 92 #define PRESENT_REDIRECT_NOTIFY_MASK 0 93 #endif 94 95 #define PresentAllEvents (PresentConfigureNotifyMask | \ 96 PresentCompleteNotifyMask | \ 97 PresentIdleNotifyMask | \ 98 PRESENT_REDIRECT_NOTIFY_MASK) 99 100 /* Complete Kinds */ 101 102 #define PresentCompleteKindPixmap 0 103 #define PresentCompleteKindNotifyMSC 1 104 105 /* Complete Modes */ 106 107 #define PresentCompleteModeCopy 0 108 #define PresentCompleteModeFlip 1 109 #define PresentCompleteModeSkip 2 110 #define PresentCompleteModeSuboptimalCopy 3 111 112 #endif
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2024 MyWebUniversity.com ™