14f506f19SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
34f506f19SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
44f506f19SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
54f506f19SAndrew Rist  * distributed with this work for additional information
64f506f19SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
74f506f19SAndrew Rist  * to you under the Apache License, Version 2.0 (the
84f506f19SAndrew Rist  * "License"); you may not use this file except in compliance
94f506f19SAndrew Rist  * with the License.  You may obtain a copy of the License at
104f506f19SAndrew Rist  *
114f506f19SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
124f506f19SAndrew Rist  *
134f506f19SAndrew Rist  * Unless required by applicable law or agreed to in writing,
144f506f19SAndrew Rist  * software distributed under the License is distributed on an
154f506f19SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
164f506f19SAndrew Rist  * KIND, either express or implied.  See the License for the
174f506f19SAndrew Rist  * specific language governing permissions and limitations
184f506f19SAndrew Rist  * under the License.
194f506f19SAndrew Rist  *
204f506f19SAndrew Rist  *************************************************************/
214f506f19SAndrew Rist 
224f506f19SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef INCLUDED_DRAWINGLAYER_PROCESSOR2D_VCLHELPERBUFFERDEVICE_HXX
25cdf0e10cSrcweir #define INCLUDED_DRAWINGLAYER_PROCESSOR2D_VCLHELPERBUFFERDEVICE_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <vcl/virdev.hxx>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
30cdf0e10cSrcweir // predefines
31cdf0e10cSrcweir 
32cdf0e10cSrcweir namespace basegfx { class B2DRange; }
33cdf0e10cSrcweir 
34cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
35cdf0e10cSrcweir // support methods for vcl direct gradient renderering
36cdf0e10cSrcweir 
37cdf0e10cSrcweir namespace drawinglayer
38cdf0e10cSrcweir {
39cdf0e10cSrcweir 	class impBufferDevice
40cdf0e10cSrcweir 	{
41*ce37d08fSArmin Le Grand         OutputDevice&                       mrOutDev;
42*ce37d08fSArmin Le Grand         VirtualDevice*                      mpContent;
43*ce37d08fSArmin Le Grand         VirtualDevice*                      mpMask;
44*ce37d08fSArmin Le Grand         VirtualDevice*                      mpAlpha;
45*ce37d08fSArmin Le Grand         Rectangle                           maDestPixel;
46cdf0e10cSrcweir 
47cdf0e10cSrcweir 	public:
48cdf0e10cSrcweir 		impBufferDevice(
49cdf0e10cSrcweir 			OutputDevice& rOutDev,
50cdf0e10cSrcweir 			const basegfx::B2DRange& rRange,
51cdf0e10cSrcweir 			bool bAddOffsetToMapping);
52cdf0e10cSrcweir 		~impBufferDevice();
53cdf0e10cSrcweir 
54cdf0e10cSrcweir 		void paint(double fTrans = 0.0);
isVisible() const55cdf0e10cSrcweir 		bool isVisible() const { return !maDestPixel.IsEmpty(); }
56*ce37d08fSArmin Le Grand 		VirtualDevice& getContent();
57cdf0e10cSrcweir 		VirtualDevice& getMask();
58cdf0e10cSrcweir 		VirtualDevice& getTransparence();
59cdf0e10cSrcweir 	};
60cdf0e10cSrcweir } // end of namespace drawinglayer
61cdf0e10cSrcweir 
62cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
63cdf0e10cSrcweir 
64cdf0e10cSrcweir #endif // INCLUDED_DRAWINGLAYER_PROCESSOR2D_VCLHELPERBUFFERDEVICE_HXX
65cdf0e10cSrcweir 
66cdf0e10cSrcweir // eof
67