1 /* 2 * Copyright 2014, Stephan Aßmus <superstippi@gmx.de>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef LINKED_BITMAP_VIEW_H 6 #define LINKED_BITMAP_VIEW_H 7 8 9 #include <Invoker.h> 10 11 #include "BitmapView.h" 12 13 14 class LinkedBitmapView : public BitmapView, public BInvoker { 15 public: 16 LinkedBitmapView(const char* name, 17 BMessage* message); 18 19 virtual void AllAttached(); 20 21 virtual void MouseMoved(BPoint where, uint32 transit, 22 const BMessage* dragMessage); 23 virtual void MouseDown(BPoint where); 24 25 void SetEnabled(bool enabled); 26 27 private: 28 void _UpdateViewCursor(); 29 30 private: 31 bool fEnabled; 32 bool fMouseInside; 33 }; 34 35 36 #endif // LINKED_BITMAP_VIEW_H 37