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

/**  SPECIFICATION -- External Facility Suite  *********************************

TITLE	The Bush View-object

MODULE	bushv.ch

VERSION	0.0

AUTHOR	TC Peters & GW Keim
	Information Technology Center, Carnegie-Mellon University 

DESCRIPTION
	This is the suite of Methods that support the Bush View-object.

    NB: The comment-symbol "===" indicates areas which are:
	    1 - Questionable
	    OR
	    2 - Arbitrary
	    OR
	    3 - Temporary Hacks
    Such curiosities need be resolved prior to Project Completion...


HISTORY
  08/21/85	Created (TCP)
  01/15/89	Convert to ATK (GW Keim)

END-SPECIFICATION  ************************************************************/


#define MAXEDITORS		    25








/* 
 * End of information copied from bushv.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_aptv
#include "aptv.ih"
#undef dontDefineRoutinesFor_aptv

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for bushv 
 */ 
struct bushv { 
    union {
	struct basicobject_methods *bushv_methods;
	struct traced traced;
	struct observable observable;
	struct view view;
	struct aptv aptv;
    } header;
    struct bush			*bush;
    tree_type_node		 current_node, 
				 initial_node,
	                         move_node;
    struct Dir_Entry		*current_entry;
    int				 editor_index;
    int				 num_editor_choices;
    char			 editor_program[1025];
    char			*editor_choices[MAXEDITORS];
    struct suite		*control_view;
    struct suite		*entries_view;
    struct treev		*dir_tree_view;
    struct view		        *entry_view, *entry_view_application_layer;
    struct dataobject		*entry;
    long			 entry_object_modified;
    long			 entry_object_last_checkpoint;
    FILE			*entry_filep;
    int				 num_prev_selected;
    struct lpair		*lp;
    int			         object;
    int				 sortmode;
    struct keystate		*keyState;
    struct keymap		*kmap;
    struct cursor		*cursor;
    struct menulist		*menulist;
    boolean			 detail;
    boolean			 top_level_inset;
    int				 debug;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef bushv_PROGRAMMERVERSION
#define bushv_PROGRAMMERVERSION 1
#endif /* bushv_PROGRAMMERVERSION */

#ifdef bushv_VERSION
#undef bushv_VERSION
#endif /* bushv_VERSION */
#define bushv_VERSION ((((bushv_PROGRAMMERVERSION << 16) ^ (108 << 8) ^ sizeof(struct bushv)) & 0x7ffff) + 0x80000 + (66 << 20))


#endif /* class_StaticInfoOnly */
#define bushv_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *bushv__GetClassInfo(); \
 extern struct classheader *bushv_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, bushv_classheader_StaticExport->name, bushv__GetClassInfo, NULL, bushv_classheader_StaticExport->namekey); } 
 
#define bushv_StaticLoad()  \
    { \
    aptv_StaticLoad(); \
    bushv_StaticLoadOnlyThisClass();  \
    } 
 
#define bushv_StaticEntry  {bushv_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader bushv_classheader = {
    bushv_VERSION,
    "bushv",
    "bushv",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define bushv_CLASSPROCEDURES (bushv_classheader.classprocedures)
int bushv_classref_;
#endif /* class_StaticInfoOnly */

#endif /* bushv_DEFINED */

#if !defined(bushv_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_bushv) && !defined(class_StaticEntriesOnly)
#define bushv_ROUTINESDEFINED

#define bushv_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define bushv_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define bushv_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define bushv_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[0]))) (self,observer))
#define bushv_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.bushv_methods->routines[1]))) (self,observer))
#define bushv_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[2]))) (self,observer))
#define bushv_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[3]))) (self,value))
#define bushv_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[4]))) (self,changed,value))
#define bushv_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.bushv_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define bushv_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[6]))) (self,trigger,rcvr))
#define bushv_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[7]))) (self,trigger))
#define bushv_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[8]))) (self,trigger))
#define bushv_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[9]))) (self,trigger))
#define bushv_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.bushv_methods->routines[10]))) (self,trigger))
#define bushv_SetName(self,name) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[11]))) (self,name))
#define bushv_GetName(self) \
    ((* ((struct atomlist * (*)())((self)->header.bushv_methods->routines[12]))) (self))
#define bushv_GetClass(self) \
    ((* ((struct atomlist * (*)())((self)->header.bushv_methods->routines[13]))) (self))
#define bushv_GetParameter(self,name,type,datum) \
    ((* ((short (*)())((self)->header.bushv_methods->routines[14]))) (self,name,type,datum))
