xref: /haiku/src/preferences/appearance/ColorWhichItem.h (revision 385ee03ba83b7a40d315e17b03031b3ca37820c0)
1 /*
2  * Copyright 2001-2002 OpenBeOS
3  * Copyright 2003-2016 Haiku, Inc. All rights reserved.
4  * Distributed under the terms of the MIT License.
5  *
6  * Authors:
7  *		DarkWyrm, bpmagic@columbus.rr.com
8  *		Rene Gollent, rene@gollent.com
9  *		Ryan Leavengood, leavengood@gmail.com
10  *		John Scipione, jscipione@gmail.com
11  */
12 #ifndef COLORWHICH_ITEM_H
13 #define COLORWHICH_ITEM_H
14 
15 
16 #include <InterfaceDefs.h>
17 #include <StringItem.h>
18 
19 
20 class ColorWhichItem : public BStringItem
21 {
22 public:
23 							ColorWhichItem(const char* text, color_which which,
24 								rgb_color color);
25 
26 	virtual void			DrawItem(BView* owner, BRect frame, bool complete);
27 
28 			color_which		ColorWhich() { return fColorWhich; };
29 
30 			rgb_color		Color() { return fColor; };
31 			void			SetColor(rgb_color color) { fColor = color; };
32 
33 private:
34 			color_which		fColorWhich;
35 			rgb_color		fColor;
36 };
37 
38 
39 #endif
40