virtual void EndPage() { }
virtual GdkWindow* GetGDKWindow() const { return NULL; }
-
+ virtual void* GetHandle() const { return GetGDKWindow(); }
+
// base class pure virtuals implemented here
virtual void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
virtual void DoGetSizeMM(int* width, int* height) const;
// overridden from wxDCImpl
virtual void DoGetSize( int *width, int *height ) const;
virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
-
+ virtual void* GetHandle() const;
+
// overridden for wxMemoryDC Impl
virtual void DoSelect(const wxBitmap& bitmap);
bool IsOk() const;
virtual void* GetCairoContext() const;
-
+ virtual void* GetHandle() const;
+
bool CanDrawBitmap() const { return true; }
void Clear();
void SetFont( const wxFont& font );
return m_selected;
}
+void* wxMemoryDCImpl::GetHandle() const
+{
+ const wxBitmap& bmp = GetSelectedBitmap();
+ return bmp.GetPixmap();
+}
return (void*) cairo_reference( m_cairo );
}
+void* wxGtkPrinterDCImpl::GetHandle() const
+{
+ return GetCairoContext();
+}
+
bool wxGtkPrinterDCImpl::DoFloodFill(wxCoord WXUNUSED(x1),
wxCoord WXUNUSED(y1),
const wxColour& WXUNUSED(col),