#define bushv_GetResource(self,name,class,type,datum) \
    ((* ((short (*)())((self)->header.bushv_methods->routines[15]))) (self,name,class,type,datum))
#define bushv_GetManyParameters(self,resources,name,class) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[16]))) (self,resources,name,class))
#define bushv_PostResource(self,path,type,datum) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[17]))) (self,path,type,datum))
#define bushv_InsertViewRegion(self,parent,region) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[18]))) (self,parent,region))
#define bushv_InsertView(self,parent,enclosingRect) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[19]))) (self,parent,enclosingRect))
#define bushv_InsertViewSize(self,EnclosingView,xOriginInParent,yOriginInParent,width,height) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[20]))) (self,EnclosingView,xOriginInParent,yOriginInParent,width,height))
#define bushv_SetDataObject(self,dataobject) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[21]))) (self,dataobject))
#define bushv_GetApplicationLayer(self) \
    ((* ((struct view * (*)())((self)->header.bushv_methods->routines[22]))) (self))
#define bushv_DeleteApplicationLayer(self,applicationLayer) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[23]))) (self,applicationLayer))
#define bushv_DescriptionObject(self,format,rock) \
    ((* ((char * (*)())((self)->header.bushv_methods->routines[24]))) (self,format,rock))
#define bushv_Describe(self,format,file,rock) \
    ((* ((enum view_DescriberErrs (*)())((self)->header.bushv_methods->routines[25]))) (self,format,file,rock))
#define bushv_FullUpdate(self,type,left,top,width,right) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[26]))) (self,type,left,top,width,right))
#define bushv_Update(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[27]))) (self))
#define bushv_Print(self,file,processor,finalFormat,topLevel) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[28]))) (self,file,processor,finalFormat,topLevel))
#define bushv_Hit(self,action,x,y,numberOfClicks) \
    ((* ((struct view * (*)())((self)->header.bushv_methods->routines[29]))) (self,action,x,y,numberOfClicks))
#define bushv_DesiredSize(self,width,height,pass,dWidth,dheight) \
    ((* ((enum view_DSattributes (*)())((self)->header.bushv_methods->routines[30]))) (self,width,height,pass,dWidth,dheight))
#define bushv_GetOrigin(self,width,height,originX,originY) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[31]))) (self,width,height,originX,originY))
#define bushv_ReceiveInputFocus(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[32]))) (self))
#define bushv_LoseInputFocus(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[33]))) (self))
#define bushv_ReceiveColormap(self,cmap) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[34]))) (self,cmap))
#define bushv_LoseColormap(self,cmap) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[35]))) (self,cmap))
#define bushv_WantUpdate(self,requestor) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[36]))) (self,requestor))
#define bushv_WantInputFocus(self,requestor) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[37]))) (self,requestor))
#define bushv_WantColormap(self,requestor,cmap) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[38]))) (self,requestor,cmap))
#define bushv_WantNewSize(self,requestor) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[39]))) (self,requestor))
#define bushv_WantHandler(self,handlerName) \
    ((* ((struct basicobject * (*)())((self)->header.bushv_methods->routines[40]))) (self,handlerName))
#define bushv_WantInformation(self,key) \
    ((* ((char * (*)())((self)->header.bushv_methods->routines[41]))) (self,key))
#define bushv_PostKeyState(self,keystate) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[42]))) (self,keystate))
#define bushv_PostMenus(self,menulist) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[43]))) (self,menulist))
#define bushv_PostCursor(self,rec,cursor) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[44]))) (self,rec,cursor))
#define bushv_RetractCursor(self,cursor) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[45]))) (self,cursor))
#define bushv_RetractViewCursors(self,requestor) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[46]))) (self,requestor))
#define bushv_PostDefaultHandler(self,handlerName,handler) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[47]))) (self,handlerName,handler))
#define bushv_GetInterface(self,type) \
    ((* ((char * (*)())((self)->header.bushv_methods->routines[48]))) (self,type))
#define bushv_LinkTree(self,parent) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[49]))) (self,parent))
#define bushv_UnlinkTree(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[50]))) (self))
#define bushv_IsAncestor(self,possibleAncestor) \
    ((* ((boolean (*)())((self)->header.bushv_methods->routines[51]))) (self,possibleAncestor))
#define bushv_UnlinkNotification(self,unlinkedTree) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[52]))) (self,unlinkedTree))
#define bushv_GetWindowManagerType(self) \
    ((* ((char * (*)())((self)->header.bushv_methods->routines[53]))) (self))
#define bushv_GetDevice(self) \
    ((* ((long (*)())((self)->header.bushv_methods->routines[54]))) (self))
