* in direction of positive y axis.
*/
-class WXDLLEXPORT wxGraphicsPath
+class WXDLLEXPORT wxGraphicsPath : public wxObject
{
public :
wxGraphicsPath() {}
void AddArc( const wxPoint2DDouble& c, wxDouble r, wxDouble startAngle, wxDouble endAngle, bool clockwise);
+ /*
+ // returns the native path
+ virtual void * GetNativePath() = 0;
+
+ // give the native path returned by GetNativePath() back (there might be some deallocations necessary)
+ virtual void UnGetNativePath(void *p) = 0;
+ */
+
DECLARE_NO_COPY_CLASS(wxGraphicsPath)
+ DECLARE_ABSTRACT_CLASS(wxGraphicsPath)
};
/*
} ;
*/
-class WXDLLEXPORT wxGraphicsContext
+class WXDLLEXPORT wxGraphicsContext : public wxObject
{
public:
wxGraphicsContext() {}
// wrappers using wxPoint2DDouble TODO
DECLARE_NO_COPY_CLASS(wxGraphicsContext)
+ DECLARE_ABSTRACT_CLASS(wxGraphicsContext)
};
#endif
//-----------------------------------------------------------------------------
+IMPLEMENT_ABSTRACT_CLASS(wxGraphicsPath, wxObject)
+
wxPoint2DDouble wxGraphicsPath::GetCurrentPoint()
{
wxDouble x,y;
// wxGraphicsContext Convenience Methods
//-----------------------------------------------------------------------------
+IMPLEMENT_ABSTRACT_CLASS(wxGraphicsContext, wxObject)
+
void wxGraphicsContext::DrawPath( const wxGraphicsPath *path, int fillStyle )
{
FillPath( path , fillStyle );
wxCoord wwdest = LogicalToDeviceXRel(width);
wxCoord hhdest = LogicalToDeviceYRel(height);
- wxMemoryDC* memdc = dynamic_cast<wxMemoryDC*>(source);
+ wxMemoryDC* memdc = wxDynamicCast(source,wxMemoryDC);
if ( memdc && logical_func == wxCOPY )
{
wxBitmap blit = memdc->GetSelectedBitmap();