2 * Copyright 2003-2015 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
7 * Axel Dörfler (axeld@pinc-software.de)
8 * Andrew McCall (mccall@digitalparadise.co.uk)
16 #include <PopUpMenu.h>
22 class MouseView
: public BView
{
24 MouseView(const MouseSettings
& settings
);
27 void SetMouseType(int32 type
);
28 void MouseMapUpdated();
29 void UpdateFromSettings();
31 virtual void GetPreferredSize(float* _width
, float* _height
);
32 virtual void AttachedToWindow();
33 virtual void MouseUp(BPoint where
);
34 virtual void MouseDown(BPoint where
);
35 virtual void Draw(BRect frame
);
38 int32
_ConvertFromVisualOrder(int32 button
);
39 void _CreateButtonsPicture();
42 typedef BView inherited
;
44 const MouseSettings
& fSettings
;
46 BPicture fButtonsPicture
;
56 #endif /* MOUSE_VIEW_H */