-
Notifications
You must be signed in to change notification settings - Fork 10
/
DeskbarControlView.h
44 lines (32 loc) · 1021 Bytes
/
DeskbarControlView.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
/*
* Copyright 2013-2023, Stefano Ceccherini <[email protected]>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef __DESKBAR_CONTROL_H
#define __DESKBAR_CONTROL_H
#include <Messenger.h>
#include <View.h>
class BBitmap;
class DeskbarControlView : public BView {
public:
DeskbarControlView(BRect rect);
DeskbarControlView(BMessage *data);
virtual ~DeskbarControlView();
static DeskbarControlView *Instantiate(BMessage *archive);
virtual status_t Archive(BMessage *message, bool deep = true) const;
virtual void AttachedToWindow();
virtual void DetachedFromWindow();
virtual void FrameResized(float width, float height);
virtual void Draw(BRect rect);
virtual void MessageReceived(BMessage *message);
virtual void MouseDown(BPoint where);
virtual void Pulse();
private:
void _UpdateBitmap();
BBitmap* _LoadIconBitmap(const char* iconName);
BMessenger fAppMessenger;
BBitmap* fBitmap;
bool fRecording;
bool fPaused;
};
#endif // __DESKBAR_CONTROL_H