#ifndef STDEF_H
#define STDEF_H

/* iview.c */
extern int StGrNumVariables();

/* iviewinternal.c */
extern int StGrDirty();
extern void StGrSetDirty(),
  StGrSetContentRect(),
  StGrGetContentRect(),
  StGrSetContentOrigin(),
  StGrGetContentOrigin(),
  StGrSetContentVariables(),
  StGrGetContentVariables(),
  StGrSetClickRange(),
  StGrGetClickRange();
extern IViewDATA StGrData();
extern void StGrSetMargin(),
  StGrGetMargin();

/* menus.c */
extern int StMObAllocated();
extern void StMObAllocate(),
  StMObDispose();

/* stmem.c */
extern void StPerrr(),
  *StCalloc(),
  StFree();
extern StReallocData StRCalloc();
extern void StRFree();
extern StReallocData StRRealloc();
extern long StRSize();
extern void *StRPtr(),
  StRLock(),
  StRUnlock();

/* xsiviewwindow.c */
extern StGWWinInfo *StGWObWinInfo(LVAL);

/* macdialogs1.c */
extern void DialogAllocate(),
  DialogRemove(),
  DialogDefaultButton();

/* macdialogs2.c */
extern LVAL DialogGetModelItem();
extern void DialogButtonGetDefaultSize(),
  DialogToggleGetDefaultSize();
extern LVAL DialogToggleItemValue();
extern void DIalogTextGetDefaultSize();
extern LVAL DialogTextItemText();
extern void DialogChoiceGetDefaultSize();
extern LVAL DialogChoiceItemValue();
extern void DialogScrollGetDefaultSize();
extern LVAL DialogScrollItemValue(),
  DialogScrollItemMax(),
  DialogScrollItemMin();
extern void DialogListGetDefaultSize(),
  DialogListItemSetText();
extern LVAL DialogListItemSelection();

/* maciviewwindow.c */
extern void StInitGraphics(),
  StGWWinInfoSize(),
  StGWInitWinInfo(),
  StGWSetClipRect();
extern int StGWGetClipRect();
extern void StGWSetCursRefCon();
extern long StGWGetCursRefCon();
extern int StGWMakeCursor();
extern void StGWFreeCursor(),
  StGWSetCursor();
extern int StGWCursor();

/* maciviewwindow2.c */
extern void StGWSetFreeMem();
extern int StGWIdleOn();
extern void StGWSetIdleOn(),
  StGWShowWindow(),
  StGWRemove(),
  StGWWhileButtonDown(),
  StWSetLocation(),
  StWGetLocation(),
  StGWSetSize(),
  StWSetSize(),
  StWGetSize();
extern int StGWCanvasWidth(),
  StGWCanvasHeight(),
  StGWLineType(),
  StGWDrawMode();
extern ColorCode StGWDrawColor(),
  StGWBackColor();
extern int StGWUseColor();
extern void StGWGetLineWidth(),
  StGWSetLineType(),
  StGWSetDrawMode(),
  StGWSetDrawColor(),
  StGWSetBackColor(),
  StGWSetUseColor(),
  StGWSetLineWidth(),
  StGWReverseColors(),
  StGWGetViewRect(),
  StGWSetHasHscroll(),
  StGWSetHasVscroll();
extern int StGWHasHscroll(),
  StGWHasVscroll();
extern void StGWSetScroll(),
  StGWGetScroll(),
  StGWSetHscrollIncs(),
  StGWGetHscrollIncs(),
  StGWSetVscrollIncs(),
  StGWGetVscrollIncs(),
  StGWSetRefCon();
extern long StGWGetRefCon();
extern void StGWSetObject();
extern long StGWGetObject();
extern void StGWInitDraw(),
  StGWMakeColor(),
  StGWFreeColor(),
  StGWSetColRefCon();
extern long StGWGetColRefCon();

/* maciviewwindow3.c */
extern void StGWDrawLine(),
  StGWDrawPoint(),
  StGWEraseRect(),
  StGWFrameRect(),
  StGWPaintRect(),
  StGWEraseOval(),
  StGWFrameOval(),
  StGWPaintOval(),
  StGWEraseArc(),
  StGWFrameArc(),
  StGWPaintArc(),
  StGWErasePoly(),
  StGWFramePoly(),
  StGWPaintPoly();
extern int StGWTextAscent(),
  StGWTextDescent(),
  StGWTextWidth();
extern void StGWDrawString(),
  StGWDrawText(),
  StGWDrawStringUp(),
  StGWDrawTextUp(),
  StGWSetSymRefCon();
extern long StGWGetSymRefCon();
extern void StGWGetSymbolSize(),
  StGWDrawSymbol(),
  StGWReplaceSymbol(),
  StGWDrawBitmap(),
  StGWStartBuffering(),
  StGWBufferToScreen(),
  StGWCopyToClip(),
  StGWDumpImage(),
  StGWResetBuffer();

/* macmenus.c */
extern void StMObAllocate(),
  StMObDisposeMach(),
  StMObAppendItems(),
  StMObDeleteItems(),
  StMObInstall().
  StMObRemove(),
  StMObEnable(),
  StMObPopUp(),
  StMObSetItemProp();

/* macwindows.c */
extern void StShowWindow(),
  StHideWindow(),
  StWSetTitle(),
  StGetScreenSize();
extern int StScreenHasColor(),
  StHasWindows(),
  StFlushGraphics();

#endif STDEF_H
