1/* 2 * Copyright 2001-2014 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _SEPARATOR_ITEM_H 6#define _SEPARATOR_ITEM_H 7 8 9#include <MenuItem.h> 10 11class BMessage; 12 13 14class BSeparatorItem : public BMenuItem { 15public: 16 BSeparatorItem(); 17 BSeparatorItem(BMessage* data); 18 virtual ~BSeparatorItem(); 19 20 static BArchivable* Instantiate(BMessage* data); 21 virtual status_t Archive(BMessage* data, 22 bool deep = true) const; 23 24 virtual void SetEnabled(bool enable); 25 26protected: 27 virtual void GetContentSize(float* _width, float* _height); 28 virtual void Draw(); 29 30private: 31 // FBC padding, reserved and forbidden 32 virtual void _ReservedSeparatorItem1(); 33 virtual void _ReservedSeparatorItem2(); 34 35 BSeparatorItem& operator=(const BSeparatorItem& other); 36 37 uint32 _reserved[1]; 38}; 39 40 41#endif // _SEPARATOR_ITEM_H 42