2 * Copyright 2001-2009, Haiku.
3 * Copyright 2002, Thomas Kurschel.
4 * Distributed under the terms of the MIT License.
9 * Axel Dörfler, axeld@pinc-software.de
11 #ifndef MONITOR_VIEW_H
12 #define MONITOR_VIEW_H
18 class MonitorView
: public BView
{
20 MonitorView(BRect frame
, const char* name
,
21 int32 screenWidth
, int32 screenHeight
);
22 virtual ~MonitorView();
24 virtual void AttachedToWindow();
25 virtual void Draw(BRect updateRect
);
26 virtual void MessageReceived(BMessage
*message
);
27 virtual void MouseDown(BPoint point
);
29 void SetResolution(int32 width
, int32 height
);
30 void SetMaxResolution(int32 width
, int32 height
);
33 BRect
_MonitorBounds();
36 rgb_color fBackgroundColor
;
37 rgb_color fDesktopColor
;
45 #endif /* MONITOR_VIEW_H */