 
#ifndef figoell_DEFINED
#define figoell_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 figoell.ch and will be
 * overwritten.  Make changes to figoell.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from figoell.ch.
 */ 
 
/* figoell.ch - fig element object: ellipse */
/*
	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/figoell.ch,v 1.2 1992/12/14 20:45:16 rr2b R6tape $
*/






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

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for figoell 
 */ 
struct figoell { 
    union {
	struct basicobject_methods *figoell_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
	struct figobj figobj;
	struct figorect figorect;
    } header;
};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef figoell_PROGRAMMERVERSION
#define figoell_PROGRAMMERVERSION 1
#endif /* figoell_PROGRAMMERVERSION */

#ifdef figoell_VERSION
#undef figoell_VERSION
#endif /* figoell_VERSION */
#define figoell_VERSION ((((figoell_PROGRAMMERVERSION << 16) ^ (54 << 8) ^ sizeof(struct figoell)) & 0x7ffff) + 0x80000 + (65 << 20))


#endif /* class_StaticInfoOnly */
#define figoell_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *figoell__GetClassInfo(); \
 extern struct classheader *figoell_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, figoell_classheader_StaticExport->name, figoell__GetClassInfo, NULL, figoell_classheader_StaticExport->namekey); } 
 
#define figoell_StaticLoad()  \
    { \
    figorect_StaticLoad(); \
    figoell_StaticLoadOnlyThisClass();  \
    } 
 
#define figoell_StaticEntry  {figoell_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader figoell_classheader = {
    figoell_VERSION,
    "figoell",
    "figoell",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define figoell_CLASSPROCEDURES (figoell_classheader.classprocedures)
int figoell_classref_;
#endif /* class_StaticInfoOnly */

#endif /* figoell_DEFINED */

#if !defined(figoell_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_figoell) && !defined(class_StaticEntriesOnly)
#define figoell_ROUTINESDEFINED

#define figoell_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define figoell_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define figoell_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define figoell_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[0]))) (self,observer))
#define figoell_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.figoell_methods->routines[1]))) (self,observer))
#define figoell_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[2]))) (self,observer))
#define figoell_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[3]))) (self,value))
#define figoell_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[4]))) (self,changed,value))
#define figoell_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.figoell_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define figoell_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[6]))) (self,trigger,rcvr))
#define figoell_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[7]))) (self,trigger))
#define figoell_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[8]))) (self,trigger))
#define figoell_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[9]))) (self,trigger))
#define figoell_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.figoell_methods->routines[10]))) (self,trigger))
#define figoell_Read(self,file,id) \
    ((* ((long (*)())((self)->header.figoell_methods->routines[11]))) (self,file,id))
#define figoell_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.figoell_methods->routines[12]))) (self,file,writeid,level))
#define figoell_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.figoell_methods->routines[13]))) (self,file,fmt,encoding,description))
#define figoell_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.figoell_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define figoell_GetModified(self) \
    ((* ((long (*)())((self)->header.figoell_methods->routines[15]))) (self))
#define figoell_SetModified(self) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[16]))) (self))
#define figoell_ViewName(self) \
    ((* ((char * (*)())((self)->header.figoell_methods->routines[17]))) (self))
#define figoell_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[18]))) (self,attributes))
#define figoell_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[19]))) (self,property,type,rock))
#define figoell_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.figoell_methods->routines[20]))) (self,property,type,rock))
#define figoell_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.figoell_methods->routines[21]))) (self,array,size))
#define figoell_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[22]))) (self,oldmodified))
#define figoell_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define figoell_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define figoell_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define figoell_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define figoell_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define figoell_WriteBody(self,fp) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[23]))) (self,fp))
#define figoell_ReadBody(self,file,recompute) \
    ((* ((long (*)())((self)->header.figoell_methods->routines[24]))) (self,file,recompute))
#define figoell_ToolName(self,v,rock) \
    ((* ((char * (*)())((self)->header.figoell_methods->routines[25]))) (self,v,rock))
