 
#ifndef icon_DEFINED
#define icon_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 icon.ch and will be
 * overwritten.  Make changes to icon.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from icon.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$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.
* $
*/


#define icon_TitleChanged 34935	/* random integers... */
#define icon_SizeChanged 1894
#define icon_ChildChanged 2435
#define icon_ChangedSomehow 90235






/* 
 * End of information copied from icon.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_dataobject
#include "dataobj.ih"
#undef dontDefineRoutinesFor_dataobject

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for icon 
 */ 
struct icon { 
    union {
	struct basicobject_methods *icon_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
    } header;
    struct dataobject * child;
    long width, height;
    char * title;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef icon_PROGRAMMERVERSION
#define icon_PROGRAMMERVERSION 1
#endif /* icon_PROGRAMMERVERSION */

#ifdef icon_VERSION
#undef icon_VERSION
#endif /* icon_VERSION */
#define icon_VERSION ((((icon_PROGRAMMERVERSION << 16) ^ (29 << 8) ^ sizeof(struct icon)) & 0x7ffff) + 0x80000 + (2 << 20))


#endif /* class_StaticInfoOnly */
#define icon_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *icon__GetClassInfo(); \
 extern struct classheader *icon_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, icon_classheader_StaticExport->name, icon__GetClassInfo, NULL, icon_classheader_StaticExport->namekey); } 
 
#define icon_StaticLoad()  \
    { \
    dataobject_StaticLoad(); \
    icon_StaticLoadOnlyThisClass();  \
    } 
 
#define icon_StaticEntry  {icon_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader icon_classheader = {
    icon_VERSION,
    "icon",
    "icon",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define icon_CLASSPROCEDURES (icon_classheader.classprocedures)
int icon_classref_;
#endif /* class_StaticInfoOnly */

#endif /* icon_DEFINED */

#if !defined(icon_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_icon) && !defined(class_StaticEntriesOnly)
#define icon_ROUTINESDEFINED

#define icon_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define icon_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define icon_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define icon_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.icon_methods->routines[0]))) (self,observer))
#define icon_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.icon_methods->routines[1]))) (self,observer))
#define icon_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.icon_methods->routines[2]))) (self,observer))
#define icon_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.icon_methods->routines[3]))) (self,value))
#define icon_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.icon_methods->routines[4]))) (self,changed,value))
#define icon_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.icon_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define icon_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.icon_methods->routines[6]))) (self,trigger,rcvr))
#define icon_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.icon_methods->routines[7]))) (self,trigger))
#define icon_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.icon_methods->routines[8]))) (self,trigger))
#define icon_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.icon_methods->routines[9]))) (self,trigger))
#define icon_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.icon_methods->routines[10]))) (self,trigger))
#define icon_Read(self,file,id) \
    ((* ((long (*)())((self)->header.icon_methods->routines[11]))) (self,file,id))
#define icon_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.icon_methods->routines[12]))) (self,file,writeid,level))
#define icon_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.icon_methods->routines[13]))) (self,file,fmt,encoding,description))
#define icon_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.icon_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define icon_GetModified(self) \
    ((* ((long (*)())((self)->header.icon_methods->routines[15]))) (self))
#define icon_SetModified(self) \
    ((* ((void (*)())((self)->header.icon_methods->routines[16]))) (self))
#define icon_ViewName(self) \
    ((* ((char * (*)())((self)->header.icon_methods->routines[17]))) (self))
#define icon_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.icon_methods->routines[18]))) (self,attributes))
#define icon_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.icon_methods->routines[19]))) (self,property,type,rock))
#define icon_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.icon_methods->routines[20]))) (self,property,type,rock))
#define icon_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.icon_methods->routines[21]))) (self,array,size))
#define icon_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.icon_methods->routines[22]))) (self,oldmodified))
#define icon_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define icon_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define icon_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define icon_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define icon_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define icon_SetSize(self,w,h) \
    ((* ((void (*)())((self)->header.icon_methods->routines[23]))) (self,w,h))
#define icon_GetSize(self,w,h) \
    ((* ((void (*)())((self)->header.icon_methods->routines[24]))) (self,w,h))
#define icon_SetChild(self,child) \
    ((* ((void (*)())((self)->header.icon_methods->routines[25]))) (self,child))
#define icon_GetChild(self) \
    ((* ((struct dataobject * (*)())((self)->header.icon_methods->routines[26]))) (self))
#define icon_SetTitle(self,title) \
    ((* ((void (*)())((self)->header.icon_methods->routines[27]))) (self,title))
#define icon_GetTitle(self) \
    ((* ((char * (*)())((self)->header.icon_methods->routines[28]))) (self))

#define icon_NewFromObject(self) \
    ((* ((struct icon * (*)())((self)->header.icon_methods->info->procs->routines[0]))) (&icon_classheader, (self)->header.icon_methods->info->versionnumber))
#define icon_New() \
    (*((struct icon * (*)()) (icon_CLASSPROCEDURES->routines[0])))(&icon_classheader,icon_VERSION)
#define icon_Initialize(self) \
    (*((void (*)()) (icon_CLASSPROCEDURES->routines[2])))(&icon_classheader,self, icon_VERSION)

#define icon_Destroy(self) \
    ((* ((void (*)()) ((self)->header.icon_methods->info->procs->routines[1]))) (&icon_classheader, self))
#define icon_Finalize(self) \
    (*((void (*)()) (icon_CLASSPROCEDURES->routines[3])))(&icon_classheader,self)

#define icon_InitializeObject(self) \
    (*((boolean (*)()) (icon_CLASSPROCEDURES->routines[5])))(&icon_classheader,self)
#define icon_InitializeClass() \
    (*((boolean (*)()) (icon_CLASSPROCEDURES->routines[6])))(&icon_classheader)


#endif /* !defined(icon_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_icon ) && !defined(class_StaticEntriesOnly)*/

