//-----------------------------------------------------------------------------
+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 );
Init();
}
+void wxGCDC::SetGraphicsContext( wxGraphicsContext* ctx )
+{
+ delete m_graphicContext;
+ m_graphicContext = ctx;
+}
wxGCDC::wxGCDC(const wxWindowDC& dc)
{
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();