00001
00028 #ifndef GUIHOVERCOLORABLE_H_
00029 #define GUIHOVERCOLORABLE_H_
00030
00031 #include "Colorable.h"
00032
00033 class CGUIHoverColorable {
00034
00035 public:
00036
00037 CGUIHoverColorable();
00038 ~CGUIHoverColorable();
00039
00044 void setBackgroundColor(Color4f color) {
00045 m_background.setColor(color);
00046 }
00047
00055 void setBackgroundColor(float red, float green, float blue, float alpha) {
00056 m_background.setColor(red, green, blue, alpha);
00057 }
00058
00063 void setBackgroundHoverColor(Color4f color) {
00064 m_backgroundHover.setColor(color);
00065 }
00066
00074 void setBackgroundHoverColor(float red, float green, float blue,
00075 float alpha) {
00076 m_backgroundHover.setColor(red, green, blue, alpha);
00077 }
00078
00083 void setTextColor(Color4f color) {
00084 m_text.setColor(color);
00085 }
00086
00094 void setTextColor(float red, float green, float blue, float alpha) {
00095 m_text.setColor(red, green, blue, alpha);
00096 }
00097
00102 void setTextHoverColor(Color4f color) {
00103 m_textHover.setColor(color);
00104 }
00105
00113 void setTextHoverColor(float red, float green, float blue, float alpha) {
00114 m_textHover.setColor(red, green, blue, alpha);
00115 }
00116
00117 Color4f getTextColor() const { return m_text.getColor(); };
00118 Color4f getTextHoverColor() const { return m_textHover.getColor(); };
00119 Color4f getBackgroundColor() const { return m_background.getColor(); };
00120 Color4f getBackgroundHoverColor() const { return m_backgroundHover.getColor(); };
00121
00122 protected:
00123 CColorable m_background;
00124 CColorable m_backgroundHover;
00125 CColorable m_text;
00126 CColorable m_textHover;
00127
00128 };
00129
00130 #endif