 
#ifndef pushbuttonview_DEFINED
#define pushbuttonview_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 pshbttnv.ch and will be
 * overwritten.  Make changes to pshbttnv.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from pshbttnv.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 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.
* $
*/


/*
  Trigger:  "buttonpushed"
     called when the user lets up on the pushbutton over the pushbutton.

  Call pushbuttonview_HitButton(self) as shorthand for pulling the trigger.

*/







/* 
 * End of information copied from pshbttnv.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_view
#include "view.ih"
#undef dontDefineRoutinesFor_view

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for pushbuttonview 
 */ 
struct pushbuttonview { 
    union {
	struct basicobject_methods *pushbuttonview_methods;
	struct traced traced;
	struct observable observable;
	struct view view;
    } header;
    short lit;
    struct cursor *cursor;
    double foreground_color[3], background_color[3];
    char *cached_label;
    int cached_style;
    struct fontdesc *cached_fontdesc;
    struct menulist *ml;
    int awaitingUpdate;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef pushbuttonview_PROGRAMMERVERSION
#define pushbuttonview_PROGRAMMERVERSION 1
#endif /* pushbuttonview_PROGRAMMERVERSION */

#ifdef pushbuttonview_VERSION
#undef pushbuttonview_VERSION
#endif /* pushbuttonview_VERSION */
#define pushbuttonview_VERSION ((((pushbuttonview_PROGRAMMERVERSION << 16) ^ (59 << 8) ^ sizeof(struct pushbuttonview)) & 0x7ffff) + 0x80000 + (2 << 20))


#endif /* class_StaticInfoOnly */
#define pushbuttonview_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *pushbuttonview__GetClassInfo(); \
 extern struct classheader *pshbttnv_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, pshbttnv_classheader_StaticExport->name, pushbuttonview__GetClassInfo, NULL, pshbttnv_classheader_StaticExport->namekey); } 
 
#define pushbuttonview_StaticLoad()  \
    { \
    view_StaticLoad(); \
    pushbuttonview_StaticLoadOnlyThisClass();  \
    } 
 
#define pushbuttonview_StaticEntry  {pushbuttonview_StaticLoad()} 
 
#define pshbttnv_StaticEntry  {pushbuttonview_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader pushbuttonview_classheader = {
    pushbuttonview_VERSION,
    "pushbuttonview",
    "pshbttnv",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define pushbuttonview_CLASSPROCEDURES (pushbuttonview_classheader.classprocedures)
int pshbttnv_classref_;
#endif /* class_StaticInfoOnly */

#endif /* pushbuttonview_DEFINED */

#if !defined(pushbuttonview_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_pushbuttonview) && !defined(class_StaticEntriesOnly)
#define pushbuttonview_ROUTINESDEFINED

#define pushbuttonview_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define pushbuttonview_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define pushbuttonview_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define pushbuttonview_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[0]))) (self,observer))
#define pushbuttonview_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.pushbuttonview_methods->routines[1]))) (self,observer))
#define pushbuttonview_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[2]))) (self,observer))
#define pushbuttonview_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[3]))) (self,value))
#define pushbuttonview_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[4]))) (self,changed,value))
#define pushbuttonview_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.pushbuttonview_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define pushbuttonview_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[6]))) (self,trigger,rcvr))
#define pushbuttonview_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[7]))) (self,trigger))
#define pushbuttonview_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[8]))) (self,trigger))
#define pushbuttonview_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[9]))) (self,trigger))
#define pushbuttonview_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.pushbuttonview_methods->routines[10]))) (self,trigger))
#define pushbuttonview_SetName(self,name) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[11]))) (self,name))
#define pushbuttonview_GetName(self) \
    ((* ((struct atomlist * (*)())((self)->header.pushbuttonview_methods->routines[12]))) (self))
#define pushbuttonview_GetClass(self) \
    ((* ((struct atomlist * (*)())((self)->header.pushbuttonview_methods->routines[13]))) (self))
#define pushbuttonview_GetParameter(self,name,type,datum) \
    ((* ((short (*)())((self)->header.pushbuttonview_methods->routines[14]))) (self,name,type,datum))
#define pushbuttonview_GetResource(self,name,class,type,datum) \
    ((* ((short (*)())((self)->header.pushbuttonview_methods->routines[15]))) (self,name,class,type,datum))
