00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef _CEGUIColourRect_h_
00028 #define _CEGUIColourRect_h_
00029
00030 #include "CEGUIBase.h"
00031 #include "CEGUIcolour.h"
00032
00033
00034 namespace CEGUI
00035 {
00040 class CEGUIEXPORT ColourRect
00041 {
00042 public:
00047 ColourRect(void);
00048
00049
00054 ColourRect(const colour& col);
00055
00056
00061 ColourRect(const colour& top_left, const colour& top_right, const colour& bottom_left, const colour& bottom_right);
00062
00063
00074 void setAlpha(float alpha);
00075
00076
00087 void setTopAlpha(float alpha);
00088
00089
00100 void setBottomAlpha(float alpha);
00101
00102
00113 void setLeftAlpha(float alpha);
00114
00115
00126 void setRightAlpha(float alpha);
00127
00128
00136 bool isMonochromatic() const;
00137
00138
00155 ColourRect getSubRectangle( float left, float right, float top, float bottom ) const;
00156
00169 colour getColourAtPoint( float x, float y ) const;
00170
00171
00179 void setColours(const colour& col);
00180
00181
00189 void modulateAlpha(float alpha);
00190
00195 ColourRect& operator*=(const ColourRect& other);
00196
00197
00198 colour d_top_left, d_top_right, d_bottom_left, d_bottom_right;
00199 };
00200
00201 }
00202
00203
00204 #endif // end of guard _CEGUIColourRect_h_