forked from lorglas/yab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathYabView.h
More file actions
48 lines (44 loc) · 1.11 KB
/
YabView.h
File metadata and controls
48 lines (44 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef YABVIEW_H
#define YABVIEW_H
#include <String.h>
#include <View.h>
struct YabDrawing
{
int command;
double x1,y1,x2,y2,x3,y3,x4,y4;
float r1,r2,r3,r4;
int r,g,b,alpha;
const char* chardata;
pattern p;
BBitmap *bitmap;
BFont font;
};
class YabView : public BView
{
public:
YabView(BRect frame, const char *name, uint32 resizingMode, uint32 flags);
~YabView();
virtual void MessageReceived(BMessage *msg);
virtual void Draw(BRect updateRect);
virtual void MouseMoved(BPoint point, uint32 transit, const BMessage *message);
virtual void MouseUp(BPoint point);
virtual void MouseDown(BPoint point);
virtual void KeyUp(const char *bytes, int32 numBytes);
virtual void KeyDown(const char *bytes, int32 numBytes);
const char* NameForTabView() { return nameWAForTabView; }
BList *drawList;
int mouseMovedInfo;
int mouseStateInfo;
int mouseX;
int mouseY;
uint mouseLButton;
uint mouseMButton;
uint mouseRButton;
bool dropZone;
BString pressedKeys;
private:
int prevMouseStateInfo;
// TODO: revisit at a later time, more info in constructor
BString nameWAForTabView;
};
#endif