85b69a9437
* make the panel font sensitve within the possible plain font range git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22633 a95241bf-73f2-0310-859d-f6bbb57e9c96
40 lines
740 B
C++
40 lines
740 B
C++
/*
|
|
* Copyright 2004-2007, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Mike Berg <mike@berg-net.us>
|
|
* Julun <host.haiku@gmx.de>
|
|
*/
|
|
#ifndef ANALOG_CLOCK_H
|
|
#define ANALOG_CLOCK_H
|
|
|
|
|
|
#include <View.h>
|
|
|
|
|
|
class BBitmap;
|
|
class OffscreenClock;
|
|
|
|
|
|
class TAnalogClock : public BView {
|
|
public:
|
|
TAnalogClock(BRect frame, const char *name);
|
|
virtual ~TAnalogClock();
|
|
|
|
virtual void AttachedToWindow();
|
|
virtual void Draw(BRect updateRect);
|
|
virtual void MessageReceived(BMessage *message);
|
|
|
|
void SetTime(int32 hour, int32 minute, int32 second);
|
|
|
|
private:
|
|
void _InitView(BRect frame);
|
|
|
|
BBitmap *fBitmap;
|
|
OffscreenClock *fClock;
|
|
};
|
|
|
|
#endif // ANALOG_CLOCK_H
|
|
|