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 >
Wrap
Text File
|
1996-06-21
|
952b
|
25 lines
//----------------------------------------------------------------------
//
// Displays
//
//----------------------------------------------------------------------
#include <Displays.h>
#define kFudgeFactor 12 // fudge factor for boundary around window
#define kTitleBarHeight 22 // title bar height
#define TopLeft( r ) ( *(Point *) &(r).top )
#define BotRight( r ) ( *(Point *) &(r).bottom )
OSErr InstallAEDMNotification(void);
pascal OSErr DoAEDisplayUpdate(AppleEvent *event,AppleEvent *reply,long refCon);
OSErr HandleNotification(AppleEvent *event);
//OSErr HandleDeviceChange(DisplayIDType displayID, Rect *newRect);
OSErr HandleDeviceChange(GDHandle gd, Rect *newRect);
Boolean OutOfBoundsRect(GDHandle gd, WindowRef window, Rect screenRect);
void MoveInbounds(WindowRef window, GDHandle gd, Rect screenRect);
GDHandle GetGreatestDevice(WindowRef window);
void GetWindowRect(WindowRef window, Rect *windRect);