/* * Copyright 2005, Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT license. * * Author: Stephan Aßmus */ #ifndef OFFSCREEN_WINBORDER_H #define OFFSCREEN_WINBORDER_H #include "WinBorder.h" class BitmapHWInterface; class ServerBitmap; class OffscreenWinBorder : public WinBorder { public: OffscreenWinBorder(ServerBitmap* bitmap, const char* name, ServerWindow* window); virtual ~OffscreenWinBorder(); virtual void Draw(const BRect &r); virtual void MoveBy(float x, float y); virtual void ResizeBy(float x, float y); virtual bool IsOffscreenWindow() const { return true; } virtual void SetTopLayer(Layer* layer); private: ServerBitmap* fBitmap; BitmapHWInterface* fHWInterface; }; #endif