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_SALGTYPE_HXX 25 #define _SV_SALGTYPE_HXX 26 27 #include <vcl/sv.h> 28 29 // ------------ 30 // - SalColor - 31 // ------------ 32 33 typedef sal_uInt32 SalColor; 34 #define MAKE_SALCOLOR( r, g, b ) ((SalColor)(((sal_uInt32)((sal_uInt8)(b))))|(((sal_uInt32)((sal_uInt8)(g)))<<8)|(((sal_uInt32)((sal_uInt8)(r)))<<16)) 35 #define SALCOLOR_RED( n ) ((sal_uInt8)((n)>>16)) 36 #define SALCOLOR_GREEN( n ) ((sal_uInt8)(((sal_uInt16)(n)) >> 8)) 37 #define SALCOLOR_BLUE( n ) ((sal_uInt8)(n)) 38 #define SALCOLOR_NONE (~(SalColor)0) 39 // ------------ 40 // - SalPoint - 41 // ------------ 42 43 // must equal to class Point 44 struct SalPoint 45 { 46 long mnX; 47 long mnY; 48 }; 49 50 typedef const SalPoint* PCONSTSALPOINT; 51 52 // -------------- 53 // - SalTwoRect - 54 // -------------- 55 56 struct SalTwoRect 57 { 58 long mnSrcX; 59 long mnSrcY; 60 long mnSrcWidth; 61 long mnSrcHeight; 62 long mnDestX; 63 long mnDestY; 64 long mnDestWidth; 65 long mnDestHeight; 66 }; 67 68 // --------------- 69 // - SalROPColor - 70 // --------------- 71 72 typedef sal_uInt16 SalROPColor; 73 #define SAL_ROP_0 ((SalROPColor)0) 74 #define SAL_ROP_1 ((SalROPColor)1) 75 #define SAL_ROP_INVERT ((SalROPColor)2) 76 77 // ------------- 78 // - SalInvert - 79 // ------------- 80 81 typedef sal_uInt16 SalInvert; 82 #define SAL_INVERT_HIGHLIGHT ((SalInvert)0x0001) 83 #define SAL_INVERT_50 ((SalInvert)0x0002) 84 #define SAL_INVERT_TRACKFRAME ((SalInvert)0x0004) 85 86 #endif // _SV_SALGTYPE_HXX 87