1 /* 2 * Copyright 2001-2005, Haiku. 3 * Copyright 2002, Thomas Kurschel. 4 * Distributed under the terms of the MIT License. 5 * 6 * Authors: 7 * Rafael Romo 8 * Thomas Kurschel 9 * Axel Dörfler, axeld@pinc-software.de 10 */ 11 #ifndef MONITOR_VIEW_H 12 #define MONITOR_VIEW_H 13 14 15 #include <View.h> 16 17 18 class MonitorView : public BView { 19 public: 20 MonitorView(BRect frame, char *name, int32 screenWidth, int32 screenHeight); 21 ~MonitorView(); 22 23 virtual void AttachedToWindow(); 24 virtual void Draw(BRect updateRect); 25 virtual void MessageReceived(BMessage *message); 26 virtual void MouseDown(BPoint point); 27 28 void SetResolution(int32 width, int32 height); 29 30 private: 31 BRect MonitorBounds(); 32 33 rgb_color fDesktopColor; 34 int32 fWidth; 35 int32 fHeight; 36 }; 37 38 #endif /* MONITOR_VIEW_H */ 39