#define pushbuttonview_GetManyParameters(self,resources,name,class) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[16]))) (self,resources,name,class))
#define pushbuttonview_PostResource(self,path,type,datum) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[17]))) (self,path,type,datum))
#define pushbuttonview_InsertViewRegion(self,parent,region) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[18]))) (self,parent,region))
#define pushbuttonview_InsertView(self,parent,enclosingRect) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[19]))) (self,parent,enclosingRect))
#define pushbuttonview_InsertViewSize(self,EnclosingView,xOriginInParent,yOriginInParent,width,height) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[20]))) (self,EnclosingView,xOriginInParent,yOriginInParent,width,height))
#define pushbuttonview_SetDataObject(self,dataobject) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[21]))) (self,dataobject))
#define pushbuttonview_GetApplicationLayer(self) \
    ((* ((struct view * (*)())((self)->header.pushbuttonview_methods->routines[22]))) (self))
#define pushbuttonview_DeleteApplicationLayer(self,applicationLayer) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[23]))) (self,applicationLayer))
#define pushbuttonview_DescriptionObject(self,format,rock) \
    ((* ((char * (*)())((self)->header.pushbuttonview_methods->routines[24]))) (self,format,rock))
#define pushbuttonview_Describe(self,format,file,rock) \
    ((* ((enum view_DescriberErrs (*)())((self)->header.pushbuttonview_methods->routines[25]))) (self,format,file,rock))
#define pushbuttonview_FullUpdate(self,type,left,top,width,right) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[26]))) (self,type,left,top,width,right))
#define pushbuttonview_Update(self) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[27]))) (self))
#define pushbuttonview_Print(self,file,processor,finalFormat,topLevel) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[28]))) (self,file,processor,finalFormat,topLevel))
#define pushbuttonview_Hit(self,action,x,y,numberOfClicks) \
    ((* ((struct view * (*)())((self)->header.pushbuttonview_methods->routines[29]))) (self,action,x,y,numberOfClicks))
#define pushbuttonview_DesiredSize(self,width,height,pass,dWidth,dheight) \
    ((* ((enum view_DSattributes (*)())((self)->header.pushbuttonview_methods->routines[30]))) (self,width,height,pass,dWidth,dheight))
#define pushbuttonview_GetOrigin(self,width,height,originX,originY) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[31]))) (self,width,height,originX,originY))
#define pushbuttonview_ReceiveInputFocus(self) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[32]))) (self))
#define pushbuttonview_LoseInputFocus(self) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[33]))) (self))
#define pushbuttonview_ReceiveColormap(self,cmap) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[34]))) (self,cmap))
#define pushbuttonview_LoseColormap(self,cmap) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[35]))) (self,cmap))
#define pushbuttonview_WantUpdate(self,requestor) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[36]))) (self,requestor))
#define pushbuttonview_WantInputFocus(self,requestor) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[37]))) (self,requestor))
#define pushbuttonview_WantColormap(self,requestor,cmap) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[38]))) (self,requestor,cmap))
#define pushbuttonview_WantNewSize(self,requestor) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[39]))) (self,requestor))
#define pushbuttonview_WantHandler(self,handlerName) \
    ((* ((struct basicobject * (*)())((self)->header.pushbuttonview_methods->routines[40]))) (self,handlerName))
#define pushbuttonview_WantInformation(self,key) \
    ((* ((char * (*)())((self)->header.pushbuttonview_methods->routines[41]))) (self,key))
#define pushbuttonview_PostKeyState(self,keystate) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[42]))) (self,keystate))
#define pushbuttonview_PostMenus(self,menulist) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[43]))) (self,menulist))
#define pushbuttonview_PostCursor(self,rec,cursor) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[44]))) (self,rec,cursor))
#define pushbuttonview_RetractCursor(self,cursor) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[45]))) (self,cursor))
#define pushbuttonview_RetractViewCursors(self,requestor) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[46]))) (self,requestor))
#define pushbuttonview_PostDefaultHandler(self,handlerName,handler) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[47]))) (self,handlerName,handler))
#define pushbuttonview_GetInterface(self,type) \
    ((* ((char * (*)())((self)->header.pushbuttonview_methods->routines[48]))) (self,type))
