[NOHEADER] | |
template<class V> CFStringRef | CopyCanonicalClassID () |
These two functions are inline duplicates of the members of TViewNoCompositingCompatible. | |
template<class V> CFStringRef | CopyClassIDForBundleID (CFStringRef bundleID) |
Functions | |
void | HIRectToQDRect (const HIRect *inHIRect, Rect *outQDRect) |
TRect | RectForCGImage (CGImageRef theImage) |
float | DegreesToRadians (float deg) |
Simple utility to calculate radians from degrees. | |
void | ConvertWindowPointToGlobal (WindowRef theWindow, Point &thePoint) |
Converts a point from local window coordinates to global coordinates. | |
void | ConvertGlobalToWindowPoint (WindowRef theWindow, Point &thePoint) |
Converts a point from global to local window coordinates. | |
void | SetFontFromFontStyleRec (CGContextRef context, ControlFontStyleRec &rec, ThemeFontID baseThemeFont, ThemeTextColor themeColor) |
Sets the font face, size, style, and color based on the fields and flags of the rec argument. | |
void * | malloc_aligned (UInt32 numBytes, void **realPointer) |
Allocates a block of memory that is 16-byte aligned and zeroed. |
|
Converts a point from global to local window coordinates.
This would be easy enough to do by simply calling |
|
Converts a point from local window coordinates to global coordinates.
This would be easy enough to do by simply calling |
|
These two functions are inline duplicates of the members of TViewNoCompositingCompatible. They are here because they are extremely useful and pulling them out of the class makes them a little easier to use (much less to type). CopyCanonicalClassID() will use the bundle stored as a static member of the class that you pass as the template argument. |
|
|
|
Simple utility to calculate radians from degrees.
|
|
|
|
Allocates a block of memory that is 16-byte aligned and zeroed.
This makes it possible to use Altivec routines on the data in the buffer. The buffer is allocated with
|
|
|
|
Sets the font face, size, style, and color based on the fields and flags of the This allows you to call the QuickDraw Text routines to measure text since there is no way to measure text in CoreGraphics (unbelievable!). Well, OK. You can draw a string invisibly and subtract, but it's not the same. For one thing, you have to have a context to draw into. You can't pre-compute sizes this way. |