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 17class BitmapHWInterface; 18class ServerBitmap; 19 20class OffscreenWindow : public Window { 21public: 22 OffscreenWindow(ServerBitmap* bitmap, 23 const char* name, ::ServerWindow* window); 24 virtual ~OffscreenWindow(); 25 26 virtual bool IsOffscreenWindow() const 27 { return true; } 28 29private: 30 ServerBitmap* fBitmap; 31 ObjectDeleter<BitmapHWInterface> 32 fHWInterface; 33}; 34 35#endif // OFFSCREEN_WINDOW_H 36