Include:
Prototype: short far _pie(short control, short x1, short y1,
short x2, short y2, short x3, short y3, short x4, short y4);
short far _pie_wxy(short control, struct _wxycoord pwxy1,
struct _wxycoord pwxy2, struct _wxycoord pwxy3,
struct _wxycoord pwxy4);
control: _GFILLINTERIOR _GBORDER
Returns: a nonzero value if the pie is drawn successfully; 0 if not.
See also: _arc, _ellipse, _floodfill, _getcolor, _lineto, _rectangle,
_setcolor, _setfillmask
The _pie functions draw a pie-shaped wedge by drawing an elliptical arc
whose center and two endpoints are joined by lines.
The _pie function uses the view coordinate system. The center of the arc is
the center of the bounding rectangle specified by the view coordinate
points (x1, y1) and (x2, y2). The arc starts where it intersects the vector
defined by (x3, y3) and ends where it intersects the vector (x4, y4).
The _pie_wxy function uses the window coordinate system. The center of the
arc is the center of the bounding rectangle specified by the window
coordinate pairs pwxy1 and pwxy2. The arc starts where it intersects the
vector defined by pwxy3 and ends where it intersects the vector defined by
pwxy4.
The _pie_wxy function is implemented as a macro.
The wedge is drawn using the current color moving in a counterclockwise
direction. The control parameter can be one of the following manifest
constants: _GFILLINTERIOR, _GBORDER.
The control option given by _GFILLINTERIOR is equivalent to a subsequent
call to the _floodfill function using the center of the ellipse as the
starting point and the current color (set by _setcolor) as the boundary
color.
Return Value
The function returns a nonzero value if the pie is drawn successfully;
otherwise, it returns 0.