home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / IRIT / IRITS.ZIP / WINDOWSL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-05  |  3.3 KB  |  91 lines

  1. /*****************************************************************************
  2. *   "Irit" - the 3d polygonal solid modeller.                     *
  3. *                                         *
  4. * Written by:  Gershon Elber                Ver 0.2, Mar. 1990   *
  5. ******************************************************************************
  6. * General, local to module, definitions for the windows module.             *
  7. *****************************************************************************/
  8.  
  9. #ifndef    WINDOWS_LH                    /* Define only once. */
  10. #define    WINDOWS_LH
  11.  
  12. #define IW_MIN_X    -0.97                /* The INPUT window. */
  13. #define IW_MAX_X    2.0
  14. #define IW_MIN_Y    -0.98
  15. #define    IW_MAX_Y    -0.5
  16. #define IW_FRAME_COLOR    LIGHTCYAN
  17. #define IW_LINE_COLOR    GREEN
  18. #define IW_TEXT_COLOR    GREEN
  19. #define IW_NUM_OF_LINES    6
  20. #define IW_FIRST_LINE_X    IW_MIN_X+0.02
  21. #define IW_FIRST_LINE_Y    IW_MAX_Y-0.02
  22. #define IW_DIFF_Y_LINE    0.065
  23.  
  24.  
  25. #define SW_MIN_X    1.2                   /* The STATUS window. */
  26. #define SW_MAX_X    2.0
  27. #define SW_MIN_Y    -0.4
  28. #define    SW_MAX_Y    0.97
  29. #define SW_FRACE_COLOR    LIGHTRED
  30. #define SW_LINE_COLOR    LIGHTMAGENTA
  31. #define SW_TEXT_COLOR    LIGHTMAGENTA
  32. #define SW_NUM_OF_LINES    8
  33. #define SW_FIRST_LINE_X    SW_MIN_X+0.05
  34. #define SW_FIRST_LINE_Y    SW_MAX_Y-0.06
  35. #define SW_DIFF_Y_LINE    0.09
  36. #define CORE_SIZE_X    0.2
  37. #define CORE_SIZE_Y    0.05
  38.  
  39. #define VW_MIN_X    -0.97                 /* The VIEW window. */
  40. #define VW_MAX_X    1.1
  41. #define VW_MIN_Y    -0.4
  42. #define    VW_MAX_Y    0.97
  43. #define VW_FRACE_COLOR    LIGHTGREEN
  44. #define VW_LINE_COLOR    GREEN
  45. #define VW_TEXT_COLOR    GREEN
  46. #define VW_NUM_OF_LINES    1
  47. #define VW_FIRST_LINE_X    VW_MIN_X+0.05
  48. #define VW_FIRST_LINE_Y    VW_MIN_Y+0.05
  49. #define VW_DIFF_Y_LINE    0.08
  50.  
  51. /*   Following definitions must confirm with the generic window defined in   */
  52. /* WindowsG.H header files!                             */
  53.  
  54. typedef struct InputWindowStruct {      /* The internal window structures. */
  55.     int WindowName;               /* Name of window (unique index). */
  56.     RealType MinX, MaxX, MinY, MaxY;         /* Note they differ only in the */
  57.     int FrameColor, LineColor, TextColor;      /* last component - Lines. */
  58.     int NumOfLines;
  59.     RealType FirstLineX, FirstLineY, DiffYLine;
  60.     char Lines[IW_NUM_OF_LINES][LINE_LEN];
  61. } InputWindowStruct;
  62.  
  63. typedef struct StatusWindowStruct {      /* The internal window structures. */
  64.     int WindowName;               /* Name of window (unique index). */
  65.     RealType MinX, MaxX, MinY, MaxY;         /* Note they differ only in the */
  66.     int FrameColor, LineColor, TextColor;      /* last component - Lines. */
  67.     int NumOfLines;
  68.     RealType FirstLineX, FirstLineY, DiffYLine;
  69.     char Lines[SW_NUM_OF_LINES][LINE_LEN_SHORT];
  70. } StatusWindowStruct;
  71.  
  72. typedef struct ViewWindowStruct {      /* The internal window structures. */
  73.     int WindowName;               /* Name of window (unique index). */
  74.     RealType MinX, MaxX, MinY, MaxY;         /* Note they differ only in the */
  75.     int FrameColor, LineColor, TextColor;      /* last component - Lines. */
  76.     int NumOfLines;
  77.     RealType FirstLineX, FirstLineY, DiffYLine;
  78.     char Lines[VW_NUM_OF_LINES][LINE_LEN];
  79. } ViewWindowStruct;
  80.  
  81. #define    FRAME_X_WIDTH 0.03              /* Width of the window frames. */
  82. #define FRAME_Y_WIDTH 0.03
  83.  
  84. #define VIEW_WNDW_MAX_OBJ_NAMES    4      /* Number of names in view window. */
  85.  
  86. /* The finally the prototypes of the local functions: */
  87.  
  88. void WndwDrawAllWndwFrames(void);
  89.  
  90. #endif    /* WINDOWS_LH */
  91.