Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:18

0001 /*
0002 Copyright 1989, 1998  The Open Group
0003 
0004 Permission to use, copy, modify, distribute, and sell this software and its
0005 documentation for any purpose is hereby granted without fee, provided that
0006 the above copyright notice appear in all copies and that both that
0007 copyright notice and this permission notice appear in supporting
0008 documentation.
0009 
0010 The above copyright notice and this permission notice shall be included in
0011 all copies or substantial portions of the Software.
0012 
0013 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0014 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0015 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0016 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0017 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0018 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0019 
0020 Except as contained in this notice, the name of The Open Group shall not be
0021 used in advertising or otherwise to promote the sale, use or other dealings
0022 in this Software without prior written authorization from The Open Group.
0023  */
0024 
0025 #ifndef _MULTIBUFCONST_H_
0026 #define _MULTIBUFCONST_H_
0027 
0028 #define MULTIBUFFER_PROTOCOL_NAME "Multi-Buffering"
0029 
0030 #define MULTIBUFFER_MAJOR_VERSION   1   /* current version numbers */
0031 #define MULTIBUFFER_MINOR_VERSION   1   /* has ClearImageBufferArea */
0032 
0033 /*
0034  * update_action field
0035  */
0036 #define MultibufferUpdateActionUndefined    0
0037 #define MultibufferUpdateActionBackground   1
0038 #define MultibufferUpdateActionUntouched    2
0039 #define MultibufferUpdateActionCopied       3
0040 
0041 /*
0042  * update_hint field
0043  */
0044 #define MultibufferUpdateHintFrequent       0
0045 #define MultibufferUpdateHintIntermittent   1
0046 #define MultibufferUpdateHintStatic     2
0047 
0048 /*
0049  * valuemask fields
0050  */
0051 #define MultibufferWindowUpdateHint (1L << 0)
0052 #define MultibufferBufferEventMask  (1L << 0)
0053 
0054 /*
0055  * mono vs. stereo and left vs. right
0056  */
0057 #define MultibufferModeMono     0
0058 #define MultibufferModeStereo       1
0059 #define MultibufferSideMono     0
0060 #define MultibufferSideLeft     1
0061 #define MultibufferSideRight        2
0062 
0063 /*
0064  * clobber state
0065  */
0066 #define MultibufferUnclobbered      0
0067 #define MultibufferPartiallyClobbered   1
0068 #define MultibufferFullyClobbered   2
0069 
0070 /*
0071  * event stuff
0072  */
0073 #define MultibufferClobberNotifyMask    0x02000000
0074 #define MultibufferUpdateNotifyMask 0x04000000
0075 
0076 #define MultibufferClobberNotify    0
0077 #define MultibufferUpdateNotify     1
0078 #define MultibufferNumberEvents     (MultibufferUpdateNotify + 1)
0079 
0080 #define MultibufferBadBuffer        0
0081 #define MultibufferNumberErrors     (MultibufferBadBuffer + 1)
0082 
0083 #endif /* _MULTIBUFCONST_H_ */