tcp: Fix 64 bit build with debugging features enabled.
[haiku.git] / src / preferences / mouse / MouseView.h
blobe6238cb5208aa3a3732c396eb81abad4160d48c1
1 /*
2 * Copyright 2003-2015 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Jérôme Duval,
7 * Axel Dörfler (axeld@pinc-software.de)
8 * Andrew McCall (mccall@digitalparadise.co.uk)
9 */
10 #ifndef MOUSE_VIEW_H
11 #define MOUSE_VIEW_H
14 #include <Bitmap.h>
15 #include <Picture.h>
16 #include <PopUpMenu.h>
17 #include <View.h>
20 class MouseSettings;
22 class MouseView : public BView {
23 public:
24 MouseView(const MouseSettings& settings);
25 virtual ~MouseView();
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);
37 private:
38 int32 _ConvertFromVisualOrder(int32 button);
39 void _CreateButtonsPicture();
41 private:
42 typedef BView inherited;
44 const MouseSettings& fSettings;
46 BPicture fButtonsPicture;
47 int32 fDigitBaseline;
48 int32 fDigitHeight;
50 int32 fType;
51 uint32 fButtons;
52 uint32 fOldButtons;
56 #endif /* MOUSE_VIEW_H */