next up previous
Next: xsegments Up: simxlib Previous: xpoints

xrectangles


     NAME
	  xrectangles -	part of	Simula to Xlib interface

     DESCRIPTION
	     class XRectangles(maxSize);
	     integer maxSize; !	The maximum number of arcs which can
	     be	stored ;
	  Data structure for storing multiple rectangles.  Used	 as  a
	  parameter to X_Drawable operations (Draw/Fill)Rectangles

	  SUPERS: no super ;
	  KIND:	Instantiable ;

     OPERATIONS
     Set
	     procedure Set(index,x,y,width,height);
	     integer index,x,y,width,height;
	  Set the data for the index'th	rectangle

     Get
	     procedure Get(index,x,y,width,height);
	     name x,y,width,height;
	     integer index,x,y,width,height;
	  Get the data for the index'th	arc

     SetSize
	     procedure SetSize(n);
	     integer n;	! Must not be larger than maxSize ;
	  Set the number of rectangles to be stored in this object

     GetSize
	     integer procedure GetSize;
	  Returns the current number  of  rectangles  stored  in  this
	  object