/** * @file lluicolor.h * @brief brief LLUIColor class header file * * $LicenseInfo:firstyear=2009&license=viewergpl$ * Copyright (c) 2009, Linden Research, Inc. * $/LicenseInfo$ */ #ifndef LL_LLUICOLOR_H_ #define LL_LLUICOLOR_H_ #include "v4color.h" namespace LLInitParam { template struct ParamCompare; } class LLUIColor { public: LLUIColor(); LLUIColor(const LLColor4& color); LLUIColor(const LLUIColor* color); void set(const LLColor4& color); void set(const LLUIColor* color); const LLColor4& get() const; operator const LLColor4& () const; const LLColor4& operator()() const; bool isReference() const; private: friend struct LLInitParam::ParamCompare; const LLUIColor* mColorPtr; LLColor4 mColor; }; namespace LLInitParam { template<> struct ParamCompare { static bool equals(const LLUIColor& a, const LLUIColor& b); }; } #endif