text: //: MapDraw.h,v 1.6 2003/11/07 22:08:17 leonb Exp $ // $Name: debian_version_3_5_17-3 $ #ifndef HDR_MAPDRAW #define HDR_MAPDRAW #ifdef HAVE_CONFIG_H #include "config.h" #endif #if NEED_GNUG_PRAGMAS # pragma interface #endif #include "GPixmap.h" #include "GMapAreas.h" #include "int_types.h" class MapDraw { private: struct OvalPixel { GPixmap * pm; int x0, y0; int x, y; bool eor; u_char r, g, b; }; static void drawOvalPixel(OvalPixel & pix); public: static void drawPixel(GPixmap & pm, int x, int y, bool eor, u_char r, u_char g, u_char b); static void drawLine1(GPixmap & pix, int x1, int y1, int x2, int y2, u_int32 color); static void drawLine(GPixmap & pix, int x1, int y1, int x2, int y2, u_int32 color); static void drawRect(GPixmap & pix, const GRect & grect, u_int32 color); static void drawOval(GPixmap & pix, const GRect & grect, u_int32 color); }; #endif