Browse code

cleanup repo, spinner and makefile error

lorglas authored onWed/Feb/2020 22:0:th • GitHub committed onWed/Feb/2020 22:0:th
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,47 @@
1
+#ifndef YABVIEW_H
2
+#define YABVIEW_H
3
+
4
+#include <String.h>
5
+#include <View.h>
6
+
7
+struct YabDrawing
8
+{
9
+	int command;
10
+	double x1,y1,x2,y2,x3,y3,x4,y4;
11
+	int r,g,b,alpha;
12
+	const char* chardata;
13
+	pattern p;
14
+	BBitmap *bitmap;
15
+	BFont font;
16
+};
17
+
18
+class YabView : public BView
19
+{
20
+	public:
21
+		YabView(BRect frame, const char *name, uint32 resizingMode, uint32 flags); 
22
+		~YabView();
23
+		virtual void MessageReceived(BMessage *msg);
24
+		virtual void Draw(BRect updateRect);
25
+		virtual void MouseMoved(BPoint point, uint32 transit, const BMessage *message);
26
+		virtual void MouseUp(BPoint point);
27
+		virtual void MouseDown(BPoint point);
28
+		virtual void KeyUp(const char *bytes, int32 numBytes);
29
+		virtual void KeyDown(const char *bytes, int32 numBytes);
30
+		const char* NameForTabView() { return nameWAForTabView; }
31
+		BList *drawList;
32
+		int mouseMovedInfo;
33
+		int mouseStateInfo;
34
+		int mouseX;
35
+		int mouseY;
36
+		uint mouseLButton;
37
+		uint mouseMButton;
38
+		uint mouseRButton;
39
+		bool dropZone;
40
+		BString pressedKeys;
41
+	private:
42
+		int prevMouseStateInfo;
43
+		// TODO: revisit at a later time, more info in constructor
44
+		BString nameWAForTabView;
45
+};
46
+
47
+#endif