Defines | |
| #define | __CPLAT_II__ 0x00020000 |
| #define | CP_FOUR_CHAR_CODE(x) (x) |
| #define | CP_FOUR_CHAR_CODE(x) (((unsigned long) ((x) & 0x000000FF)) << 24) | (((unsigned long) ((x) & 0x0000FF00)) << 8) | (((unsigned long) ((x) & 0x00FF0000)) >> 8) | (((unsigned long) ((x) & 0xFF000000)) >> 24) |
| #define | CP_FOUR_CHAR_CODE(x) (((unsigned long) ((x) & 0x000000FF)) << 24) | (((unsigned long) ((x) & 0x0000FF00)) << 8) | (((unsigned long) ((x) & 0x00FF0000)) >> 8) | (((unsigned long) ((x) & 0xFF000000)) >> 24) |
| #define | CP_MakeSInt32(x, y) ((SInt32)(((SInt32)(x)) | ((SInt32)((SInt32)(y))) << 16)) |
| #define | CP_LoWord(x) ((SInt32)(x)) |
| #define | CP_HiWord(x) ((SInt32)(((SInt32)(x) >> 16) & 0xFFFF)) |
| #define | kCP_Clipboard_TypeText CP_FOUR_CHAR_CODE('TEXT') |
| #define | kCP_Clipboard_TypeUnicodeText CP_FOUR_CHAR_CODE('utxt') |
| #define | kCP_Clipboard_TypePicture CP_FOUR_CHAR_CODE('PICT') |
| #define | kCP_Clipboard_TypeText CF_TEXT |
| #define | kCP_Clipboard_TypeUnicodeText CP_FOUR_CHAR_CODE('utxt') |
| #define | kCP_Clipboard_TypePicture CF_BMP |
| #define | kCP_Clipboard_TypeText 0x54455854 |
| #define | kCP_Clipboard_TypeUnicodeText 0x75747874 |
| #define | kCP_Clipboard_TypePicture 0x50494354 |
| #define | NULL 0 |
| #define | CP_MIN(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | CP_MAX(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | topLeft(inRect) (((Point *) &(inRect))[0]) |
| #define | botRight(inRect) (((Point *) &(inRect))[1]) |
| #define | CP_PI 3.141592653589793116 |
| #define | CP_CR '\r' |
| #define | CP_LF '\n' |
| #define | CP_CRLF "\r\n" |
| #define | CP_TAB '\t' |
| #define | CP_USING_STD_NAMESPACE |
| #define | CP_STD |
| #define | CP_T(x) x |
Typedefs | |
| typedef unsigned char | UInt8 |
| typedef signed char | SInt8 |
| typedef unsigned short | UInt16 |
| typedef signed short | SInt16 |
| typedef unsigned long | UInt32 |
| typedef signed long | SInt32 |
| typedef signed long long | SInt64 |
| typedef unsigned long long | UInt64 |
| typedef SInt16 | OSErr |
| typedef wchar_t | CPUniChar |
| typedef UInt32 | CPUniCharCount |
| typedef SInt32 | CP_CommandNo |
| typedef Handle | OSMenuBar |
| typedef MenuRef | OSMenu |
| typedef WindowRef | OSWindow |
| typedef GrafPtr | OSGraphicsPort |
| typedef Handle | OSHandle |
| typedef RgnHandle | OSRegion |
| typedef ControlRef | OSControl |
| typedef Ptr | OSPtr |
| typedef SInt16 | OSFileRef |
| typedef GWorldPtr | OSImageList |
| typedef CIconHandle | OSColorIcon |
| typedef PicHandle | OSPicture |
| typedef IconRef | OSIconRef |
| typedef Handle | OSIconSuite |
| typedef FSVolumeRefNum | OSVolume |
| typedef WindowClass | OSWindowClass |
| typedef HPEN | OSPen |
| typedef HBRUSH | OSBrush |
Functions | |
| static double | DegreesToRadians (double inDegrees) |
| static double | RadiansToDegrees (double inRadians) |
Variables | |
| const char | MAX_CHAR_8 = 127 |
| const char | MIN_CHAR_8 = -128 |
| const unsigned char | MAX_UCHAR_8 = 255 |
| const SInt16 | MAX_SINT_16 = 32767 |
| const SInt16 | MIN_SINT_16 = -32768 |
| const SInt32 | MAX_SINT_32 = 0x7FFFFFFF |
| const SInt32 | MIN_SINT_32 = 0x80000000 |
| const UInt32 | MAX_UINT_32 = 0xFFFFFFFF |
| const SInt16 | kCP_BadFileRefNum = -1 |
| const SInt32 | kCP_GTK_EVENT = CP_FOUR_CHAR_CODE('GTKE') |
| const SInt16 | kCP_PStyleString_MaxLength = 255 |
| const SInt32 | kCP_InvalidIndex = -1 |
| const SInt16 | kCP_NoImageIndex = -1 |
| const SInt32 | kCP_WINDOW_EVENT = CP_FOUR_CHAR_CODE('WINE') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.0