#define figoell_ToolModify(self,v,rock) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[26]))) (self,v,rock))
#define figoell_Instantiate(self,v,rock) \
    ((* ((struct figobj * (*)())((self)->header.figoell_methods->routines[27]))) (self,v,rock))
#define figoell_Draw(self,v) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[28]))) (self,v))
#define figoell_Sketch(self,v) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[29]))) (self,v))
#define figoell_DrawAttachments(self,v) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[30]))) (self,v))
#define figoell_ClearAttachments(self) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[31]))) (self))
#define figoell_PrintObject(self,v,file,prefix) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[32]))) (self,v,file,prefix))
#define figoell_Select(self,v) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[33]))) (self,v))
#define figoell_SetNumHandles(self,num) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[34]))) (self,num))
#define figoell_Build(self,action,v,x,y,clicks) \
    ((* ((enum figobj_Status (*)())((self)->header.figoell_methods->routines[35]))) (self,action,v,x,y,clicks))
#define figoell_HitMe(self,x,y,delta,ptref) \
    ((* ((enum figobj_HitVal (*)())((self)->header.figoell_methods->routines[36]))) (self,x,y,delta,ptref))
#define figoell_BasicHitMe(self,x,y,delta,ptref) \
    ((* ((enum figobj_HitVal (*)())((self)->header.figoell_methods->routines[37]))) (self,x,y,delta,ptref))
#define figoell_Reshape(self,action,v,x,y,handle,ptref) \
    ((* ((boolean (*)())((self)->header.figoell_methods->routines[38]))) (self,action,v,x,y,handle,ptref))
#define figoell_AddParts(self,action,v,x,y,handle,ptref) \
    ((* ((boolean (*)())((self)->header.figoell_methods->routines[39]))) (self,action,v,x,y,handle,ptref))
#define figoell_DeleteParts(self,action,v,x,y,handle,ptref) \
    ((* ((boolean (*)())((self)->header.figoell_methods->routines[40]))) (self,action,v,x,y,handle,ptref))
#define figoell_MoveHandle(self,x,y,ptref) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[41]))) (self,x,y,ptref))
#define figoell_Reposition(self,xd,yd) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[42]))) (self,xd,yd))
#define figoell_InheritVAttributes(self,attr,mask) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[43]))) (self,attr,mask))
#define figoell_UpdateVAttributes(self,attr,mask) \
    ((* ((unsigned long (*)())((self)->header.figoell_methods->routines[44]))) (self,attr,mask))
#define figoell_RecomputeBounds(self) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[45]))) (self))
#define figoell_GetBounds(self,vv) \
    ((* ((struct rectangle * (*)())((self)->header.figoell_methods->routines[46]))) (self,vv))
#define figoell_GetSelectedBounds(self,vv) \
    ((* ((struct rectangle * (*)())((self)->header.figoell_methods->routines[47]))) (self,vv))
#define figoell_ComputeSelectedBounds(self) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[48]))) (self))
#define figoell_UpdateParentBounds(self) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[49]))) (self))
#define figoell_SetParent(self,parentref,ancestor) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[50]))) (self,parentref,ancestor))
#define figoell_GetHandleType(self,ptref) \
    ((* ((enum figobj_HandleType (*)())((self)->header.figoell_methods->routines[51]))) (self,ptref))
#define figoell_GetCanonicalHandles(self) \
    ((* ((long * (*)())((self)->header.figoell_methods->routines[52]))) (self))
#define figoell_StabilizeAttachments(self,keepproport) \
    ((* ((void (*)())((self)->header.figoell_methods->routines[53]))) (self,keepproport))
#define figoell_GetParent(self) \
  (((&(self)->header.figobj))->parent)
#define figoell_GetParentRef(self) \
  (((&(self)->header.figobj))->parentref)
#define figoell_GetAncestorFig(self) \
  (((&(self)->header.figobj))->figo)
#define figoell_IsGroup(self) \
  (((&(self)->header.figobj))->isgroup)
#define figoell_IsInset(self) \
  (((&(self)->header.figobj))->isinset)
#define figoell_AttributesUsed(self) \
  (((&(self)->header.figobj))->attrused)
#define figoell_GetHandles(self) \
  (((&(self)->header.figobj))->pts)
