#ifndef _ACTIVITY_H_ #define _ACTIVITY_H_ #include #include #include #include #include class Activity : public BView { public: Activity(BRect frame, const char* name, uint32 resizing_mode, uint32 flags); ~Activity(); void Start(); void Pause(); void Stop(); bool IsRunning(); virtual void AllAttached(); virtual void Pulse(); virtual void Draw(BRect draw); virtual void FrameResized(float width, float height); private: void _CreateBitmap(); void _LightenBitmapHighColor(rgb_color* color); void _DrawOnBitmap(bool running); bool fIsRunning; pattern fPattern; BBitmap* fBitmap; BView* fBitmapView; }; #endif // _ACTIVITY_H_