Toolbox Utilities
Strings
NewString Allocate heap-storage for a string; obtain handle
GetString Get handle of a string from a resource
GetIndString Get handle to a string from an indexed resource
SetString Copy string data to storage on the heap
Search / Pack
Munger Search and replace text (or any byte array)
PackBits Perform RLL byte compression on arbitrary data
UnpackBits Uncompress data stored via PackBits
Bits / Logical Operations
BitTst Determine state of a bit in a bit string
BitSet Set a specified bit in a bit string to a 1
BitClr Clear a specified bit in a bit string to a 0
BitAnd Obtain bitwise AND of two 32-bit longs
BitOr Obtain bitwise OR of two 32-bit longs
BitNot Obtain bitwise NOT ( complement) of two longs
BitShift Obtain result of left- or right-shifted 32-bit value
BitXor Obtain bitwise XOR of two 32-bit longs
Longs
HiWord Obtain most-significant 16 bits of 32-bit operand
LongMul Obtain 64-bit product of two 32-bit longs
LoWord Obtain least-significant 16 bits of 32-bit operand
Graphics
GetCursor Get a handle to a specified 'CURS' resource
ShieldCursor Hide cursor while moving or while in a rectangle
GetIcon Obtain handle to a specified 'ICON' resource
PlotIcon Display a 32x32-bit (128-byte) icon image
PlotCIconHandle Display an icon image with System 7 icon resource types
PlotIconID Display an icon image with System 7 icon resource types
GetPattern Get handle to a specified 'PAT ' resource
GetIndPattern Get Pattern from an indexed 'PAT#' resource
GetPicture Get a handle to a specified 'PICT' resource
ScreenRes Obtain screen resolution in pixels-per-inch
Miscellaneous
AngleFromSlope Calculate angle given slope
SlopeFromAngle Calculate slope given an angle
DeltaPoint Calculate distance between two points
Fixed-Point Math
FixATan2 Extract arctangent of the quotient of two 32-bit values
FixDiv Divide one 32-bit quantity by another
FixMul Get fixed-point product of two integers
FixRatio Get fixed-point quotient of two integers
FixRound Get nearest integer to a fixed-point value
FracCos Extract cosine of a Fixed, returning a Fract
FracDiv Divide one 32-bit quantity by another
FracMul Multiply Fract by Fract, long, or Fixed
FracSin Extract sine of a Fixed, returning a Fract
FracSqrt Extract square root of a Fract, returning a Fract
Fixed-Point Con versions
Fix2Frac Convert a Fixed to a Fract data type
Fix2Long Convert a Fixed to a long data type
Fix2X Convert a Fixed to an Extended data type
Frac2Fix Convert a Fract to a Fixed data type
Frac2X Convert a Fract to an Extended data type
Long2Fix Convert a long to a Fixed data type
X2Fix Convert an Extended to a Fixed data type
X2Frac Convert an Extended to a Fract data type