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
|