Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CEGUIColourRect.h

Go to the documentation of this file.
00001 /************************************************************************
00002         filename:       CEGUIColourRect.h
00003         created:        8/3/2004
00004         author:         Paul D Turner
00005         
00006         purpose:        Defines class representing colours for four corners of a
00007                                 rectangle
00008 *************************************************************************/
00009 /*************************************************************************
00010     Crazy Eddie's GUI System (http://www.cegui.org.uk)
00011     Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
00012 
00013     This library is free software; you can redistribute it and/or
00014     modify it under the terms of the GNU Lesser General Public
00015     License as published by the Free Software Foundation; either
00016     version 2.1 of the License, or (at your option) any later version.
00017 
00018     This library is distributed in the hope that it will be useful,
00019     but WITHOUT ANY WARRANTY; without even the implied warranty of
00020     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021     Lesser General Public License for more details.
00022 
00023     You should have received a copy of the GNU Lesser General Public
00024     License along with this library; if not, write to the Free Software
00025     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026 *************************************************************************/
00027 #ifndef _CEGUIColourRect_h_
00028 #define _CEGUIColourRect_h_
00029 
00030 #include "CEGUIBase.h"
00031 #include "CEGUIcolour.h"
00032 
00033 // Start of CEGUI namespace section
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;         //<! ColourRect component colours
00190 };
00191 
00192 } // End of  CEGUI namespace section
00193 
00194 
00195 #endif  // end of guard _CEGUIColourRect_h_

Generated on Wed Feb 16 12:41:05 2005 for Crazy Eddies GUI System by  doxygen 1.3.9.1