31 #ifndef _CEGUIColourRect_h_
32 #define _CEGUIColourRect_h_
34 #include "CEGUI/Base.h"
35 #include "CEGUI/Colour.h"
79 void setAlpha(
float alpha);
92 void setTopAlpha(
float alpha);
105 void setBottomAlpha(
float alpha);
118 void setLeftAlpha(
float alpha);
131 void setRightAlpha(
float alpha);
141 bool isMonochromatic()
const;
160 ColourRect getSubRectangle(
float left,
float right,
float top,
float bottom )
const;
174 Colour getColourAtPoint(
float x,
float y )
const;
184 void setColours(
const Colour& col);
194 void modulateAlpha(
float alpha);
202 inline ColourRect operator*(
const float val)
const
215 d_top_left + val.d_top_left,
216 d_top_right + val.d_top_right,
217 d_bottom_left + val.d_bottom_left,
218 d_bottom_right + val.d_bottom_right
223 Colour d_top_left, d_top_right, d_bottom_left, d_bottom_right;
229 #endif // end of guard _CEGUIColourRect_h_