haiku/src/preferences/time/AnalogClock.h
Karsten Heimrich 85b69a9437 * code cleanup, small refactoring
* 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
2007-10-21 12:40:57 +00:00

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