DrawUtil.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* GG is a GUI for SDL and OpenGL.
00003    Copyright (C) 2003 T. Zachary Laine
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public License
00007    as published by the Free Software Foundation; either version 2.1
00008    of the License, or (at your option) any later version.
00009    
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014     
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with this library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA
00019 
00020    If you do not wish to comply with the terms of the LGPL please
00021    contact the author as other terms are available for a fee.
00022     
00023    Zach Laine
00024    whatwasthataddress@hotmail.com */
00025 
00029 #ifndef _GG_DrawUtil_h_
00030 #define _GG_DrawUtil_h_
00031 
00032 #include <GG/Base.h>
00033 
00034 
00035 namespace GG {
00036 
00038     GG_API void glColor(Clr clr);
00039 
00042     GG_API Clr LightColor(Clr clr);
00043 
00046     GG_API Clr DarkColor(Clr clr);
00047 
00051     GG_API Clr DisabledColor(Clr clr);
00052 
00057     GG_API void BeginScissorClipping(Pt ul, Pt lr);
00058 
00063     GG_API void BeginScissorClipping(int x1, int y1, int x2, int y2);
00064 
00068     GG_API void EndScissorClipping();
00069 
00075     GG_API void FlatRectangle(int x1, int y1, int x2, int y2, Clr color, Clr border_color, int border_thick = 2);
00076 
00082     GG_API void BeveledRectangle(int x1, int y1, int x2, int y2, Clr color, Clr border_color, bool up, int bevel_thick = 2,
00083                                  bool bevel_left = true, bool bevel_top = true, bool bevel_right = true, bool bevel_bottom = true);
00084 
00086     GG_API void FlatCheck(int x1, int y1, int x2, int y2, Clr color);
00087 
00089     GG_API void BeveledCheck(int x1, int y1, int x2, int y2, Clr color);
00090 
00092     GG_API void FlatX(int x1, int y1, int x2, int y2, Clr color);
00093 
00095     GG_API void BeveledX(int x1, int y1, int x2, int y2, Clr color);
00096 
00098     GG_API void Bubble(int x1, int y1, int x2, int y2, Clr color, bool up = true);
00099 
00101     GG_API void FlatCircle(int x1, int y1, int x2, int y2, Clr color, Clr border_color, int thick = 2);
00102 
00105     GG_API void BeveledCircle(int x1, int y1, int x2, int y2, Clr color, Clr border_color, bool up = true, int bevel_thick = 2);
00106 
00110     GG_API void FlatRoundedRectangle(int x1, int y1, int x2, int y2, Clr color, Clr border_color, int corner_radius = 5, int border_thick = 2);
00111 
00113     GG_API void BeveledRoundedRectangle(int x1, int y1, int x2, int y2, Clr color, Clr border_color, bool up, int corner_radius = 5, int bevel_thick = 2);
00114 
00116     GG_API void BubbleRectangle(int x1, int y1, int x2, int y2, Clr color, bool up, int corner_radius = 5);
00117 
00118 }
00119 
00120 #endif // _GG_DrawUtil_h_

Generated on Wed Mar 26 14:35:41 2008 for GG by  doxygen 1.5.2