use const arrays for wxDC array parameters, closes #10712
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -604,15 +604,15 @@ public:
|
||||
{ return wxNullBitmap; }
|
||||
|
||||
|
||||
virtual void DoDrawLines(int n, wxPoint points[],
|
||||
virtual void DoDrawLines(int n, const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset ) = 0;
|
||||
virtual void DrawLines(const wxPointList *list,
|
||||
wxCoord xoffset, wxCoord yoffset );
|
||||
|
||||
virtual void DoDrawPolygon(int n, wxPoint points[],
|
||||
virtual void DoDrawPolygon(int n, const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE) = 0;
|
||||
virtual void DoDrawPolyPolygon(int n, int count[], wxPoint points[],
|
||||
virtual void DoDrawPolyPolygon(int n, const int count[], const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset,
|
||||
wxPolygonFillMode fillStyle);
|
||||
void DrawPolygon(const wxPointList *list,
|
||||
@@ -624,7 +624,7 @@ public:
|
||||
void DrawSpline(wxCoord x1, wxCoord y1,
|
||||
wxCoord x2, wxCoord y2,
|
||||
wxCoord x3, wxCoord y3);
|
||||
void DrawSpline(int n, wxPoint points[]);
|
||||
void DrawSpline(int n, const wxPoint points[]);
|
||||
void DrawSpline(const wxPointList *points) { DoDrawSpline(points); }
|
||||
|
||||
virtual void DoDrawSpline(const wxPointList *points);
|
||||
@@ -1139,7 +1139,7 @@ public:
|
||||
void DrawPoint(const wxPoint& pt)
|
||||
{ m_pimpl->DoDrawPoint(pt.x, pt.y); }
|
||||
|
||||
void DrawLines(int n, wxPoint points[],
|
||||
void DrawLines(int n, const wxPoint points[],
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0)
|
||||
{ m_pimpl->DoDrawLines(n, points, xoffset, yoffset); }
|
||||
void DrawLines(const wxPointList *list,
|
||||
@@ -1150,7 +1150,7 @@ public:
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0) );
|
||||
#endif // WXWIN_COMPATIBILITY_2_8
|
||||
|
||||
void DrawPolygon(int n, wxPoint points[],
|
||||
void DrawPolygon(int n, const wxPoint points[],
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE)
|
||||
{ m_pimpl->DoDrawPolygon(n, points, xoffset, yoffset, fillStyle); }
|
||||
@@ -1158,7 +1158,7 @@ public:
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE)
|
||||
{ m_pimpl->DrawPolygon( list, xoffset, yoffset, fillStyle ); }
|
||||
void DrawPolyPolygon(int n, int count[], wxPoint points[],
|
||||
void DrawPolyPolygon(int n, const int count[], const wxPoint points[],
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE)
|
||||
{ m_pimpl->DoDrawPolyPolygon(n, count, points, xoffset, yoffset, fillStyle); }
|
||||
@@ -1281,7 +1281,7 @@ public:
|
||||
wxCoord x2, wxCoord y2,
|
||||
wxCoord x3, wxCoord y3)
|
||||
{ m_pimpl->DrawSpline(x1,y1,x2,y2,x3,y3); }
|
||||
void DrawSpline(int n, wxPoint points[])
|
||||
void DrawSpline(int n, const wxPoint points[])
|
||||
{ m_pimpl->DrawSpline(n,points); }
|
||||
void DrawSpline(const wxPointList *points)
|
||||
{ m_pimpl->DrawSpline(points); }
|
||||
|
Reference in New Issue
Block a user