#define bushv_InitChildren(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[55]))) (self))
#define bushv_CanView(self,TypeName) \
    ((* ((boolean (*)())((self)->header.bushv_methods->routines[56]))) (self,TypeName))
#define bushv_LoseSelectionOwnership(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[57]))) (self))
#define bushv_WriteSelection(self,out) \
    ((* ((long (*)())((self)->header.bushv_methods->routines[58]))) (self,out))
#define bushv_MoveToPt(self,Pt) \
 (graphic_MoveToPt(((&(self)->header.view))->drawable,(Pt)))
#define bushv_MoveTo(self,NewX,NewY) \
 (graphic_MoveTo(((&(self)->header.view))->drawable,(NewX),(NewY)))
#define bushv_Move(self,DeltaX,DeltaY) \
 (graphic_Move(((&(self)->header.view))->drawable,(DeltaX),(DeltaY)))
#define bushv_GetLogicalBounds(self,Rect) \
 (graphic_GetLogicalBounds(((&(self)->header.view))->drawable,(Rect)))
#define bushv_GetLogicalBoundsSize(self,x,y,width,height) \
 (graphic_GetLogicalBoundsSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define bushv_GetLogicalRight(self) \
 (graphic_GetLogicalRight(((&(self)->header.view))->drawable))
#define bushv_GetLogicalBottom(self) \
 (graphic_GetLogicalBottom(((&(self)->header.view))->drawable))
#define bushv_GetLogicalLeft(self) \
 (graphic_GetLogicalLeft(((&(self)->header.view))->drawable))
#define bushv_GetLogicalHeight(self) \
 (graphic_GetLogicalHeight((((&(self)->header.view))->drawable)))
#define bushv_GetLogicalWidth(self) \
 (graphic_GetLogicalWidth((((&(self)->header.view))->drawable)))
#define bushv_GetLogicalTop(self) \
 (graphic_GetLogicalTop((((&(self)->header.view))->drawable)))
#define bushv_SetVisualRegion(self,region) \
 (graphic_SetVisualRegion(((&(self)->header.view))->drawable, (region)))
#define bushv_GetVisualRegion(self,region) \
 (graphic_GetVisualRegion(((&(self)->header.view))->drawable, (region)))
#define bushv_GetVisualBounds(self,Rect) \
 (graphic_GetVisualBounds(((&(self)->header.view))->drawable,(Rect)))
#define bushv_GetVisualBoundsSize(self,x,y,width,height) \
 (graphic_GetVisualBoundsSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define bushv_GetVisualRight(self) \
 (graphic_GetVisualRight(((&(self)->header.view))->drawable))
#define bushv_GetVisualBottom(self) \
 (graphic_GetVisualBottom(((&(self)->header.view))->drawable))
#define bushv_GetVisualWidth(self) \
 (graphic_GetVisualWidth((((&(self)->header.view))->drawable)))
#define bushv_GetVisualHeight(self) \
 (graphic_GetVisualHeight((((&(self)->header.view))->drawable)))
#define bushv_GetVisualLeft(self) \
 (graphic_GetVisualLeft((((&(self)->header.view))->drawable)))
#define bushv_GetVisualTop(self) \
 (graphic_GetVisualTop((((&(self)->header.view))->drawable)))
#define bushv_GetEnclosedBounds(self,Rect) \
 (graphic_GetEnclosedBounds(((&(self)->header.view))->drawable, (Rect)))
#define bushv_GetEnclosedBoundsSize(self,x,y,width,height) \
 (graphic_GetEnclosedBoundsSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define bushv_GetEnclosedRight(self) \
 (graphic_GetEnclosedRight(((&(self)->header.view))->drawable))
#define bushv_GetEnclosedBottom(self) \
 (graphic_GetEnclosedBottom(((&(self)->header.view))->drawable))
#define bushv_GetEnclosedLeft(self) \
 (graphic_GetEnclosedLeft((((&(self)->header.view))->drawable)))
#define bushv_GetEnclosedTop(self) \
 (graphic_GetEnclosedTop((((&(self)->header.view))->drawable)))
#define bushv_GetEnclosedWidth(self) \
 (graphic_GetEnclosedWidth((((&(self)->header.view))->drawable)))
#define bushv_GetEnclosedHeight(self) \
 (graphic_GetEnclosedHeight((((&(self)->header.view))->drawable)))
#define bushv_GetCurrentPt(self,Pt) \
 (graphic_GetCurrentPt(((&(self)->header.view))->drawable,(Pt)))
#define bushv_DrawLineToPt(self,LineEnd) \
 (graphic_DrawLineToPt(((&(self)->header.view))->drawable,(LineEnd)))
#define bushv_DrawLineTo(self,XEnd,YEnd) \
 (graphic_DrawLineTo(((&(self)->header.view))->drawable,(XEnd), (YEnd)))
#define bushv_DrawLine(self,DeltaX,DeltaY) \
 (graphic_DrawLine(((&(self)->header.view))->drawable, (DeltaX), (DeltaY)))
#define bushv_DrawString(self,Text,Operation) \
 (graphic_DrawString(((&(self)->header.view))->drawable, (Text), (Operation)))
#define bushv_DrawText(self,Text,TextLength,Operation) \
 (graphic_DrawText(((&(self)->header.view))->drawable, (Text), (TextLength), (Operation)))
#define bushv_SetSpaceShim(self,Amount) \
 (graphic_SetSpaceShim(((&(self)->header.view))->drawable,(Amount)))
#define bushv_GetSpaceShim(self) \
 (graphic_GetSpaceShim(((&(self)->header.view))->drawable))
#define bushv_SetFont(self,ChosenFont) \
 (graphic_SetFont(((&(self)->header.view))->drawable, (ChosenFont)))
#define bushv_GetFont(self) \
 (graphic_GetFont(((&(self)->header.view))->drawable))
#define bushv_DrawRect(self,Rect) \
 (graphic_DrawRect(((&(self)->header.view))->drawable,(Rect)))
#define bushv_DrawRectSize(self,x,y,width,height) \
 (graphic_DrawRectSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define bushv_DrawTrapezoid(self,topX,topY,topWidth,bottomX,bottomY,bottomWidth) \
 (graphic_DrawTrapezoid(((&(self)->header.view))->drawable,(topX),(topY),(topWidth),(bottomX),(bottomY),(bottomWidth)))
#define bushv_DrawPolygon(self,PointArray,PointCount) \
 (graphic_DrawPolygon(((&(self)->header.view))->drawable,(PointArray), (PointCount)))
#define bushv_DrawPath(self,PointArray,PointCount) \
 (graphic_DrawPath(((&(self)->header.view))->drawable,(PointArray), (PointCount)))
#define bushv_DrawOval(self,Rect) \
 (graphic_DrawOval(((&(self)->header.view))->drawable,(Rect)))
#define bushv_DrawOvalSize(self,x,y,width,height) \
 (graphic_DrawOvalSize(((&(self)->header.view))->drawable, (x), (y), (width), (height)))
#define bushv_DrawArc(self,EnclRect,StartAngle,OffsetAngle) \
 (graphic_DrawArc(((&(self)->header.view))->drawable,(EnclRect),(StartAngle),(OffsetAngle)))
#define bushv_DrawArcSize(self,x,y,width,height,StartAngle,OffsetAngle) \
 (graphic_DrawArcSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (StartAngle), (OffsetAngle)))
#define bushv_DrawRRect(self,OuterBox,InnerBox) \
 (graphic_DrawRRect(((&(self)->header.view))->drawable, (OuterBox), (InnerBox)))
#define bushv_DrawRRectSize(self,x,y,width,height,cornerWidth,cornerHeight) \
 (graphic_DrawRRectSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (cornerWidth), (cornerHeight)))
#define bushv_DrawRgn(self,Rgn) \
 (graphic_DrawRgn(((&(self)->header.view))->drawable,(Rgn)))
#define bushv_FillRect(self,Rect,Tile) \
 (graphic_FillRect(((&(self)->header.view))->drawable, (Rect),(Tile)))
#define bushv_FillRectSize(self,x,y,width,height,Tile) \
 (graphic_FillRectSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (Tile)))
#define bushv_FillTrapezoid(self,topX,topY,topWidth,bottomX,bottomY,bottomWidth,Tile) \
 (graphic_FillTrapezoid(((&(self)->header.view))->drawable, (topX), (topY), (topWidth), (bottomX), (bottomY), (bottomWidth), (Tile)))
#define bushv_FillPolygon(self,PointArray,PointCount,Tile) \
 (graphic_FillPolygon(((&(self)->header.view))->drawable, (PointArray), (PointCount), (Tile)))
#define bushv_FillOval(self,Rect,Tile) \
 (graphic_FillOval(((&(self)->header.view))->drawable, (Rect), (Tile)))
#define bushv_FillOvalSize(self,x,y,width,height,Tile) \
 (graphic_FillOvalSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (Tile)))
