xref: /haiku/src/servers/app/OffscreenWindow.h (revision d99d8dbdd291ce586abc97b973626acfe138f12f)
1 /*
2  * Copyright 2005-2008, Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT license.
4  *
5  * Author:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 #ifndef OFFSCREEN_WINDOW_H
9 #define OFFSCREEN_WINDOW_H
10 
11 
12 #include "Window.h"
13 
14 #include <AutoDeleter.h>
15 
16 
17 class BitmapHWInterface;
18 class ServerBitmap;
19 
20 class OffscreenWindow : public Window {
21 public:
22 							OffscreenWindow(ServerBitmap* bitmap,
23 								const char* name, ::ServerWindow* window);
24 	virtual					~OffscreenWindow();
25 
IsOffscreenWindow()26 	virtual	bool			IsOffscreenWindow() const
27 								{ return true; }
28 
29 private:
30 	ServerBitmap*			fBitmap;
31 	ObjectDeleter<BitmapHWInterface>
32 							fHWInterface;
33 };
34 
35 #endif	// OFFSCREEN_WINDOW_H
36