-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDeskbarView.h
47 lines (34 loc) · 857 Bytes
/
DeskbarView.h
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
/*
* Copyright 2017 All rights reserved.
* Distributed under the terms of the MIT license.
*
* Author:
* Khaled Berraoui <[email protected]>
*
*/
#ifndef DESKBARVIEW_H
#define DESKBARVIEW_H
#include <Window.h>
class BView;
class BBitmap;
class BPopUpMenu;
class DeskbarView : public BView
{
public:
DeskbarView(BRect frame, uint32 resizingMode);
DeskbarView(BMessage *message);
virtual ~DeskbarView();
void MessageReceived(BMessage *message);
static DeskbarView *Instantiate(BMessage *message);
virtual status_t Archive(BMessage *message, bool deep = true) const;
void AttachedToWindow();
void Draw(BRect rect);
void MouseDown(BPoint location);
private:
void Init();
void RightClick(BPoint location);
void LeftClick(BPoint location);
private:
BBitmap *fIcon;
};
#endif // DESKBAR_H