xref: /haiku/headers/os/interface/SeparatorItem.h (revision 5d10a74cfb0cda1cd6253ac210dc9cea28faf700)
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 
11 class BMessage;
12 
13 
14 class BSeparatorItem : public BMenuItem {
15 public:
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 
26 protected:
27 	virtual	void				GetContentSize(float* _width, float* _height);
28 	virtual	void				Draw();
29 
30 private:
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