On Jul 12, 2007, at 10:35 AM, Bill Bedford wrote:
> Is there any support for arcs? They would be useful for a upcoming
> project of mine.
Not currently, but wxPython has the following methods:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
wxDC::DrawArc
void DrawArc(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord
xc, wxCoord yc)
Draws an arc of a circle, centred on (xc, yc), with starting point
(x1, y1) and ending at (x2, y2). The current pen is used for the
outline and the current brush for filling the shape.
The arc is drawn in an anticlockwise direction from the start point
to the end point.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
wxDC::DrawEllipticArc
void DrawEllipticArc(wxCoord x, wxCoord y, wxCoord width, wxCoord
height, double start, double end)
Draws an arc of an ellipse. The current pen is used for drawing the
arc and the current brush is used for drawing the pie.
x and y specify the x and y coordinates of the upper-left corner of
the rectangle that contains the ellipse.
width and height specify the width and height of the rectangle that
contains the ellipse.
start and end specify the start and end of the arc relative to the
three-o'clock position from the center of the rectangle. Angles are
specified in degrees (360 is a complete circle). Positive values mean
counter-clockwise motion. If start is equal to end, a complete
ellipse will be drawn.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Do these look like they would be useful? If so, I can wrap those
like the other draw methods.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]