8 #include "../../vstguibase.h" 12 #include "../../crect.h" 13 #include "../../cpoint.h" 16 #include <CoreFoundation/CoreFoundation.h> 17 #include <CoreGraphics/CoreGraphics.h> 19 #include <ApplicationServices/ApplicationServices.h> 26 extern void* gBundleRef;
27 inline CFBundleRef getBundleRef () {
return (CFBundleRef)gBundleRef; }
28 extern CGColorSpaceRef GetCGColorSpace ();
29 extern CGColorRef getCGColor (
const CColor& color);
32 inline CRect CRectFromCGRect (
const CGRect& r)
34 return CRect (CPoint (r.origin.x, r.origin.y), CPoint (r.size.width, r.size.height));
38 inline CGRect CGRectFromCRect (
const CRect& r)
40 return CGRectMake (static_cast<CGFloat> (r.left), static_cast<CGFloat> (r.top), static_cast<CGFloat> (r.getWidth ()), static_cast<CGFloat> (r.getHeight ()));
44 inline CPoint CPointFromCGPoint (
const CGPoint& p)
46 return CPoint (p.x, p.y);
50 inline CGPoint CGPointFromCPoint (
const CPoint& p)
52 return CGPointMake (static_cast<CGFloat> (p.x), static_cast<CGFloat> (p.y));
56 inline CGSize CGSizeFromCPoint (
const CPoint& p)
58 return CGSizeMake (static_cast<CGFloat> (p.x), static_cast<CGFloat> (p.y));
64 #endif // __macglobals__ Definition: customcontrols.cpp:8