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 BRect
_ButtonsRect() const;
39 BRect
_ButtonRect(const int32
* offsets
,
41 int32
_ConvertFromVisualOrder(int32 button
);
42 void _CreateButtonsPicture();
45 typedef BView inherited
;
47 const MouseSettings
& fSettings
;
49 BPicture fButtonsPicture
;
60 #endif /* MOUSE_VIEW_H */