#define pushbuttonview_LinkTree(self,parent) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[49]))) (self,parent))
#define pushbuttonview_UnlinkTree(self) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[50]))) (self))
#define pushbuttonview_IsAncestor(self,possibleAncestor) \
    ((* ((boolean (*)())((self)->header.pushbuttonview_methods->routines[51]))) (self,possibleAncestor))
#define pushbuttonview_UnlinkNotification(self,unlinkedTree) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[52]))) (self,unlinkedTree))
#define pushbuttonview_GetWindowManagerType(self) \
    ((* ((char * (*)())((self)->header.pushbuttonview_methods->routines[53]))) (self))
#define pushbuttonview_GetDevice(self) \
    ((* ((long (*)())((self)->header.pushbuttonview_methods->routines[54]))) (self))
#define pushbuttonview_InitChildren(self) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[55]))) (self))
#define pushbuttonview_CanView(self,TypeName) \
    ((* ((boolean (*)())((self)->header.pushbuttonview_methods->routines[56]))) (self,TypeName))
#define pushbuttonview_LoseSelectionOwnership(self) \
    ((* ((void (*)())((self)->header.pushbuttonview_methods->routines[57]))) (self))
#define pushbuttonview_WriteSelection(self,out) \
    ((* ((long (*)())((self)->header.pushbuttonview_methods->routines[58]))) (self,out))
#define pushbuttonview_MoveToPt(self,Pt) \
 (graphic_MoveToPt(((&(self)->header.view))->drawable,(Pt)))
#define pushbuttonview_MoveTo(self,NewX,NewY) \
 (graphic_MoveTo(((&(self)->header.view))->drawable,(NewX),(NewY)))
#define pushbuttonview_Move(self,DeltaX,DeltaY) \
 (graphic_Move(((&(self)->header.view))->drawable,(DeltaX),(DeltaY)))
#define pushbuttonview_GetLogicalBounds(self,Rect) \
 (graphic_GetLogicalBounds(((&(self)->header.view))->drawable,(Rect)))
