shithub: candycrisis

ref: d1e75dc244dde2e08dc4bc7f4d448863c83f37cf
dir: /MTypes.h/

View raw version
/////
///  MTypes.h
///
///  Generic replacements for very basic Mac types.
///
///  John Stiles, 2002/10/14
///


#ifndef __MTYPES__
#define __MTYPES__


typedef signed char MBoolean;


struct MRGBColor
{
	unsigned short red;
	unsigned short green;
	unsigned short blue;
};


struct MRect
{
	short top;
	short left;
	short bottom;
	short right;	
};


struct MPoint
{
	short v;
	short h;
};


void UnionMRect( const MRect* a, const MRect* b, MRect* u );
void OffsetMRect( MRect* r, int x, int y );
unsigned char MPointInMRect( MPoint p, MRect* r );


#endif