1 /* 2 * Copyright 2006, 2011, Stephan Aßmus <superstippi@gmx.de>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef CURRENT_COLOR_H 6 #define CURRENT_COLOR_H 7 8 9 #include <GraphicsDefs.h> 10 11 #include "Observable.h" 12 13 14 class CurrentColor : public Observable { 15 public: 16 CurrentColor(); 17 virtual ~CurrentColor(); 18 19 void SetColor(rgb_color color); 20 inline rgb_color Color() const 21 { return fColor; } 22 23 private: 24 rgb_color fColor; 25 }; 26 27 28 #endif // CURRENT_COLOR_H 29