2 * Copyright 1999, Be Incorporated. All Rights Reserved.
3 * This file may be used under the terms of the Be Sample Code License.
17 class TOffscreenView
: public BView
{
19 TOffscreenView(BRect frame
, const char *name
, short mRadius
,
20 short hRadius
, short offset
, long face
, bool show
);
21 virtual ~TOffscreenView();
40 BBitmap
*fClockFace
[9];
42 BPoint fHourPoints
[60];
43 BPoint fMinutePoints
[60];
47 class TOnscreenView
: public BView
{
49 TOnscreenView(BRect frame
, const char *name
,
50 short mRadius
, short hRadius
, short offset
);
51 TOnscreenView(BMessage
*data
);
52 virtual ~TOnscreenView();
54 static BArchivable
*Instantiate(BMessage
*data
);
55 virtual status_t
Archive(BMessage
*data
, bool deep
= true) const;
56 void InitObject(BRect frame
, short mRadius
, short hRadius
,
57 short offset
, long face
, bool show
);
60 virtual void Draw(BRect updateRect
);
61 virtual void MouseDown(BPoint point
);
62 virtual void MessageReceived(BMessage
*msg
);
65 void UseFace(short face
);
67 short ReturnSeconds();
68 void ShowSecs(bool secs
);
72 TOffscreenView
*fOffscreenView
;