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