#include "wx/brush.h"
#include "wx/pen.h"
#include "wx/palette.h"
-
#include "wx/list.h" // we use wxList in inline functions
class WXDLLEXPORT wxDCBase;
CalcBoundingBox(drawobject->MaxX(),drawobject->MaxY());
}
- void FloodFill(wxCoord x, wxCoord y, const wxColour& col,
+ bool FloodFill(wxCoord x, wxCoord y, const wxColour& col,
int style = wxFLOOD_SURFACE)
- { DoFloodFill(x, y, col, style); }
- void FloodFill(const wxPoint& pt, const wxColour& col,
+ { return DoFloodFill(x, y, col, style); }
+ bool FloodFill(const wxPoint& pt, const wxColour& col,
int style = wxFLOOD_SURFACE)
- { DoFloodFill(pt.x, pt.y, col, style); }
+ { return DoFloodFill(pt.x, pt.y, col, style); }
bool GetPixel(wxCoord x, wxCoord y, wxColour *col) const
{ return DoGetPixel(x, y, col); }
void DrawCircle(wxCoord x, wxCoord y, wxCoord radius)
{ DoDrawEllipse(x - radius, y - radius, 2*radius, 2*radius); }
+ void DrawCircle(const wxPoint& pt, wxCoord radius)
+ { DrawCircle(pt.x, pt.y, radius); }
+
void DrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
{ DoDrawEllipse(x, y, width, height); }
void DrawEllipse(const wxPoint& pt, const wxSize& sz)
protected:
// the pure virtual functions which should be implemented by wxDC
- virtual void DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
+ virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
int style = wxFLOOD_SURFACE) = 0;
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const = 0;
#if wxUSE_PALETTE
wxPalette m_palette;
+ bool m_hasCustomPalette;
#endif // wxUSE_PALETTE
private:
#include "wx/motif/dc.h"
#elif defined(__WXGTK__)
#include "wx/gtk/dc.h"
+#elif defined(__WXX11__)
+ #include "wx/x11/dc.h"
#elif defined(__WXMGL__)
#include "wx/mgl/dc.h"
#elif defined(__WXMAC__)