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 MouseMoved(BPoint where, uint32 transit, 20 const BMessage* dragMessage); 21 virtual void MouseDown(BPoint where); 22 23 void SetEnabled(bool enabled); 24 25 private: 26 void _UpdateViewCursor(); 27 28 private: 29 bool fEnabled; 30 bool fMouseInside; 31 }; 32 33 34 #endif // LINKED_BITMAP_VIEW_H 35