#define bushv_FillArc(self,EnclRect,StartAngle,OffsetAngle,Tile) \
 (graphic_FillArc(((&(self)->header.view))->drawable, (EnclRect), (StartAngle), (OffsetAngle),(Tile)))
#define bushv_FillArcSize(self,x,y,width,height,StartAngle,OffsetAngle,Tile) \
 (graphic_FillArcSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (StartAngle), (OffsetAngle), (Tile)))
#define bushv_FillRRect(self,OuterBox,InnerBox,Tile) \
 (graphic_FillRRect(((&(self)->header.view))->drawable, (OuterBox), (InnerBox), (Tile)))
#define bushv_FillRRectSize(self,x,y,width,height,cornerWidth,cornerHeight,Tile) \
 (graphic_FillRRectSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (cornerWidth), (cornerHeight), (Tile)))
#define bushv_FillRgn(self,Rgn,Tile) \
 (graphic_FillRgn(((&(self)->header.view))->drawable, (Rgn), (Tile)))
#define bushv_EraseRect(self,Rect) \
 (graphic_EraseRect(((&(self)->header.view))->drawable, (Rect)))
#define bushv_EraseRectSize(self,x,y,width,height) \
 (graphic_EraseRectSize(((&(self)->header.view))->drawable, (x), (y), (width), (height)))