#define pushbuttonview_GetLogicalBoundsSize(self,x,y,width,height) \
 (graphic_GetLogicalBoundsSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define pushbuttonview_GetLogicalRight(self) \
 (graphic_GetLogicalRight(((&(self)->header.view))->drawable))
#define pushbuttonview_GetLogicalBottom(self) \
 (graphic_GetLogicalBottom(((&(self)->header.view))->drawable))
#define pushbuttonview_GetLogicalLeft(self) \
 (graphic_GetLogicalLeft(((&(self)->header.view))->drawable))
#define pushbuttonview_GetLogicalHeight(self) \
 (graphic_GetLogicalHeight((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetLogicalWidth(self) \
 (graphic_GetLogicalWidth((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetLogicalTop(self) \
 (graphic_GetLogicalTop((((&(self)->header.view))->drawable)))
#define pushbuttonview_SetVisualRegion(self,region) \
 (graphic_SetVisualRegion(((&(self)->header.view))->drawable, (region)))
#define pushbuttonview_GetVisualRegion(self,region) \
 (graphic_GetVisualRegion(((&(self)->header.view))->drawable, (region)))
#define pushbuttonview_GetVisualBounds(self,Rect) \
 (graphic_GetVisualBounds(((&(self)->header.view))->drawable,(Rect)))
#define pushbuttonview_GetVisualBoundsSize(self,x,y,width,height) \
 (graphic_GetVisualBoundsSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define pushbuttonview_GetVisualRight(self) \
 (graphic_GetVisualRight(((&(self)->header.view))->drawable))
#define pushbuttonview_GetVisualBottom(self) \
 (graphic_GetVisualBottom(((&(self)->header.view))->drawable))
#define pushbuttonview_GetVisualWidth(self) \
 (graphic_GetVisualWidth((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetVisualHeight(self) \
 (graphic_GetVisualHeight((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetVisualLeft(self) \
 (graphic_GetVisualLeft((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetVisualTop(self) \
 (graphic_GetVisualTop((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetEnclosedBounds(self,Rect) \
 (graphic_GetEnclosedBounds(((&(self)->header.view))->drawable, (Rect)))
#define pushbuttonview_GetEnclosedBoundsSize(self,x,y,width,height) \
 (graphic_GetEnclosedBoundsSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define pushbuttonview_GetEnclosedRight(self) \
 (graphic_GetEnclosedRight(((&(self)->header.view))->drawable))
#define pushbuttonview_GetEnclosedBottom(self) \
 (graphic_GetEnclosedBottom(((&(self)->header.view))->drawable))
#define pushbuttonview_GetEnclosedLeft(self) \
 (graphic_GetEnclosedLeft((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetEnclosedTop(self) \
 (graphic_GetEnclosedTop((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetEnclosedWidth(self) \
 (graphic_GetEnclosedWidth((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetEnclosedHeight(self) \
 (graphic_GetEnclosedHeight((((&(self)->header.view))->drawable)))
#define pushbuttonview_GetCurrentPt(self,Pt) \
 (graphic_GetCurrentPt(((&(self)->header.view))->drawable,(Pt)))
#define pushbuttonview_DrawLineToPt(self,LineEnd) \
 (graphic_DrawLineToPt(((&(self)->header.view))->drawable,(LineEnd)))
#define pushbuttonview_DrawLineTo(self,XEnd,YEnd) \
 (graphic_DrawLineTo(((&(self)->header.view))->drawable,(XEnd), (YEnd)))
#define pushbuttonview_DrawLine(self,DeltaX,DeltaY) \
 (graphic_DrawLine(((&(self)->header.view))->drawable, (DeltaX), (DeltaY)))
#define pushbuttonview_DrawString(self,Text,Operation) \
 (graphic_DrawString(((&(self)->header.view))->drawable, (Text), (Operation)))
#define pushbuttonview_DrawText(self,Text,TextLength,Operation) \
 (graphic_DrawText(((&(self)->header.view))->drawable, (Text), (TextLength), (Operation)))
#define pushbuttonview_SetSpaceShim(self,Amount) \
 (graphic_SetSpaceShim(((&(self)->header.view))->drawable,(Amount)))
#define pushbuttonview_GetSpaceShim(self) \
 (graphic_GetSpaceShim(((&(self)->header.view))->drawable))
#define pushbuttonview_SetFont(self,ChosenFont) \
 (graphic_SetFont(((&(self)->header.view))->drawable, (ChosenFont)))
#define pushbuttonview_GetFont(self) \
 (graphic_GetFont(((&(self)->header.view))->drawable))
#define pushbuttonview_DrawRect(self,Rect) \
 (graphic_DrawRect(((&(self)->header.view))->drawable,(Rect)))
#define pushbuttonview_DrawRectSize(self,x,y,width,height) \
 (graphic_DrawRectSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define pushbuttonview_DrawTrapezoid(self,topX,topY,topWidth,bottomX,bottomY,bottomWidth) \
 (graphic_DrawTrapezoid(((&(self)->header.view))->drawable,(topX),(topY),(topWidth),(bottomX),(bottomY),(bottomWidth)))
#define pushbuttonview_DrawPolygon(self,PointArray,PointCount) \
 (graphic_DrawPolygon(((&(self)->header.view))->drawable,(PointArray), (PointCount)))
#define pushbuttonview_DrawPath(self,PointArray,PointCount) \
 (graphic_DrawPath(((&(self)->header.view))->drawable,(PointArray), (PointCount)))
#define pushbuttonview_DrawOval(self,Rect) \
 (graphic_DrawOval(((&(self)->header.view))->drawable,(Rect)))
#define pushbuttonview_DrawOvalSize(self,x,y,width,height) \
 (graphic_DrawOvalSize(((&(self)->header.view))->drawable, (x), (y), (width), (height)))
#define pushbuttonview_DrawArc(self,EnclRect,StartAngle,OffsetAngle) \
 (graphic_DrawArc(((&(self)->header.view))->drawable,(EnclRect),(StartAngle),(OffsetAngle)))
#define pushbuttonview_DrawArcSize(self,x,y,width,height,StartAngle,OffsetAngle) \
 (graphic_DrawArcSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (StartAngle), (OffsetAngle)))
#define pushbuttonview_DrawRRect(self,OuterBox,InnerBox) \
 (graphic_DrawRRect(((&(self)->header.view))->drawable, (OuterBox), (InnerBox)))
#define pushbuttonview_DrawRRectSize(self,x,y,width,height,cornerWidth,cornerHeight) \
 (graphic_DrawRRectSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (cornerWidth), (cornerHeight)))
#define pushbuttonview_DrawRgn(self,Rgn) \
 (graphic_DrawRgn(((&(self)->header.view))->drawable,(Rgn)))
#define pushbuttonview_FillRect(self,Rect,Tile) \
 (graphic_FillRect(((&(self)->header.view))->drawable, (Rect),(Tile)))
#define pushbuttonview_FillRectSize(self,x,y,width,height,Tile) \
 (graphic_FillRectSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (Tile)))
#define pushbuttonview_FillTrapezoid(self,topX,topY,topWidth,bottomX,bottomY,bottomWidth,Tile) \
 (graphic_FillTrapezoid(((&(self)->header.view))->drawable, (topX), (topY), (topWidth), (bottomX), (bottomY), (bottomWidth), (Tile)))
#define pushbuttonview_FillPolygon(self,PointArray,PointCount,Tile) \
 (graphic_FillPolygon(((&(self)->header.view))->drawable, (PointArray), (PointCount), (Tile)))
#define pushbuttonview_FillOval(self,Rect,Tile) \
 (graphic_FillOval(((&(self)->header.view))->drawable, (Rect), (Tile)))
#define pushbuttonview_FillOvalSize(self,x,y,width,height,Tile) \
 (graphic_FillOvalSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (Tile)))
#define pushbuttonview_FillArc(self,EnclRect,StartAngle,OffsetAngle,Tile) \
 (graphic_FillArc(((&(self)->header.view))->drawable, (EnclRect), (StartAngle), (OffsetAngle),(Tile)))
#define pushbuttonview_FillArcSize(self,x,y,width,height,StartAngle,OffsetAngle,Tile) \
 (graphic_FillArcSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (StartAngle), (OffsetAngle), (Tile)))
#define pushbuttonview_FillRRect(self,OuterBox,InnerBox,Tile) \
 (graphic_FillRRect(((&(self)->header.view))->drawable, (OuterBox), (InnerBox), (Tile)))
#define pushbuttonview_FillRRectSize(self,x,y,width,height,cornerWidth,cornerHeight,Tile) \
 (graphic_FillRRectSize(((&(self)->header.view))->drawable, (x), (y), (width), (height), (cornerWidth), (cornerHeight), (Tile)))
#define pushbuttonview_FillRgn(self,Rgn,Tile) \
 (graphic_FillRgn(((&(self)->header.view))->drawable, (Rgn), (Tile)))
#define pushbuttonview_EraseRect(self,Rect) \
 (graphic_EraseRect(((&(self)->header.view))->drawable, (Rect)))
#define pushbuttonview_EraseRectSize(self,x,y,width,height) \
 (graphic_EraseRectSize(((&(self)->header.view))->drawable, (x), (y), (width), (height)))
#define pushbuttonview_EraseVisualRect(self) \
 (graphic_EraseVisualRect(((&(self)->header.view))->drawable))
#define pushbuttonview_BitBlt(self,SrcRect,DestView,DstOrigin,ClipRectList) \
 (graphic_BitBlt(((&(self)->header.view))->drawable,(SrcRect), (((struct view *)(DestView))->drawable), (DstOrigin), (ClipRectList)))
#define pushbuttonview_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 pushbuttonview_SetBitAtLoc(self,XPos,YPos,NewValue) \
 (graphic_SetBitAtLoc(((&(self)->header.view))->drawable, (XPos), (YPos), (NewValue)))
#define pushbuttonview_MoveLogicalOrigin(self,DeltaX,DeltaY) \
 (graphic_MoveLogicalOrigin(((&(self)->header.view))->drawable,(DeltaX), (DeltaY)))
#define pushbuttonview_SetLogicalOrigin(self,NewX,NewY) \
 (graphic_SetLogicalOrigin(((&(self)->header.view))->drawable,(NewX), (NewY)))
#define pushbuttonview_SetLogicalOriginPt(self,Pt) \
 (graphic_SetLogicalOriginPt(((&(self)->header.view))->drawable,(Pt)))
#define pushbuttonview_SetClippingRegion(self,region) \
 (graphic_SetClippingRegion(((&(self)->header.view))->drawable, (region)))
#define pushbuttonview_GetClippingRegion(self,region) \
 (graphic_GetClippingRegion(((&(self)->header.view))->drawable, (region)))
#define pushbuttonview_SetClippingRect(self,ClipRect) \
 (graphic_SetClippingRect(((&(self)->header.view))->drawable,(ClipRect)))
#define pushbuttonview_SetClippingRectSize(self,x,y,width,height) \
 (graphic_SetClippingRectSize(((&(self)->header.view))->drawable,(x),(y),(width),(height)))
#define pushbuttonview_ClearClippingRect(self) \
 (graphic_ClearClippingRect(((&(self)->header.view))->drawable))
#define pushbuttonview_GetClippingRect(self,Rect) \
 (graphic_GetClippingRect(((&(self)->header.view))->drawable,(Rect)))
#define pushbuttonview_SetLineWidth(self,NewLineWidth) \
 (graphic_SetLineWidth(((&(self)->header.view))->drawable, (NewLineWidth)))
#define pushbuttonview_GetLineWidth(self) \
 (graphic_GetLineWidth(((&(self)->header.view))->drawable))
#define pushbuttonview_SetLineDash(self,dashPattern,dashOffset,dashType) \
 (graphic_SetLineDash(((&(self)->header.view))->drawable, (dashPattern), (dashOffset), (dashType)))
#define pushbuttonview_GetLineDash(self,dashPattern,dashOffset,dashType) \
 (graphic_GetLineDash(((&(self)->header.view))->drawable, (dashPattern), (dashOffset), (dashType)))
#define pushbuttonview_SetLineCap(self,NewLineCap) \
 (graphic_SetLineCap(((&(self)->header.view))->drawable, (NewLineCap)))
#define pushbuttonview_GetLineCap(self) \
 (graphic_GetLineCap(((&(self)->header.view))->drawable))
#define pushbuttonview_SetLineJoin(self,NewLineJoin) \
 (graphic_SetLineJoin(((&(self)->header.view))->drawable, (NewLineJoin)))
#define pushbuttonview_GetLineJoin(self) \
 (graphic_GetLineJoin(((&(self)->header.view))->drawable))
#define pushbuttonview_SetTransferMode(self,NewTransferMode) \
 (graphic_SetTransferMode(((&(self)->header.view))->drawable, (NewTransferMode)))
#define pushbuttonview_GetTransferMode(self) \
 (graphic_GetTransferMode(((&(self)->header.view))->drawable))
#define pushbuttonview_FlushGraphics(self) \
 (graphic_FlushGraphics(((&(self)->header.view))->drawable))
#define pushbuttonview_WhitePattern(self) \
 (graphic_WhitePattern(((&(self)->header.view))->drawable))
#define pushbuttonview_BlackPattern(self) \
 (graphic_BlackPattern(((&(self)->header.view))->drawable))
#define pushbuttonview_GrayPattern(self,IntensityNum,IntensityDenom) \
 (graphic_GrayPattern(((&(self)->header.view))->drawable, (IntensityNum), (IntensityDenom)))
#define pushbuttonview_SetPatternOrigin(self,xpos,ypos) \
  (graphic_SetPatternOrigin(((&(self)->header.view))->drawable, (xpos), (ypos)))
#define pushbuttonview_GetPatternOrigin(self,xpos,ypos) \
  (graphic_GetPatternOrigin(((&(self)->header.view))->drawable, (xpos), (ypos)))
#define pushbuttonview_SetForegroundColor(self,colorName,red,green,blue) \
 (graphic_SetForegroundColor(((&(self)->header.view))->drawable, (colorName), (red), (green), (blue)))
#define pushbuttonview_GetForegroundColor(self,name,retred,retgreen,retblue) \
     (graphic_GetForegroundColor(((&(self)->header.view))->drawable, (name), (retred), (retgreen), (retblue)))
#define pushbuttonview_SetBackgroundColor(self,colorName,red,green,blue) \
 (graphic_SetBackgroundColor(((&(self)->header.view))->drawable, (colorName), (red),(green),(blue)))
#define pushbuttonview_GetBackgroundColor(self,name,retred,retgreen,retblue) \
 (graphic_GetBackgroundColor(((&(self)->header.view))->drawable, (name), (retred), (retgreen),(retblue)))
#define pushbuttonview_SetFGColor(self,red,green,blue) \
 (graphic_SetFGColor(((&(self)->header.view))->drawable,(red),(green),(blue)))
#define pushbuttonview_GetFGColor(self,red,green,blue) \
 (graphic_GetFGColor(((&(self)->header.view))->drawable,(red),(green),(blue)))
#define pushbuttonview_SetBGColor(self,red,green,blue) \
 (graphic_SetBGColor(((&(self)->header.view))->drawable,(red),(green),(blue)))
#define pushbuttonview_GetBGColor(self,red,green,blue) \
 (graphic_GetBGColor(((&(self)->header.view))->drawable,(red),(green),(blue)))
#define pushbuttonview_GetHorizontalResolution(self) \
 (graphic_GetHorizontalResolution(((&(self)->header.view))->drawable))
#define pushbuttonview_GetVerticalResolution(self) \
 (graphic_GetVerticalResolution(((&(self)->header.view))->drawable))
#define pushbuttonview_GetIM(self) \
 (((&(self)->header.view))->imPtr)
#define pushbuttonview_GetDrawable(self) \
 (((&(self)->header.view))->drawable)
#define pushbuttonview_GetColormap(self) \
 (graphic_GetColormap(((&(self)->header.view))->drawable))
#define pushbuttonview_SetColormap(self,cmap) \
 (graphic_SetColormap(((&(self)->header.view))->drawable, cmap))
#define pushbuttonview_GetInheritedColormap(self) \
 (graphic_GetInheritedColormap(((&(self)->header.view))->drawable))
#define pushbuttonview_SetInheritedColormap(self,cmap) \
 (graphic_SetInheritedColormap(((&(self)->header.view))->drawable, cmap))
#define pushbuttonview_ClearInheritedColormap(self) \
 (graphic_ClearInheritedColormap(((&(self)->header.view))->drawable))
#define pushbuttonview_CurrentColormap(self) \
 (graphic_CurrentColormap(((&(self)->header.view))->drawable))
#define pushbuttonview_EnclosedXToLocalX(self,xvalue) \
   ((xvalue)-graphic_GetEnclosedLeft(((&(self)->header.view))->drawable)+graphic_GetLogicalLeft(((&(self)->header.view))->drawable))
#define pushbuttonview_EnclosedYToLocalY(self,yvalue) \
    ((yvalue)-graphic_GetEnclosedTop(((&(self)->header.view))->drawable)+graphic_GetLogicalTop(((&(self)->header.view))->drawable))
#define pushbuttonview_GetDataObject(self) \
 (((&(self)->header.view))->dataobject)
#define pushbuttonview_DisplayClass(self) \
 (graphic_DisplayClass(((&(self)->header.view))->drawable ))
#define pushbuttonview_ClearColors(self) \
 (graphic_ClearColors(((&(self)->header.view))->drawable))
#define pushbuttonview_HitButton(self) \
 (pushbutton_PullTrigger((struct pushbutton *) pushbuttonview_GetDataObject((self)), atom_Intern("buttonpushed")))

#define pushbuttonview_NewFromObject(self) \
    ((* ((struct pushbuttonview * (*)())((self)->header.pushbuttonview_methods->info->procs->routines[0]))) (&pushbuttonview_classheader, (self)->header.pushbuttonview_methods->info->versionnumber))
#define pushbuttonview_New() \
    (*((struct pushbuttonview * (*)()) (pushbuttonview_CLASSPROCEDURES->routines[0])))(&pushbuttonview_classheader,pushbuttonview_VERSION)
#define pushbuttonview_Initialize(self) \
    (*((void (*)()) (pushbuttonview_CLASSPROCEDURES->routines[2])))(&pushbuttonview_classheader,self, pushbuttonview_VERSION)

#define pushbuttonview_Destroy(self) \
    ((* ((void (*)()) ((self)->header.pushbuttonview_methods->info->procs->routines[1]))) (&pushbuttonview_classheader, self))
#define pushbuttonview_Finalize(self) \
    (*((void (*)()) (pushbuttonview_CLASSPROCEDURES->routines[3])))(&pushbuttonview_classheader,self)

#define pushbuttonview_InitializeObject(self) \
    (*((boolean (*)()) (pushbuttonview_CLASSPROCEDURES->routines[5])))(&pushbuttonview_classheader,self)
#define pushbuttonview_FinalizeObject(self) \
    (*((void (*)()) (pushbuttonview_CLASSPROCEDURES->routines[6])))(&pushbuttonview_classheader,self)
#define pushbuttonview_InitializeClass() \
    (*((boolean (*)()) (pushbuttonview_CLASSPROCEDURES->routines[7])))(&pushbuttonview_classheader)


#endif /* !defined(pushbuttonview_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_pushbuttonview ) && !defined(class_StaticEntriesOnly)*/

