1 /* 2 * Copyright 2002-2006, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Mattias Sundblad 7 * Andrew Bachmann 8 */ 9 #ifndef COLOR_MENU_ITEM_H 10 #define COLOR_MENU_ITEM_H 11 12 13 #include <MenuItem.h> 14 15 16 class BMessage; 17 18 19 class ColorMenuItem: public BMenuItem { 20 public: 21 ColorMenuItem(const char* label, rgb_color color, 22 BMessage* message); 23 rgb_color Color() { return fItemColor; }; 24 25 protected: 26 virtual void DrawContent(); 27 28 private: 29 rgb_color fItemColor; 30 }; 31 32 #endif // COLOR_MENU_ITEM_H 33 34