359c905c57
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13448 a95241bf-73f2-0310-859d-f6bbb57e9c96
39 lines
836 B
C++
39 lines
836 B
C++
/*
|
|
* Copyright 2005, Haiku, Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT license.
|
|
*
|
|
* Author: Stephan Aßmus <superstippi@gmx.de>
|
|
*/
|
|
|
|
#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
|