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 enum CEGUIBASE_API QuadSplitMode
00041 {
00042 TopLeftToBottomRight,
00043 BottomLeftToTopRight,
00044 };
00045
00050 class CEGUIBASE_API ColourRect
00051 {
00052 public:
00057 ColourRect(void);
00058
00059
00064 ColourRect(const colour& col);
00065
00066
00071 ColourRect(const colour& top_left, const colour& top_right, const colour& bottom_left, const colour& bottom_right);
00072
00073
00078 virtual ~ColourRect(void);
00079
00080
00091 void setAlpha(float alpha);
00092
00093
00104 void setTopAlpha(float alpha);
00105
00106
00117 void setBottomAlpha(float alpha);
00118
00119
00130 void setLeftAlpha(float alpha);
00131
00132
00143 void setRightAlpha(float alpha);
00144
00145
00162 ColourRect getSubRectangle( float left, float right, float top, float bottom ) const;
00163
00176 colour getColourAtPoint( float x, float y ) const;
00177
00178
00186 void setColours(const colour& col);
00187
00188
00189 colour d_top_left, d_top_right, d_bottom_left, d_bottom_right;
00190 };
00191
00192 }
00193
00194
00195 #endif // end of guard _CEGUIColourRect_h_