 
#ifndef windowsystem_DEFINED
#define windowsystem_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 winsys.ch and will be
 * overwritten.  Make changes to winsys.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from winsys.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.
* $
*/


 

/* Window system package.
 * Provides an abstraction for dealing with multiple window management systems
 * using a singe executable.
 */






/* 
 * End of information copied from winsys.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
/* windowsystem has no super class */ 
 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for windowsystem 
 */ 
struct windowsystem { 
    struct {
	struct basicobject_methods *windowsystem_methods;
    } header;
};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef windowsystem_PROGRAMMERVERSION
#define windowsystem_PROGRAMMERVERSION 1
#endif /* windowsystem_PROGRAMMERVERSION */

#ifdef windowsystem_VERSION
#undef windowsystem_VERSION
#endif /* windowsystem_VERSION */
#define windowsystem_VERSION ((((windowsystem_PROGRAMMERVERSION << 16) ^ (9 << 8) ^ sizeof(struct windowsystem)) & 0x7ffff) + 0x80000 + (0 << 20))


#endif /* class_StaticInfoOnly */
#define windowsystem_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *windowsystem__GetClassInfo(); \
 extern struct classheader *winsys_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, winsys_classheader_StaticExport->name, windowsystem__GetClassInfo, NULL, winsys_classheader_StaticExport->namekey); } 
 
#define windowsystem_StaticLoad()  \
    { \
    windowsystem_StaticLoadOnlyThisClass();  \
    } 
 
#define windowsystem_StaticEntry  {windowsystem_StaticLoad()} 
 
#define winsys_StaticEntry  {windowsystem_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader windowsystem_classheader = {
    windowsystem_VERSION,
    "windowsystem",
    "winsys",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define windowsystem_CLASSPROCEDURES (windowsystem_classheader.classprocedures)
int winsys_classref_;
#endif /* class_StaticInfoOnly */

#endif /* windowsystem_DEFINED */

#if !defined(windowsystem_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_windowsystem) && !defined(class_StaticEntriesOnly)
#define windowsystem_ROUTINESDEFINED

#define windowsystem_CreateIM(self) \
    ((* ((struct im * (*)())((self)->header.windowsystem_methods->routines[0]))) (self))
#define windowsystem_CreateGraphic(self) \
    ((* ((struct graphic * (*)())((self)->header.windowsystem_methods->routines[1]))) (self))
#define windowsystem_CreateCursor(self) \
    ((* ((struct cursor * (*)())((self)->header.windowsystem_methods->routines[2]))) (self))
#define windowsystem_CreateFontdesc(self) \
    ((* ((struct fontdesc * (*)())((self)->header.windowsystem_methods->routines[3]))) (self))
#define windowsystem_CreateOffScreenWindow(self,host,width,height) \
    ((* ((struct offscrwin * (*)())((self)->header.windowsystem_methods->routines[4]))) (self,host,width,height))
#define windowsystem_CreateColormap(self,im) \
    ((* ((struct colormap * (*)())((self)->header.windowsystem_methods->routines[5]))) (self,im))
#define windowsystem_CreateColor(self,name,r,g,b) \
    ((* ((struct color * (*)())((self)->header.windowsystem_methods->routines[6]))) (self,name,r,g,b))
#define windowsystem_FlushAllWindows(self) \
    ((* ((void (*)())((self)->header.windowsystem_methods->routines[7]))) (self))
#define windowsystem_HandleFiles(self,WaitTime,beCheap) \
    ((* ((boolean (*)())((self)->header.windowsystem_methods->routines[8]))) (self,WaitTime,beCheap))

#define windowsystem_NewFromObject(self) \
    ((* ((struct windowsystem * (*)())((self)->header.windowsystem_methods->info->procs->routines[0]))) (&windowsystem_classheader, (self)->header.windowsystem_methods->info->versionnumber))
#define windowsystem_New() \
    (*((struct windowsystem * (*)()) (windowsystem_CLASSPROCEDURES->routines[0])))(&windowsystem_classheader,windowsystem_VERSION)
#define windowsystem_Initialize(self) \
    (*((void (*)()) (windowsystem_CLASSPROCEDURES->routines[2])))(&windowsystem_classheader,self, windowsystem_VERSION)

#define windowsystem_Destroy(self) \
    ((* ((void (*)()) ((self)->header.windowsystem_methods->info->procs->routines[1]))) (&windowsystem_classheader, self))
#define windowsystem_Finalize(self) \
    (*((void (*)()) (windowsystem_CLASSPROCEDURES->routines[3])))(&windowsystem_classheader,self)



#endif /* !defined(windowsystem_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_windowsystem ) && !defined(class_StaticEntriesOnly)*/

