ShapeType
[Previous] [Main] [Next]

 
typedef enum {  
   shape_unknown = 0,  
   shape_circle,  
   shape_rectangle,  
   shape_polygon  
} ShapeType ;  

shape_circle  
The coordinates must have the form "x,y,r", where x and y are coordinates of the center of the circle, and r is the length of the radius.  
 
shape_rectangle  
The coordinates must have the form "x1,y1, x2,y2", where x1,y1 are the coordinates of the upper left corner and x2,y2 are the coordinates of the lower left corner.  
 
shape_polygon  
The coordinates must have the form "x1,y1, x2,y2 ... xn,yn", where each x,y pair is a point where two sides of the polygon meet. A polygon may have up to 100 sides.  
 



©1998 DC Micro Development. All rights reserved.
No portion of this document may be c opied or reproduced without expressed written consent.
html++ is a trademark of DC Micro Development.