home *** CD-ROM | disk | FTP | other *** search
/ Mega CD-ROM 1 / megacd_rom_1.zip / megacd_rom_1 / IRIT / IRITS.ZIP / WINDOWSG.H < prev    next >
C/C++ Source or Header  |  1990-05-05  |  2KB  |  48 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * General, visible to others, definitions for the windows module.         *
  7. *****************************************************************************/
  8.  
  9. #ifndef    WINDOWS_GH                     /* Define only once */
  10. #define    WINDOWS_GH
  11.  
  12. #define NO_COLOR    999            /* Used by WndwInputWindowPutStr */
  13.  
  14. /* Generic window structure - the equal part of the window structures:       */
  15. /*   Following definition must confirm with the full window definitons as    */
  16. /* defined in WindowsL.H header files!                         */
  17. typedef struct GenerWindowStruct {       /* The internal window structures */
  18.     int WindowName;                /* Name of window (unique index) */
  19.     RealType MinX, MaxX, MinY, MaxY;       /* Note they differ only in the   */
  20.     int FrameColor, LineColor, TextColor;    /* last component - Lines.         */
  21.     int NumOfLines;
  22.     RealType FirstLineX, FirstLineY, DiffYLine;
  23. } GenerWindowStruct;
  24.  
  25. /* Prototypes of the windows module functions: */
  26. #ifdef __MSDOS__
  27. void WndwClaimStatus(void);
  28. void WndwReclaimStatus(void);
  29. void WndwStatusWindowDraw(void);
  30. void WndwStatusWindowUpdate(void);
  31. #endif /* __MSDOS__ */
  32.  
  33. void WndwPause(RealType *R);
  34. char WndwInputWindowPause(double X, double Y);
  35. void WndwLogPrint(RealType *Set);
  36. void WndwInputWindowPutStrFS(char *str, int Color, int Reset);
  37. void WndwInputWindowPutStr(char *str, int Color);
  38. void WndwInputWindowGetStr(char *str, int Length);
  39. void WndwSetUpAllWndws(void);
  40. void WndwDrawAllWndwFrames(void);
  41. void WndwViewGeomObject(ObjectStruct *PObj, RealType *ClearWindow);
  42. void WndwClearWindow(GenerWindowStruct *Window);
  43.  
  44. extern struct GenerWindowStruct *GlblInputWindow, *GlblViewWindow,
  45.                             *GlblStatusWindow;
  46.  
  47. #endif    /* WINDOWS_GH */
  48.