 
#ifndef figorect_DEFINED
#define figorect_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from figorect.ch and will be
 * overwritten.  Make changes to figorect.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from figorect.ch.
 */ 
 
/* figorect.ch - fig element object: rectangle */
/*
	Copyright Carnegie Mellon University 1992 - All rights reserved
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $

  $Header: /afs/cs.cmu.edu/project/atk-dist/6.2/atk/figure/RCS/figorect.ch,v 1.4 1993/05/04 01:18:42 susan Exp $
*/






/* 
 * End of information copied from figorect.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_figobj
#include "figobj.ih"
#undef dontDefineRoutinesFor_figobj

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for figorect 
 */ 
struct figorect { 
    union {
	struct basicobject_methods *figorect_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
	struct figobj figobj;
    } header;
      long w, h;  /* may be negative */

};

 
/* 
 * End of data structure for figorect.
 */ 
 

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef figorect_PROGRAMMERVERSION
#define figorect_PROGRAMMERVERSION 1
#endif /* figorect_PROGRAMMERVERSION */

#ifdef figorect_VERSION
#undef figorect_VERSION
#endif /* figorect_VERSION */
#define figorect_VERSION ((((figorect_PROGRAMMERVERSION << 16) ^ (54 << 8) ^ sizeof(struct figorect)) & 0x7ffff) + 0x80000 + (65 << 20))


#endif /* class_StaticInfoOnly */
#define figorect_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *figorect__GetClassInfo(); \
 extern struct classheader *figorect_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, figorect_classheader_StaticExport->name, figorect__GetClassInfo, NULL, figorect_classheader_StaticExport->namekey); } 
 
#define figorect_StaticLoad()  \
    { \
    figobj_StaticLoad(); \
    figorect_StaticLoadOnlyThisClass();  \
    } 
 
#define figorect_StaticEntry  {figorect_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader figorect_classheader = {
    figorect_VERSION,
    "figorect",
    "figorect",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define figorect_CLASSPROCEDURES (figorect_classheader.classprocedures)
int figorect_classref_;
#endif /* class_StaticInfoOnly */

#endif /* figorect_DEFINED */

#if !defined(figorect_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_figorect) && !defined(class_StaticEntriesOnly)
#define figorect_ROUTINESDEFINED

#define figorect_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define figorect_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define figorect_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define figorect_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[0]))) (self,observer))
#define figorect_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.figorect_methods->routines[1]))) (self,observer))
#define figorect_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[2]))) (self,observer))
#define figorect_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[3]))) (self,value))
#define figorect_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[4]))) (self,changed,value))
#define figorect_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.figorect_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define figorect_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[6]))) (self,trigger,rcvr))
#define figorect_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[7]))) (self,trigger))
#define figorect_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[8]))) (self,trigger))
#define figorect_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[9]))) (self,trigger))
#define figorect_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.figorect_methods->routines[10]))) (self,trigger))
#define figorect_Read(self,file,id) \
    ((* ((long (*)())((self)->header.figorect_methods->routines[11]))) (self,file,id))
#define figorect_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.figorect_methods->routines[12]))) (self,file,writeid,level))
#define figorect_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.figorect_methods->routines[13]))) (self,file,fmt,encoding,description))
#define figorect_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.figorect_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define figorect_GetModified(self) \
    ((* ((long (*)())((self)->header.figorect_methods->routines[15]))) (self))
#define figorect_SetModified(self) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[16]))) (self))
#define figorect_ViewName(self) \
    ((* ((char * (*)())((self)->header.figorect_methods->routines[17]))) (self))
#define figorect_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[18]))) (self,attributes))
#define figorect_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[19]))) (self,property,type,rock))
#define figorect_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.figorect_methods->routines[20]))) (self,property,type,rock))
#define figorect_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.figorect_methods->routines[21]))) (self,array,size))
#define figorect_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[22]))) (self,oldmodified))
#define figorect_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define figorect_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define figorect_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define figorect_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define figorect_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define figorect_WriteBody(self,fp) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[23]))) (self,fp))
#define figorect_ReadBody(self,file,recompute) \
    ((* ((long (*)())((self)->header.figorect_methods->routines[24]))) (self,file,recompute))
