#ifdef __GNUG__
#pragma interface "dcbase.h"
+ #pragma implementation "dcbase.h"
#endif
// ----------------------------------------------------------------------------
m_deviceOriginX = m_deviceOriginY = 0;
m_logicalScaleX = m_logicalScaleY =
- m_userScaleX = m_userScaleY =
+ m_userScaleX = m_userScaleY =
m_scaleX = m_scaleY = 1.0;
m_logicalFunction = -1;
{ DoDrawArc(pt1.x, pt1.y, pt2.x, pt2.y, centre.x, centre.y); }
void DrawEllipticArc(long x, long y, long w, long h, double sa, double ea)
- { DoDrawEllipticArc(x, y, x, y, sa, ea); }
+ { DoDrawEllipticArc(x, y, w, h, sa, ea); }
void DrawEllipticArc(const wxPoint& pt, const wxSize& sz,
double sa, double ea)
{ DoDrawEllipticArc(pt.x, pt.y, sz.x, sz.y, sa, ea); }
void DrawRoundedRectangle(const wxRect& r, double radius)
{ DoDrawRoundedRectangle(r.x, r.y, r.width, r.height, radius); }
+ void DrawCircle(long x, long y, long radius)
+ { DoDrawEllipse(x - radius, y - radius, 2*radius, 2*radius); }
void DrawEllipse(long x, long y, long width, long height)
{ DoDrawEllipse(x, y, width, height); }
void DrawEllipse(const wxPoint& pt, const wxSize& sz)
if ( x ) *x = m_userScaleX;
if ( y ) *y = m_userScaleY;
}
- void SetSystemScale(double x, double y)
- { SetUserScale(x, y); }
virtual void SetUserScale(double x, double y) = 0;
virtual void GetLogicalScale(double *x, double *y)
if ( y ) *y = m_deviceOriginY;
}
+#if wxUSE_SPLINES
virtual void DoDrawSpline(wxList *points) = 0;
+#endif
protected:
// flags