1 /* 2 * Copyright 2001-2008, Haiku. 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 */ 10 11 12 #ifndef COLORWHICH_ITEM_H 13 #define COLORWHICH_ITEM_H 14 15 #include <InterfaceDefs.h> 16 #include <ListItem.h> 17 #include <View.h> 18 19 class ColorWhichItem : public BStringItem 20 { 21 public: 22 ColorWhichItem(const char* text, color_which which, rgb_color color); 23 24 virtual void DrawItem(BView *owner, BRect frame, bool complete); 25 color_which ColorWhich(void); 26 void SetColor(rgb_color color); 27 28 private: 29 color_which fColorWhich; 30 rgb_color fColor; 31 }; 32 33 #endif 34