#define figorect_ToolName(self,v,rock) \
    ((* ((char * (*)())((self)->header.figorect_methods->routines[25]))) (self,v,rock))
#define figorect_ToolModify(self,v,rock) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[26]))) (self,v,rock))
#define figorect_Instantiate(self,v,rock) \
    ((* ((struct figobj * (*)())((self)->header.figorect_methods->routines[27]))) (self,v,rock))
#define figorect_Draw(self,v) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[28]))) (self,v))
#define figorect_Sketch(self,v) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[29]))) (self,v))
#define figorect_DrawAttachments(self,v) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[30]))) (self,v))
#define figorect_ClearAttachments(self) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[31]))) (self))
#define figorect_PrintObject(self,v,file,prefix) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[32]))) (self,v,file,prefix))
#define figorect_Select(self,v) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[33]))) (self,v))
#define figorect_SetNumHandles(self,num) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[34]))) (self,num))
#define figorect_Build(self,action,v,x,y,clicks) \
    ((* ((enum figobj_Status (*)())((self)->header.figorect_methods->routines[35]))) (self,action,v,x,y,clicks))
#define figorect_HitMe(self,x,y,delta,ptref) \
    ((* ((enum figobj_HitVal (*)())((self)->header.figorect_methods->routines[36]))) (self,x,y,delta,ptref))
#define figorect_BasicHitMe(self,x,y,delta,ptref) \
    ((* ((enum figobj_HitVal (*)())((self)->header.figorect_methods->routines[37]))) (self,x,y,delta,ptref))
#define figorect_Reshape(self,action,v,x,y,handle,ptref) \
    ((* ((boolean (*)())((self)->header.figorect_methods->routines[38]))) (self,action,v,x,y,handle,ptref))
#define figorect_AddParts(self,action,v,x,y,handle,ptref) \
    ((* ((boolean (*)())((self)->header.figorect_methods->routines[39]))) (self,action,v,x,y,handle,ptref))
#define figorect_DeleteParts(self,action,v,x,y,handle,ptref) \
    ((* ((boolean (*)())((self)->header.figorect_methods->routines[40]))) (self,action,v,x,y,handle,ptref))
#define figorect_MoveHandle(self,x,y,ptref) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[41]))) (self,x,y,ptref))
#define figorect_Reposition(self,xd,yd) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[42]))) (self,xd,yd))
#define figorect_InheritVAttributes(self,attr,mask) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[43]))) (self,attr,mask))
#define figorect_UpdateVAttributes(self,attr,mask) \
    ((* ((unsigned long (*)())((self)->header.figorect_methods->routines[44]))) (self,attr,mask))
#define figorect_RecomputeBounds(self) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[45]))) (self))
#define figorect_GetBounds(self,vv) \
    ((* ((struct rectangle * (*)())((self)->header.figorect_methods->routines[46]))) (self,vv))
#define figorect_GetSelectedBounds(self,vv) \
    ((* ((struct rectangle * (*)())((self)->header.figorect_methods->routines[47]))) (self,vv))
#define figorect_ComputeSelectedBounds(self) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[48]))) (self))
#define figorect_UpdateParentBounds(self) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[49]))) (self))
#define figorect_SetParent(self,parentref,ancestor) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[50]))) (self,parentref,ancestor))
#define figorect_GetHandleType(self,ptref) \
    ((* ((enum figobj_HandleType (*)())((self)->header.figorect_methods->routines[51]))) (self,ptref))
#define figorect_GetCanonicalHandles(self) \
    ((* ((long * (*)())((self)->header.figorect_methods->routines[52]))) (self))
#define figorect_StabilizeAttachments(self,keepproport) \
    ((* ((void (*)())((self)->header.figorect_methods->routines[53]))) (self,keepproport))
#define figorect_GetParent(self) \
  (((&(self)->header.figobj))->parent)
#define figorect_GetParentRef(self) \
  (((&(self)->header.figobj))->parentref)
#define figorect_GetAncestorFig(self) \
  (((&(self)->header.figobj))->figo)
#define figorect_IsGroup(self) \
  (((&(self)->header.figobj))->isgroup)
#define figorect_IsInset(self) \
  (((&(self)->header.figobj))->isinset)