#define bushv_EraseVisualRect(self) \
 (graphic_EraseVisualRect(((&(self)->header.view))->drawable))
#define bushv_BitBlt(self,SrcRect,DestView,DstOrigin,ClipRectList) \
 (graphic_BitBlt(((&(self)->header.view))->drawable,(SrcRect), (((struct view *)(DestView))->drawable), (DstOrigin), (ClipRectList)))
#define bushv_BitBltSize(self,srcX,srcY,dstX,dstY,Width,Height,DstView,clipX,clipY,clipWidth,clipHeight) \
 (graphic_BitBltSize(((&(self)->header.view))->drawable, (srcX), (srcY), (dstX), (dstY), (Width),(Height), (((struct view*)(DstView))->drawable), (clipX),(clipY), (clipWidth), (clipHeight)))
#define bushv_SetBitAtLoc(self,XPos,YPos,NewValue) \
 (graphic_SetBitAtLoc(((&(self)->header.view))->drawable, (XPos), (YPos), (NewValue)))
#define bushv_MoveLogicalOrigin(self,DeltaX,DeltaY) \
 (graphic_MoveLogicalOrigin(((&(self)->header.view))->drawable,(DeltaX), (DeltaY)))
#define bushv_SetLogicalOrigin(self,NewX,NewY) \
 (graphic_SetLogicalOrigin(((&(self)->header.view))->drawable,(NewX), (NewY)))
#define bushv_SetLogicalOriginPt(self,Pt) \
 (graphic_SetLogicalOriginPt(((&(self)->header.view))->drawable,(Pt)))
#define bushv_SetClippingRegion(self,region) \
 (graphic_SetClippingRegion(((&(self)->header.view))->drawable, (region)))
#define bushv_GetClippingRegion(self,region) \
 (graphic_GetClippingRegion(((&(self)->header.view))->drawable, (region)))
#define bushv_SetClippingRect(self,ClipRect) \
 (graphic_SetClippingRect(((&(self)->header.view))->drawable,(ClipRect)))
