3rdparty/licenseReport: Add seperate LGPL checks
[haiku.git] / src / add-ons / screen_savers / gravity / ColorItem.h
blob7939c375661cea012af9654083184abc82d7fefe
1 /*
2 * Copyright 2016 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * John Scipione, jscipione@gmail.com
8 * Based on ColorWhichItem by DarkWyrm (bpmagic@columbus.rr.com)
9 */
10 #ifndef _COLOR_ITEM_H
11 #define _COLOR_ITEM_H
14 #include <InterfaceDefs.h>
15 #include <StringItem.h>
18 class ColorItem : public BStringItem {
19 public:
20 ColorItem(const char* string, rgb_color color);
22 virtual void DrawItem(BView* owner, BRect frame, bool complete);
23 virtual void SetColor(rgb_color color);
25 private:
26 rgb_color fColor;
30 #endif // _COLOR_ITEM_H