31 #ifndef _CEGUIColourRect_h_
32 #define _CEGUIColourRect_h_
34 #include "CEGUIBase.h"
35 #include "CEGUIcolour.h"
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,
217 d_bottom_right + val.d_bottom_right
222 colour d_top_left, d_top_right, d_bottom_left, d_bottom_right;
228 #endif // end of guard _CEGUIColourRect_h_