Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

AUGUIUtilities.h

Go to the documentation of this file.
00001 /* 00002 * AUGUIUtilities.h 00003 * Ritmo 00004 * 00005 * Created by Chris Reed on Tue Feb 04 2003. 00006 * Copyright (c) 2003 Chris Reed. All rights reserved. 00007 * 00008 */ 00009 00010 #include "TRect.h" 00011 00012 #if !defined(_AUGUIUtilities_h_) 00013 #define _AUGUIUtilities_h_ 00014 00015 namespace AUGUI { 00016 00017 // Rect utilities 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_





Generated on Sun May 23 19:32:00 2004 for AUGUI Framework by doxygen1.3.7

hosted on SourceForge.net Logo