2007-10-29 13:40:16 +03:00
|
|
|
/*
|
2009-08-27 15:12:41 +04:00
|
|
|
* Copyright 2001-2009, Haiku, Inc. All rights reserved.
|
2007-10-29 13:40:16 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2004-12-30 13:11:38 +03:00
|
|
|
#ifndef _SEPARATOR_ITEM_H
|
|
|
|
#define _SEPARATOR_ITEM_H
|
|
|
|
|
2009-08-27 15:12:41 +04:00
|
|
|
|
2004-12-30 13:11:38 +03:00
|
|
|
#include <MenuItem.h>
|
|
|
|
|
|
|
|
class BMessage;
|
2009-08-27 15:12:41 +04:00
|
|
|
|
|
|
|
|
2004-12-30 13:11:38 +03:00
|
|
|
class BSeparatorItem : public BMenuItem {
|
|
|
|
public:
|
2009-08-27 15:12:41 +04:00
|
|
|
BSeparatorItem();
|
|
|
|
BSeparatorItem(BMessage* archive);
|
|
|
|
virtual ~BSeparatorItem();
|
|
|
|
|
|
|
|
static BArchivable* Instantiate(BMessage* archive);
|
|
|
|
virtual status_t Archive(BMessage* archive,
|
|
|
|
bool deep = true) const;
|
2004-12-30 13:11:38 +03:00
|
|
|
|
2009-08-27 15:12:41 +04:00
|
|
|
virtual void SetEnabled(bool state);
|
2004-12-30 13:11:38 +03:00
|
|
|
|
|
|
|
protected:
|
2009-08-27 15:12:41 +04:00
|
|
|
virtual void GetContentSize(float* _width, float* _height);
|
|
|
|
virtual void Draw();
|
2004-12-30 13:11:38 +03:00
|
|
|
|
|
|
|
private:
|
2009-08-27 15:12:41 +04:00
|
|
|
// FBC padding, reserved and forbidden
|
|
|
|
virtual void _ReservedSeparatorItem1();
|
|
|
|
virtual void _ReservedSeparatorItem2();
|
2004-12-30 13:11:38 +03:00
|
|
|
|
2009-08-27 15:12:41 +04:00
|
|
|
BSeparatorItem& operator=(const BSeparatorItem& other);
|
2004-12-30 13:11:38 +03:00
|
|
|
|
2009-08-27 15:12:41 +04:00
|
|
|
uint32 _reserved[1];
|
2004-12-30 13:11:38 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-08-27 15:12:41 +04:00
|
|
|
#endif // _SEPARATOR_ITEM_H
|