2 * Copyright 2003-2007, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
17 class DeskButton
: public BView
{
19 DeskButton(BRect frame
, entry_ref
* ref
, const char* name
, BList
& titleList
,
20 BList
& actionList
, uint32 resizeMask
= B_FOLLOW_ALL
,
21 uint32 flags
= B_WILL_DRAW
| B_NAVIGABLE
);
22 DeskButton(BMessage
* archive
);
23 virtual ~DeskButton();
25 // archiving overrides
26 static DeskButton
* Instantiate(BMessage
*data
);
27 virtual status_t
Archive(BMessage
*data
, bool deep
= true) const;
29 // misc BView overrides
30 virtual void AttachedToWindow();
31 virtual void MouseDown(BPoint
);
32 virtual void Draw(BRect updateRect
);
33 virtual void MessageReceived(BMessage
* message
);
38 BList fActionList
, fTitleList
;
41 #endif // DESK_BUTTON_H