Where is the C++ source for DrawPointList and DrawLineList? I'm searching
around in
http://cvs.wxwindows.org/viewcvs.cgi/
but so far haven't found the files. I'm feeling a real need for a
DrawRectangleList method and even though I don't really remember much C++
programming, I figure it can't be that difficult to support a rectangle
versus a Line, so I'm willing to copy and paste ;-). So far we already have
support for drawing a list of points where internally the C++ uses
DrawPoint.
DrawPoint(wxCoord x, wxCoord y)
And DrawLineList internally uses DrawLine.
DrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
That is very close to what DrawRectangleList would need.
DrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
The wxWindows docs also say
"Please note that in addition to the versions of the methods documented
here, there are also versions which accept single wxPoint parameter instead
of two wxCoord ones or wxPoint and wxSize instead of four of them."
and I don't know if the DrawPointList and DrawLineList deal with that.
Anyway, I'm pushing for a DrawRectangleList again Is the complication
that a list of brushes also needs to be supported? I guess the code that
handles the list of pens would be quite similar to what we need for the
brushes?
Finally, DrawEllipseList could be almost identical to what is done for
DrawRectangleList but at least in the docs it does list the variants for
DrawEllipse calls while DrawRectangle does not in case that matters.
"
wxDC::DrawEllipse
void DrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height)
void DrawEllipse(const wxPoint& pt, const wxSize& size)
void DrawEllipse(const wxRect& rect)
Draws an ellipse contained in the rectangle specified either with the given
top left corner and the given size or directly. The current pen is used for
the outline and the current brush for filling the shape.
"
ka