mirror of
https://github.com/nickshanks/ResKnife.git
synced 2025-01-03 04:31:27 +00:00
17 lines
848 B
C
17 lines
848 B
C
// abbreviations
|
|
#define null NULL
|
|
#define qdb qd.screenBits.bounds
|
|
|
|
// Easier API call names
|
|
#define GetWindowRefCon( window ) (long) GetWRefCon( window )
|
|
#define SetWindowRefCon( window, refcon ) SetWRefCon( window, refcon )
|
|
#define GetWindowTitle( window, string ) GetWTitle( window, string )
|
|
#define SetWindowTitle( window, name ) SetWTitle( window, name )
|
|
#define InvalidateRect( bounds ) InvalRect( bounds )
|
|
#define InvalidateWindowRect( window, bounds ) (OSStatus) InvalWindowRect( window, bounds )
|
|
#define RectToRegion( region, rect ) RectRgn( region, rect )
|
|
#define NewPoint() (Point) { 0, 0 }
|
|
#define SetPoint( point, x, y ) SetPt( point, x, y )
|
|
#define HilightColour( colour ) HiliteColor( colour )
|
|
#define GetPortHilightColour( window, colour ) GetPortHiliteColor( window, colour )
|