#define figorect_AttributesUsed(self) \
  (((&(self)->header.figobj))->attrused)
#define figorect_GetHandles(self) \
  (((&(self)->header.figobj))->pts)
#define figorect_GetNumHandles(self) \
  (((&(self)->header.figobj))->numpts)
#define figorect_SetHandle(self,num,x,y) \
  (point_SetPt(&(((&(self)->header.figobj))->pts[num]), (x), (y)))
#define figorect_PosX(self) \
  (((&(self)->header.figobj))->x)
#define figorect_PosY(self) \
  (((&(self)->header.figobj))->y)
#define figorect_SetBoundsRect(self,left,top,width,height) \
  (rectangle_SetRectSize(&(((&(self)->header.figobj))->bounds), (left), (top), (width), (height)))
#define figorect_GetVAttributes(self) \
  (((&(self)->header.figobj))->attr)
#define figorect_GetIVAttributes(self) \
  (((&(self)->header.figobj))->iattr)
#define figorect_GetReadOnly(self) \
  (((&(self)->header.figobj))->figo && figure_GetReadOnly(((&(self)->header.figobj))->figo))
#define figorect_IsAttachmentActive(self,num) \
  (((&(self)->header.figobj))->vas[num].on)
#define figorect_SetAttachmentActive(self,num,val) \
  (((&(self)->header.figobj))->vas[num].on = (val), ((&(self)->header.figobj))->anyattachmentsactive = ((&(self)->header.figobj))->anyattachmentsactive || (val))
#define figorect_SetAttachmentPosX(self,num,pos) \
 (((&(self)->header.figobj))->vas[num].rposx=(pos))
#define figorect_SetAttachmentOffX(self,num,offset) \
 (((&(self)->header.figobj))->vas[num].offx=(offset))
#define figorect_GetAttachmentPosX(self,num) \
 (((&(self)->header.figobj))->vas[num].rposx)
#define figorect_GetAttachmentOffX(self,num) \
 (((&(self)->header.figobj))->vas[num].offx)
#define figorect_SetAttachmentPosY(self,num,pos) \
 (((&(self)->header.figobj))->vas[num].rposy=(pos))
#define figorect_SetAttachmentOffY(self,num,offset) \
 (((&(self)->header.figobj))->vas[num].offy=(offset))
#define figorect_GetAttachmentPosY(self,num) \
 (((&(self)->header.figobj))->vas[num].rposy)
#define figorect_GetAttachmentOffY(self,num) \
 (((&(self)->header.figobj))->vas[num].offy)
#define figorect_GetHandleX(self,num) \
 (((&(self)->header.figobj))->pts[num].x)
#define figorect_GetHandleY(self,num) \
 (((&(self)->header.figobj))->pts[num].y)
#define figorect_PosW(self) \
  (((self))->w)
#define figorect_PosH(self) \
  (((self))->h)

#define figorect_NewFromObject(self) \
    ((* ((struct figorect * (*)())((self)->header.figorect_methods->info->procs->routines[0]))) (&figorect_classheader, (self)->header.figorect_methods->info->versionnumber))
#define figorect_New() \
    (*((struct figorect * (*)()) (figorect_CLASSPROCEDURES->routines[0])))(&figorect_classheader,figorect_VERSION)
#define figorect_Initialize(self) \
    (*((void (*)()) (figorect_CLASSPROCEDURES->routines[2])))(&figorect_classheader,self, figorect_VERSION)

#define figorect_Destroy(self) \
    ((* ((void (*)()) ((self)->header.figorect_methods->info->procs->routines[1]))) (&figorect_classheader, self))
#define figorect_Finalize(self) \
    (*((void (*)()) (figorect_CLASSPROCEDURES->routines[3])))(&figorect_classheader,self)

#define figorect_InitializeObject(self) \
    (*((boolean (*)()) (figorect_CLASSPROCEDURES->routines[5])))(&figorect_classheader,self)
#define figorect_Create(left,top,width,height) \
    (*((struct figorect * (*)()) (figorect_CLASSPROCEDURES->routines[6])))(&figorect_classheader,left,top,width,height)


#endif /* !defined(figorect_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_figorect ) && !defined(class_StaticEntriesOnly)*/

