2 Copyright 1989, 1998 The Open Group
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
7 copyright notice and this permission notice appear in supporting
10 The above copyright notice and this permission notice shall be included in
11 all copies or substantial portions of the Software.
13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
17 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 Except as contained in this notice, the name of The Open Group shall not be
21 used in advertising or otherwise to promote the sale, use or other dealings
22 in this Software without prior written authorization from The Open Group.
25 #ifndef _MULTIBUFCONST_H_
26 #define _MULTIBUFCONST_H_
28 #define MULTIBUFFER_PROTOCOL_NAME "Multi-Buffering"
30 #define MULTIBUFFER_MAJOR_VERSION 1 /* current version numbers */
31 #define MULTIBUFFER_MINOR_VERSION 1 /* has ClearImageBufferArea */
36 #define MultibufferUpdateActionUndefined 0
37 #define MultibufferUpdateActionBackground 1
38 #define MultibufferUpdateActionUntouched 2
39 #define MultibufferUpdateActionCopied 3
44 #define MultibufferUpdateHintFrequent 0
45 #define MultibufferUpdateHintIntermittent 1
46 #define MultibufferUpdateHintStatic 2
51 #define MultibufferWindowUpdateHint (1L << 0)
52 #define MultibufferBufferEventMask (1L << 0)
55 * mono vs. stereo and left vs. right
57 #define MultibufferModeMono 0
58 #define MultibufferModeStereo 1
59 #define MultibufferSideMono 0
60 #define MultibufferSideLeft 1
61 #define MultibufferSideRight 2
66 #define MultibufferUnclobbered 0
67 #define MultibufferPartiallyClobbered 1
68 #define MultibufferFullyClobbered 2
73 #define MultibufferClobberNotifyMask 0x02000000
74 #define MultibufferUpdateNotifyMask 0x04000000
76 #define MultibufferClobberNotify 0
77 #define MultibufferUpdateNotify 1
78 #define MultibufferNumberEvents (MultibufferUpdateNotify + 1)
80 #define MultibufferBadBuffer 0
81 #define MultibufferNumberErrors (MultibufferBadBuffer + 1)
83 #endif /* _MULTIBUFCONST_H_ */