xref: /haiku/src/apps/icon-o-matic/style/CurrentColor.h (revision 1acbe440b8dd798953bec31d18ee589aa3f71b73)
1 /*
2  * Copyright 2006, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef CURRENT_COLOR_H
10 #define CURRENT_COLOR_H
11 
12 #include <GraphicsDefs.h>
13 
14 #include "Observable.h"
15 
16 class CurrentColor : public Observable {
17  public:
18 								CurrentColor();
19 	virtual						~CurrentColor();
20 
21 	static	CurrentColor*		Default();
22 
23 			void				SetColor(rgb_color color);
24 	inline	rgb_color			Color() const
25 									{ return fColor; }
26 
27  private:
28 			rgb_color			fColor;
29 
30 	static	CurrentColor		fDefaultInstance;
31 };
32 
33 #endif // CURRENT_COLOR_H
34