xref: /trunk/main/vcl/inc/aqua/salconst.h (revision 79aad27f)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SV_SALCONST_H
25 #define _SV_SALCONST_H
26 
27 // -------------------
28 // - Constants -
29 // -------------------
30 
31 static const unsigned short kByteMask = 0xFF;
32 
33 static const unsigned short kOneByte  =  8;
34 static const unsigned short kTwoBytes = 16;
35 
36 static const unsigned short kOneBit     =  1;
37 static const unsigned short kFiveBits   =  5;
38 static const unsigned short kEightBits  =  8;
39 static const unsigned short kTenBits    = 10;
40 static const unsigned short kElevenBits = 11;
41 
42 static const unsigned short kBlackAndWhite  =  1;
43 static const unsigned short kFourBitColor   =  4;
44 static const unsigned short kEightBitColor  =  8;
45 static const unsigned short kThousandsColor = 16;
46 static const unsigned short kTrueColor      = 32;
47 
48 static const unsigned long k16BitRedColorMask   = 0x00007c00;
49 static const unsigned long k16BitGreenColorMask = 0x000003e0;
50 static const unsigned long k16BitBlueColorMask  = 0x0000001f;
51 
52 static const unsigned long k32BitRedColorMask   = 0x00ff0000;
53 static const unsigned long k32BitGreenColorMask = 0x0000ff00;
54 static const unsigned long k32BitBlueColorMask  = 0x000000ff;
55 
56 static const unsigned short kPixMapCmpSizeOneBit    =  1;
57 static const unsigned short kPixMapCmpSizeFourBits  =  4;
58 static const unsigned short kPixMapCmpSizeFiveBits  =  5;
59 static const unsigned short kPixMapCmpSizeEightBits =  8;
60 
61 static const long kPixMapHRes = 72;
62 static const long kPixMapVRes = 72;
63 
64 #endif // _SV_SALCONST_H
65