home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff386.lzh / XLispStat / src3.lzh / Mac / macgraphwindow.h < prev    next >
C/C++ Source or Header  |  1990-07-30  |  2KB  |  54 lines

  1. /**************************************************************************/
  2. /**                                                                      **/
  3. /**                        General Definitions                           **/
  4. /**                                                                      **/
  5. /**************************************************************************/
  6.  
  7. #ifdef MPWC
  8. # define gray qd.gray
  9. # define black qd.black
  10. # define thePort qd.thePort
  11. # define screenBits qd.screenBits
  12. # define arrow qd.arrow
  13. # define MBarHeight GetMBarHeight()
  14. # define TRUE 1
  15. # define FALSE 0
  16. # undef extend
  17. #endif MPWC
  18.  
  19. #define InitialTop (20 + MBarHeight)
  20. #define InitialLeft 10
  21. #define MOUSE_TOLERANCE 0
  22.  
  23. typedef struct {
  24.   long Object;                                /* elements of window_data */
  25.   int idleOn, frontOnly;                      /* elements of window_data */
  26.   int mouse_x, mouse_y;                       /* elements of window_data */
  27.   WindowPtr window;
  28.   int (*FreeMem)();
  29.   ColorCode backColor, drawColor;
  30.   int canvasWidth, canvasHeight;
  31.   int lineType, drawMode, lineWidth;
  32.   long RefCon;
  33.   int use_color;
  34.   int hasHscroll, hasVscroll, view_h, view_v;
  35.   int v_scroll_inc[2], h_scroll_inc[2];
  36.   ControlHandle hscroll, vscroll;
  37.   int initialized;
  38.   int symbolMode;
  39.   int cursor;
  40.   Rect clip_rect;
  41.   int clipped;
  42. } StGWWinInfo;
  43.  
  44. extern Rect scroll_bar_bounds();
  45.  
  46. #define GetWRefCon(w) (((WindowPeek)(w))->refCon)
  47.  
  48. #define BAG_RES    1800
  49. #define GLASS_RES  1801
  50. #define CAN_RES    1802
  51. #define BRUSH_RES  1803
  52. #define HAND_RES   1804
  53. #define FINGER_RES 1805
  54.