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