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
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_