X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0371e9a826a7d9c7a262c4a1aa4b09eba39acb59..2e403d6dacde775dad50c8e18c1fe1c8abca5bea:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index 58bb8ab0cd..c14bbea8ae 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -147,12 +147,12 @@ public: 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); } @@ -227,7 +227,7 @@ public: void DrawCircle(wxCoord x, wxCoord y, wxCoord radius) { DoDrawEllipse(x - radius, y - radius, 2*radius, 2*radius); } void DrawCircle(const wxPoint& pt, wxCoord radius) - { DoDrawEllipse(pt.x, pt.y, radius); } + { DrawCircle(pt.x, pt.y, radius); } void DrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height) { DoDrawEllipse(x, y, width, height); } @@ -607,7 +607,7 @@ public: 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; @@ -743,7 +743,7 @@ protected: #if wxUSE_PALETTE wxPalette m_palette; - bool m_custompalette; + bool m_hasCustomPalette; #endif // wxUSE_PALETTE private: