forked from HaikuArchives/Weather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForecastDeskbarView.h
36 lines (31 loc) · 939 Bytes
/
ForecastDeskbarView.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
/*
* Copyright 2018 Benjamin Amos
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef FORECASTDESKBARVIEW_H
#define FORECASTDESKBARVIEW_H
#include <SupportDefs.h>
#include <View.h>
#include <Bitmap.h>
#include <MessageRunner.h>
#include <Looper.h>
#include <Entry.h>
#include "ForecastView.h"
class ForecastDeskbarView : public BView
{
public:
ForecastDeskbarView(BRect viewSize, ForecastView* forecastView);
~ForecastDeskbarView();
virtual void AttachedToWindow();
virtual void MouseDown(BPoint point);
virtual void MouseMoved(BPoint point, uint32 message, const BMessage* dragMessage);
virtual void Draw(BRect drawRect);
virtual void MessageReceived(BMessage* message);
static BArchivable* Instantiate(BMessage* archive);
void SetAppLocation(entry_ref location);
private:
ForecastView* fForecastView;
BMessageRunner* fMessageRunner;
entry_ref fAppRef;
};
#endif // FORECASTDESKBARVIEW_H