#ifndef DESK_BUTTON_H
#define DESK_BUTTON_H
#include <View.h>
#include <List.h>
#include <Entry.h>
class DeskButton : public BView {
public:
DeskButton(BRect frame, entry_ref* ref, const char* name, BList& titleList,
BList& actionList, uint32 resizeMask = B_FOLLOW_ALL,
uint32 flags = B_WILL_DRAW | B_NAVIGABLE);
DeskButton(BMessage* archive);
virtual ~DeskButton();
static DeskButton* Instantiate(BMessage *data);
virtual status_t Archive(BMessage *data, bool deep = true) const;
virtual void AttachedToWindow();
virtual void MouseDown(BPoint);
virtual void Draw(BRect updateRect);
virtual void MessageReceived(BMessage* message);
private:
BBitmap* fSegments;
entry_ref fRef;
BList fActionList, fTitleList;
};
#endif