#define bushv_SetClippingRectSize(self,x,y,width,height) \
 (graphic_SetClippingRectSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define bushv_ClearClippingRect(self) \
 (graphic_ClearClippingRect(((&(self)->header.view))->drawable))
#define bushv_GetClippingRect(self,Rect) \
 (graphic_GetClippingRect(((&(self)->header.view))->drawable,(Rect)))
#define bushv_SetLineWidth(self,NewLineWidth) \
 (graphic_SetLineWidth(((&(self)->header.view))->drawable, (NewLineWidth)))
#define bushv_GetLineWidth(self) \
 (graphic_GetLineWidth(((&(self)->header.view))->drawable))
#define bushv_SetLineDash(self,dashPattern,dashOffset,dashType) \
 (graphic_SetLineDash(((&(self)->header.view))->drawable, (dashPattern), (dashOffset), (dashType)))
#define bushv_GetLineDash(self,dashPattern,dashOffset,dashType) \
 (graphic_GetLineDash(((&(self)->header.view))->drawable, (dashPattern), (dashOffset), (dashType)))
#define bushv_SetLineCap(self,NewLineCap) \
 (graphic_SetLineCap(((&(self)->header.view))->drawable, (NewLineCap)))
#define bushv_GetLineCap(self) \
 (graphic_GetLineCap(((&(self)->header.view))->drawable))
#define bushv_SetLineJoin(self,NewLineJoin) \
 (graphic_SetLineJoin(((&(self)->header.view))->drawable, (NewLineJoin)))
#define bushv_GetLineJoin(self) \
 (graphic_GetLineJoin(((&(self)->header.view))->drawable))
#define bushv_SetTransferMode(self,NewTransferMode) \
 (graphic_SetTransferMode(((&(self)->header.view))->drawable, (NewTransferMode)))
#define bushv_GetTransferMode(self) \
 (graphic_GetTransferMode(((&(self)->header.view))->drawable))
#define bushv_FlushGraphics(self) \
 (graphic_FlushGraphics(((&(self)->header.view))->drawable))
#define bushv_WhitePattern(self) \
 (graphic_WhitePattern(((&(self)->header.view))->drawable))
#define bushv_BlackPattern(self) \
 (graphic_BlackPattern(((&(self)->header.view))->drawable))
#define bushv_GrayPattern(self,IntensityNum,IntensityDenom) \
 (graphic_GrayPattern(((&(self)->header.view))->drawable, (IntensityNum), (IntensityDenom)))
#define bushv_SetPatternOrigin(self,xpos,ypos) \
  (graphic_SetPatternOrigin(((&(self)->header.view))->drawable, (xpos), (ypos)))
#define bushv_GetPatternOrigin(self,xpos,ypos) \
  (graphic_GetPatternOrigin(((&(self)->header.view))->drawable, (xpos), (ypos)))
#define bushv_SetForegroundColor(self,colorName,red,green,blue) \
 (graphic_SetForegroundColor(((&(self)->header.view))->drawable, (colorName), (red), (green), (blue)))
#define bushv_GetForegroundColor(self,name,retred,retgreen,retblue) \
     (graphic_GetForegroundColor(((&(self)->header.view))->drawable, (name), (retred), (retgreen), (retblue)))
#define bushv_SetBackgroundColor(self,colorName,red,green,blue) \
 (graphic_SetBackgroundColor(((&(self)->header.view))->drawable, (colorName), (red),(green),(blue)))
#define bushv_GetBackgroundColor(self,name,retred,retgreen,retblue) \
 (graphic_GetBackgroundColor(((&(self)->header.view))->drawable, (name), (retred), (retgreen),(retblue)))
#define bushv_SetFGColor(self,red,green,blue) \
 (graphic_SetFGColor(((&(self)->header.view))->drawable,(red),(green),(blue)))
#define bushv_GetFGColor(self,red,green,blue) \
 (graphic_GetFGColor(((&(self)->header.view))->drawable,(red),(green),(blue)))
#define bushv_SetBGColor(self,red,green,blue) \
 (graphic_SetBGColor(((&(self)->header.view))->drawable,(red),(green),(blue)))
#define bushv_GetBGColor(self,red,green,blue) \
 (graphic_GetBGColor(((&(self)->header.view))->drawable,(red),(green),(blue)))
#define bushv_GetHorizontalResolution(self) \
 (graphic_GetHorizontalResolution(((&(self)->header.view))->drawable))
#define bushv_GetVerticalResolution(self) \
 (graphic_GetVerticalResolution(((&(self)->header.view))->drawable))
#define bushv_GetIM(self) \
 (((&(self)->header.view))->imPtr)
#define bushv_GetDrawable(self) \
 (((&(self)->header.view))->drawable)
#define bushv_GetColormap(self) \
 (graphic_GetColormap(((&(self)->header.view))->drawable))
#define bushv_SetColormap(self,cmap) \
 (graphic_SetColormap(((&(self)->header.view))->drawable, cmap))
#define bushv_GetInheritedColormap(self) \
 (graphic_GetInheritedColormap(((&(self)->header.view))->drawable))
#define bushv_SetInheritedColormap(self,cmap) \
 (graphic_SetInheritedColormap(((&(self)->header.view))->drawable, cmap))
#define bushv_ClearInheritedColormap(self) \
 (graphic_ClearInheritedColormap(((&(self)->header.view))->drawable))
#define bushv_CurrentColormap(self) \
 (graphic_CurrentColormap(((&(self)->header.view))->drawable))
#define bushv_EnclosedXToLocalX(self,xvalue) \
   ((xvalue)-graphic_GetEnclosedLeft(((&(self)->header.view))->drawable)+graphic_GetLogicalLeft(((&(self)->header.view))->drawable))
#define bushv_EnclosedYToLocalY(self,yvalue) \
    ((yvalue)-graphic_GetEnclosedTop(((&(self)->header.view))->drawable)+graphic_GetLogicalTop(((&(self)->header.view))->drawable))
#define bushv_GetDataObject(self) \
 (((&(self)->header.view))->dataobject)
#define bushv_DisplayClass(self) \
 (graphic_DisplayClass(((&(self)->header.view))->drawable ))
#define bushv_ClearColors(self) \
 (graphic_ClearColors(((&(self)->header.view))->drawable))
#define bushv_SetOptions(self,options) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[59]))) (self,options))
#define bushv_SetDimensions(self,width,height) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[60]))) (self,width,height))
#define bushv_BuildFont(self,font_name,height) \
    ((* ((struct fontdesc * (*)())((self)->header.bushv_methods->routines[61]))) (self,font_name,height))
#define bushv_DrawBoundedString(self,string,font,bounds,center,middle,mode) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[62]))) (self,string,font,bounds,center,middle,mode))
#define bushv_ClearBoundedString(self,string,font,bounds,center,middle,mode) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[63]))) (self,string,font,bounds,center,middle,mode))
#define bushv_Within(self,x,y,bounds) \
    ((* ((boolean (*)())((self)->header.bushv_methods->routines[64]))) (self,x,y,bounds))
#define bushv_SetShrinkIcon(self,icon,icon_font_name,title,title_font_name) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[65]))) (self,icon,icon_font_name,title,title_font_name))
#define bushv_Shrink(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[66]))) (self))
#define bushv_ShrinkView(self,aptv) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[67]))) (self,aptv))
#define bushv_Expand(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[68]))) (self))
#define bushv_ExpandView(self,aptv) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[69]))) (self,aptv))
#define bushv_ClearBody(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[70]))) (self))
#define bushv_PrintObject(self,file,processor,finalFormat,topLevel,printer) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[71]))) (self,file,processor,finalFormat,topLevel,printer))
#define bushv_PrintContinue(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[72]))) (self))
#define bushv_OpenPrintStream(self,file,processor,format,level) \
    ((* ((boolean (*)())((self)->header.bushv_methods->routines[73]))) (self,file,processor,format,level))
#define bushv_ClosePrintStream(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[74]))) (self))
#define bushv_SetPrintStream(self,stream) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[75]))) (self,stream))
#define bushv_PreservePrintState(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[76]))) (self))
#define bushv_RestorePrintState(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[77]))) (self))
#define bushv_PrintBox(self,left,top,width,height,mode) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[78]))) (self,left,top,width,height,mode))
#define bushv_PrintRoundBox(self,left,top,width,height,mode) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[79]))) (self,left,top,width,height,mode))
#define bushv_PrintFilledRoundBox(self,left,top,width,height,mode,shade) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[80]))) (self,left,top,width,height,mode,shade))
#define bushv_PrintLine(self,x1,y1,x2,y2) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[81]))) (self,x1,y1,x2,y2))
#define bushv_PrintCircle(self,x1,y1,radius) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[82]))) (self,x1,y1,radius))
#define bushv_PrintSlice(self,x1,y1,radius,start_angle,end_angle,shade_numerator,shade_denominator,mode) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[83]))) (self,x1,y1,radius,start_angle,end_angle,shade_numerator,shade_denominator,mode))
#define bushv_PrintMoveTo(self,x,y) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[84]))) (self,x,y))
#define bushv_PrintLineTo(self,x,y) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[85]))) (self,x,y))
#define bushv_SetPrintOrigin(self,left,top) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[86]))) (self,left,top))
#define bushv_SetPrintUnitDimensions(self,inch_width,inch_height) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[87]))) (self,inch_width,inch_height))
#define bushv_SetPrintPageDimensions(self,inch_width,inch_height) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[88]))) (self,inch_width,inch_height))
#define bushv_SetPrintResolution(self,pixels_per_inch) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[89]))) (self,pixels_per_inch))
#define bushv_SetPrintOptions(self,options) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[90]))) (self,options))
#define bushv_SetPrintLineWidth(self,width) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[91]))) (self,width))
#define bushv_SetPrintGrayLevel(self,level) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[92]))) (self,level))
#define bushv_SetPrintPath(self,path) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[93]))) (self,path))
#define bushv_PrintPath(self,path) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[94]))) (self,path))
#define bushv_PrintPathFilled(self,path) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[95]))) (self,path))
#define bushv_SetPrintFont(self,font_name) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[96]))) (self,font_name))
#define bushv_ResetPrintFont(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[97]))) (self))
#define bushv_PrintString(self,x1,y1,string,mode) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[98]))) (self,x1,y1,string,mode))
#define bushv_SetHelpString(self,string) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[99]))) (self,string))
#define bushv_SetHelpFileName(self,file_name) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[100]))) (self,file_name))
#define bushv_UseWaitCursor(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[101]))) (self))
#define bushv_UseNormalCursor(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[102]))) (self))
#define bushv_UseInvisibleCursor(self) \
    ((* ((void (*)())((self)->header.bushv_methods->routines[103]))) (self))
#define bushv_Query(self,query,default_response,response) \
    ((* ((long (*)())((self)->header.bushv_methods->routines[104]))) (self,query,default_response,response))
#define bushv_QueryFileName(self,query,response) \
    ((* ((long (*)())((self)->header.bushv_methods->routines[105]))) (self,query,response))
#define bushv_QueryDirectoryName(self,query,response) \
    ((* ((long (*)())((self)->header.bushv_methods->routines[106]))) (self,query,response))
#define bushv_Announce(self,message) \
    ((* ((long (*)())((self)->header.bushv_methods->routines[107]))) (self,message))
#define bushv_IconFont(self) \
	    (((&(self)->header.aptv))->icon_font)
#define bushv_CursorFont(self) \
	    (((&(self)->header.aptv))->cursor_font)
#define bushv_PrintStream(self) \
	    (((&(self)->header.aptv))->print_stream)
#define bushv_Bounds(self) \
	    (&((&(self)->header.aptv))->enclosures[0].bound)
#define bushv_BodyBounds(self) \
	    (&((&(self)->header.aptv))->enclosures[5].bound)
#define bushv_BodyLeft(self) \
	    (aptv_BodyBounds((&(self)->header.aptv))->left)
#define bushv_BodyTop(self) \
	    (aptv_BodyBounds((&(self)->header.aptv))->top)
#define bushv_BodyWidth(self) \
	    (aptv_BodyBounds((&(self)->header.aptv))->width)
#define bushv_BodyHeight(self) \
	    (aptv_BodyBounds((&(self)->header.aptv))->height)
#define bushv_BodyCenter(self) \
	    (aptv_BodyLeft((&(self)->header.aptv)) + aptv_BodyWidth((&(self)->header.aptv))/2)
#define bushv_BodyRight(self) \
	    (aptv_BodyLeft((&(self)->header.aptv)) + aptv_BodyWidth((&(self)->header.aptv)) - 1)
#define bushv_BodyMiddle(self) \
	    (aptv_BodyTop((&(self)->header.aptv))  + aptv_BodyHeight((&(self)->header.aptv))/2)
#define bushv_BodyBottom(self) \
	    (aptv_BodyTop((&(self)->header.aptv))  + aptv_BodyHeight((&(self)->header.aptv)) - 1)
#define bushv_BypassUpdate(self) \
    (((&(self)->header.aptv))->bypass_update)

#define bushv_NewFromObject(self) \
    ((* ((struct bushv * (*)())((self)->header.bushv_methods->info->procs->routines[0]))) (&bushv_classheader, (self)->header.bushv_methods->info->versionnumber))
#define bushv_New() \
    (*((struct bushv * (*)()) (bushv_CLASSPROCEDURES->routines[0])))(&bushv_classheader,bushv_VERSION)
#define bushv_Initialize(self) \
    (*((void (*)()) (bushv_CLASSPROCEDURES->routines[2])))(&bushv_classheader,self, bushv_VERSION)

#define bushv_Destroy(self) \
    ((* ((void (*)()) ((self)->header.bushv_methods->info->procs->routines[1]))) (&bushv_classheader, self))
#define bushv_Finalize(self) \
    (*((void (*)()) (bushv_CLASSPROCEDURES->routines[3])))(&bushv_classheader,self)

#define bushv_InitializeObject(self) \
    (*((boolean (*)()) (bushv_CLASSPROCEDURES->routines[5])))(&bushv_classheader,self)
#define bushv_FinalizeObject(self) \
    (*((void (*)()) (bushv_CLASSPROCEDURES->routines[6])))(&bushv_classheader,self)
#define bushv_InitializeClass() \
    (*((boolean (*)()) (bushv_CLASSPROCEDURES->routines[7])))(&bushv_classheader)
#define bushv_Create(object) \
    (*((struct bushv * (*)()) (bushv_CLASSPROCEDURES->routines[8])))(&bushv_classheader,object)


#endif /* !defined(bushv_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_bushv ) && !defined(class_StaticEntriesOnly)*/

