00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "TRect.h"
00011
00012 #if !defined(_AUGUIUtilities_h_)
00013 #define _AUGUIUtilities_h_
00014
00015 namespace AUGUI {
00016
00017
00018 void HIRectToQDRect(const HIRect* inHIRect, Rect* outQDRect);
00019 TRect RectForCGImage(CGImageRef theImage);
00020
00024 inline float DegreesToRadians(float deg) { return (2.0 * M_PI * deg / 360.0); }
00025
00027 void ConvertWindowPointToGlobal(WindowRef theWindow, Point& thePoint);
00028
00030 void ConvertGlobalToWindowPoint(WindowRef theWindow, Point& thePoint);
00031
00038 void SetFontFromFontStyleRec(CGContextRef context, ControlFontStyleRec& rec, ThemeFontID baseThemeFont, ThemeTextColor themeColor);
00039
00048 void* malloc_aligned(UInt32 numBytes, void** realPointer);
00049
00050 }
00051
00052 #endif // _AUGUIUtilties_h_