home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / CALib & You… / Source / CALib / Implementation / ProxyPart / PartUtils.h < prev   
Encoding:
C/C++ Source or Header  |  1995-12-07  |  872 b   |  51 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ThePartUtils.h
  3.  
  4.     Contains:    Part utility functions & classes
  5.  
  6.     Written by:    PartMaker 
  7.  
  8.     Change History (most recent first):
  9.  
  10.          <3>     2/13/95    SJF        Interim checkin to update project database
  11.          <0>    11/16/94    SJF        first written
  12.          
  13.     To Do:
  14. */
  15.  
  16.  
  17. #ifndef _PARTUTILS_
  18. #define _PARTUTILS_
  19.  
  20. #ifndef __EVENTS__
  21. #include <Events.h>
  22. #endif
  23.  
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27.  
  28. class ODSession;
  29. class ODWindow;
  30. struct ODPoint;
  31.  
  32. extern ODSession* gSession;
  33.  
  34.  
  35. #define TopLeft(aRect)    (* (Point *) &(aRect).top)
  36. #define BotRight(aRect)    (* (Point *) &(aRect).bottom)
  37.  
  38. #define Width(aRect)    ((aRect).right-(aRect).left)
  39. #define Height(aRect)    ((aRect).bottom-(aRect).top)
  40.  
  41.  
  42. pascal Boolean        MyDialogFilter(DialogPtr, EventRecord*, short* itemHit);
  43.  
  44.  
  45. void                GetWindowPoint(ODWindow *w, Environment *ev,
  46.                                     Point globalPoint,
  47.                                     ODPoint *localPoint);
  48.  
  49. #endif
  50.  
  51.