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


 

/* 
 *	cursor.ch
 */

#include <rect.h>






/* 
 * End of information copied from xcursor.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_cursor
#include "cursor.ih"
#undef dontDefineRoutinesFor_cursor

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for xcursor 
 */ 
struct xcursor { 
    union {
	struct basicobject_methods *xcursor_methods;
	struct cursor cursor;
    } header;
	Cursor  Xc;
	Window Xw;
	Display * Xd;
	struct xim *im;
	boolean valid;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef xcursor_PROGRAMMERVERSION
#define xcursor_PROGRAMMERVERSION 1
#endif /* xcursor_PROGRAMMERVERSION */

#ifdef xcursor_VERSION
#undef xcursor_VERSION
#endif /* xcursor_VERSION */
#define xcursor_VERSION ((((xcursor_PROGRAMMERVERSION << 16) ^ (4 << 8) ^ sizeof(struct xcursor)) & 0x7ffff) + 0x80000 + (2 << 20))


#endif /* class_StaticInfoOnly */
#define xcursor_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *xcursor__GetClassInfo(); \
 extern struct classheader *xcursor_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, xcursor_classheader_StaticExport->name, xcursor__GetClassInfo, NULL, xcursor_classheader_StaticExport->namekey); } 
 
#define xcursor_StaticLoad()  \
    { \
    cursor_StaticLoad(); \
    xcursor_StaticLoadOnlyThisClass();  \
    } 
 
#define xcursor_StaticEntry  {xcursor_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader xcursor_classheader = {
    xcursor_VERSION,
    "xcursor",
    "xcursor",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define xcursor_CLASSPROCEDURES (xcursor_classheader.classprocedures)
int xcursor_classref_;
#endif /* class_StaticInfoOnly */

#endif /* xcursor_DEFINED */

#if !defined(xcursor_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_xcursor) && !defined(class_StaticEntriesOnly)
#define xcursor_ROUTINESDEFINED

#define xcursor_SetGlyph(self,fd,ch) \
    ((* ((void (*)())((self)->header.xcursor_methods->routines[0]))) (self,fd,ch))
#define xcursor_SetStandard(self,ch) \
    ((* ((void (*)())((self)->header.xcursor_methods->routines[1]))) (self,ch))
#define xcursor_ChangeShape(self) \
    ((* ((void (*)())((self)->header.xcursor_methods->routines[2]))) (self))
#define xcursor_IsPosted(self) \
 (((&(self)->header.cursor))->posted != NULL)
#define xcursor_IsWindowCursor(self) \
 (((&(self)->header.cursor))->windowim != NULL)
#define xcursor_IsProcessCursor(self) \
 (((&(self)->header.cursor))->processC)
#define xcursor_Make(self,im) \
    ((* ((void (*)())((self)->header.xcursor_methods->routines[3]))) (self,im))

#define xcursor_NewFromObject(self) \
    ((* ((struct xcursor * (*)())((self)->header.xcursor_methods->info->procs->routines[0]))) (&xcursor_classheader, (self)->header.xcursor_methods->info->versionnumber))
#define xcursor_New() \
    (*((struct xcursor * (*)()) (xcursor_CLASSPROCEDURES->routines[0])))(&xcursor_classheader,xcursor_VERSION)
#define xcursor_Initialize(self) \
    (*((void (*)()) (xcursor_CLASSPROCEDURES->routines[2])))(&xcursor_classheader,self, xcursor_VERSION)

#define xcursor_Destroy(self) \
    ((* ((void (*)()) ((self)->header.xcursor_methods->info->procs->routines[1]))) (&xcursor_classheader, self))
#define xcursor_Finalize(self) \
    (*((void (*)()) (xcursor_CLASSPROCEDURES->routines[3])))(&xcursor_classheader,self)

#define xcursor_InitializeObject(self) \
    (*((boolean (*)()) (xcursor_CLASSPROCEDURES->routines[5])))(&xcursor_classheader,self)
#define xcursor_FinalizeObject(self) \
    (*((void (*)()) (xcursor_CLASSPROCEDURES->routines[6])))(&xcursor_classheader,self)
#define xcursor_InitializeClass() \
    (*((boolean (*)()) (xcursor_CLASSPROCEDURES->routines[7])))(&xcursor_classheader)
#define xcursor_FinalizeDisplay(dpy) \
    (*((void (*)()) (xcursor_CLASSPROCEDURES->routines[8])))(&xcursor_classheader,dpy)


#endif /* !defined(xcursor_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_xcursor ) && !defined(class_StaticEntriesOnly)*/