#define figoell_GetNumHandles(self) \
  (((&(self)->header.figobj))->numpts)
#define figoell_SetHandle(self,num,x,y) \
  (point_SetPt(&(((&(self)->header.figobj))->pts[num]), (x), (y)))
#define figoell_PosX(self) \
  (((&(self)->header.figobj))->x)
#define figoell_PosY(self) \
  (((&(self)->header.figobj))->y)
#define figoell_SetBoundsRect(self,left,top,width,height) \
  (rectangle_SetRectSize(&(((&(self)->header.figobj))->bounds), (left), (top), (width), (height)))
#define figoell_GetVAttributes(self) \
  (((&(self)->header.figobj))->attr)
#define figoell_GetIVAttributes(self) \
  (((&(self)->header.figobj))->iattr)
#define figoell_GetReadOnly(self) \
  (((&(self)->header.figobj))->figo && figure_GetReadOnly(((&(self)->header.figobj))->figo))
#define figoell_IsAttachmentActive(self,num) \
  (((&(self)->header.figobj))->vas[num].on)
#define figoell_SetAttachmentActive(self,num,val) \
  (((&(self)->header.figobj))->vas[num].on = (val), ((&(self)->header.figobj))->anyattachmentsactive = ((&(self)->header.figobj))->anyattachmentsactive || (val))
#define figoell_SetAttachmentPosX(self,num,pos) \
 (((&(self)->header.figobj))->vas[num].rposx=(pos))
#define figoell_SetAttachmentOffX(self,num,offset) \
 (((&(self)->header.figobj))->vas[num].offx=(offset))
#define figoell_GetAttachmentPosX(self,num) \
 (((&(self)->header.figobj))->vas[num].rposx)
#define figoell_GetAttachmentOffX(self,num) \
 (((&(self)->header.figobj))->vas[num].offx)
#define figoell_SetAttachmentPosY(self,num,pos) \
 (((&(self)->header.figobj))->vas[num].rposy=(pos))
#define figoell_SetAttachmentOffY(self,num,offset) \
 (((&(self)->header.figobj))->vas[num].offy=(offset))
#define figoell_GetAttachmentPosY(self,num) \
 (((&(self)->header.figobj))->vas[num].rposy)
#define figoell_GetAttachmentOffY(self,num) \
 (((&(self)->header.figobj))->vas[num].offy)
#define figoell_GetHandleX(self,num) \
 (((&(self)->header.figobj))->pts[num].x)
#define figoell_GetHandleY(self,num) \
 (((&(self)->header.figobj))->pts[num].y)
#define figoell_PosW(self) \
  (((&(self)->header.figorect))->w)
#define figoell_PosH(self) \
  (((&(self)->header.figorect))->h)

#define figoell_NewFromObject(self) \
    ((* ((struct figoell * (*)())((self)->header.figoell_methods->info->procs->routines[0]))) (&figoell_classheader, (self)->header.figoell_methods->info->versionnumber))
#define figoell_New() \
    (*((struct figoell * (*)()) (figoell_CLASSPROCEDURES->routines[0])))(&figoell_classheader,figoell_VERSION)
#define figoell_Initialize(self) \
    (*((void (*)()) (figoell_CLASSPROCEDURES->routines[2])))(&figoell_classheader,self, figoell_VERSION)

#define figoell_Destroy(self) \
    ((* ((void (*)()) ((self)->header.figoell_methods->info->procs->routines[1]))) (&figoell_classheader, self))
#define figoell_Finalize(self) \
    (*((void (*)()) (figoell_CLASSPROCEDURES->routines[3])))(&figoell_classheader,self)

#define figoell_InitializeObject(self) \
    (*((boolean (*)()) (figoell_CLASSPROCEDURES->routines[5])))(&figoell_classheader,self)
#define figoell_Create(left,top,width,height) \
    (*((struct figoell * (*)()) (figoell_CLASSPROCEDURES->routines[6])))(&figoell_classheader,left,top,width,height)


#endif /* !defined(figoell_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_figoell ) && !defined(class_StaticEntriesOnly)*/

