home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks96 / FontMancer.sit / FontMancer / Common / Display.h < prev    next >
Text File  |  1996-06-21  |  952b  |  25 lines

  1. //----------------------------------------------------------------------
  2. //
  3. //    Displays
  4. //
  5. //----------------------------------------------------------------------
  6.  
  7. #include <Displays.h>
  8.  
  9.  
  10. #define kFudgeFactor        12        // fudge factor for boundary around window
  11. #define kTitleBarHeight        22        // title bar height
  12.  
  13. #define TopLeft( r )        ( *(Point *) &(r).top )
  14. #define BotRight( r )        ( *(Point *) &(r).bottom )
  15.  
  16. OSErr             InstallAEDMNotification(void);
  17. pascal OSErr     DoAEDisplayUpdate(AppleEvent *event,AppleEvent *reply,long refCon);
  18. OSErr             HandleNotification(AppleEvent *event);
  19. //OSErr             HandleDeviceChange(DisplayIDType displayID, Rect *newRect);
  20. OSErr            HandleDeviceChange(GDHandle gd, Rect *newRect);
  21. Boolean         OutOfBoundsRect(GDHandle gd, WindowRef window, Rect screenRect);
  22. void             MoveInbounds(WindowRef window, GDHandle gd, Rect screenRect);
  23. GDHandle         GetGreatestDevice(WindowRef window);
  24. void             GetWindowRect(WindowRef window, Rect *windRect);
  25.