30 #ifndef _CEGUIColourRect_h_
31 #define _CEGUIColourRect_h_
33 #include "CEGUI/Base.h"
34 #include "CEGUI/Colour.h"
43 class CEGUIEXPORT ColourRect :
44 public AllocatedObject<ColourRect>
58 ColourRect(
const Colour& col);
65 ColourRect(
const Colour& top_left,
const Colour& top_right,
const Colour& bottom_left,
const Colour& bottom_right);
78 void setAlpha(
float alpha);
91 void setTopAlpha(
float alpha);
104 void setBottomAlpha(
float alpha);
117 void setLeftAlpha(
float alpha);
130 void setRightAlpha(
float alpha);
140 bool isMonochromatic()
const;
159 ColourRect getSubRectangle(
float left,
float right,
float top,
float bottom )
const;
173 Colour getColourAtPoint(
float x,
float y )
const;
183 void setColours(
const Colour& col);
193 void modulateAlpha(
float alpha);
201 inline ColourRect operator*(
const float val)
const
214 d_top_left + val.d_top_left,
215 d_top_right + val.d_top_right,
216 d_bottom_left + val.d_bottom_left,
222 Colour d_top_left, d_top_right, d_bottom_left, d_bottom_right;
228 #endif // end of guard _CEGUIColourRect_h_