1/*
2 * Copyright 2016-2022 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		John Scipione, jscipione@gmail.com
7 *
8 * Based on ColorWhichItem by DarkWyrm (bpmagic@columbus.rr.com)
9 */
10#ifndef _COLOR_ITEM_H
11#define _COLOR_ITEM_H
12
13
14#include <InterfaceDefs.h>
15#include <StringItem.h>
16
17
18class ColorItem : public BStringItem {
19public:
20							ColorItem(const char* string, rgb_color color);
21
22	virtual	void			DrawItem(BView* owner, BRect frame, bool complete);
23			void			SetColor(rgb_color color) { fColor = color; }
24			rgb_color		Color() const { return fColor; }
25
26private:
27			rgb_color		fColor;
28};
29
30
31#endif	// _COLOR_ITEM_H
32