Next: xrectangles
Up: simxlib
Previous: xarcs
xpoints
NAME
xpoints - part of Simula to Xlib interface
DESCRIPTION
class XPoints(maxSize);
integer maxSize; ! The maximum number of arcs which can
be stored ;
Data structure for storing multiple points. Used as a
parameter to X_Drawable operations (Draw/Fill)Points
SUPERS: no super ;
KIND: Instantiable ;
OPERATIONS
Set
procedure Set(index,x,y);
integer index,x,y;
Set the data for the index'th point
Get
procedure Get(index,x,y);
name x,y;
integer index,x,y;
Get the data for the index'th point
SetSize
procedure SetSize(n);
integer n; ! Must not be larger than maxSize ;
Set the number of points to be stored in this object
GetSize
integer procedure GetSize;
Returns the current number of points stored in this object