1168
Appendix A: System Routines — Windows
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinEllipse
Declaration:
void
WinEllipse
(WINDOW *
w
, WIN_COORDS
x0
, WIN_COORDS
y0
,
WIN_COORDS
a0
, WIN_COORDS
b0
)
Category(ies):
Windows
Description:
Draw an ellipse in a window with center at (
x0
,
y0
) and major/minor axes
(
a0
,
b0
). The ellipse is drawn in the current attribute (A_NORMAL,
A_REVERSE, A_XOR) as set by
WinAttr
.
Inputs:
w
— WINDOW struct of a previously opened window.
x0
,
y0
— Center of ellipse in window coordinates.
a0
,
b0
— Major/minor axes size in pixels.
Outputs:
None
Assumptions:
Current attribute (set by
WinAttr
) is A_NORMAL (set), A_REVERSE
(clear), or A_XOR.
Side Effects:
The pixels on the TI
-
89 and the TI
-
92 are square so setting a0 and b0
equal will draw a circle on both platforms.
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.There is no routine to draw a filled
ellipse.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinAttr
Example:
See
WinDupStat
for an example that draws an ellipse to the screen and to
a second backup screen (with one call).