32 template <
class RectType>
33 Rectangle<int> convertToRectInt (RectType
r)
noexcept
35 return { (
int)
r.origin.x,
38 (
int)
r.size.height };
41 template <
class RectType>
42 Rectangle<float> convertToRectFloat (RectType
r)
noexcept
44 return { (float)
r.origin.x,
47 (
float)
r.size.height };
50 template <
class RectType>
51 CGRect convertToCGRect (RectType
r)
noexcept
53 return CGRectMake ((CGFloat)
r.getX(), (CGFloat)
r.getY(), (CGFloat)
r.getWidth(), (CGFloat)
r.getHeight());
56 template <
class Po
intType>
57 Point<float> convertToPointFloat (PointType
p)
noexcept
59 return { (float)
p.x, (
float)
p.y };
62 template <
typename Po
intType>
63 CGPoint convertToCGPoint (PointType
p)
noexcept
65 return CGPointMake ((CGFloat)
p.x, (CGFloat)
p.y);
68 template <
class Po
intType>
69 Point<int> roundToIntPoint (PointType
p)
noexcept
75 inline CGFloat getMainScreenHeight()
noexcept
77 if ([[NSScreen screens]
count] == 0)
80 return [[[NSScreen screens] objectAtIndex: 0] frame].size.height;
83 inline NSRect flippedScreenRect (NSRect
r)
noexcept
85 r.origin.y = getMainScreenHeight() - (
r.origin.y +
r.size.height);
89 inline NSPoint flippedScreenPoint (NSPoint
p)
noexcept
91 p.y = getMainScreenHeight() -
p.y;
101 Image juce_createImageFromUIImage (UIImage*);
105 NSImage* imageToNSImage (
const ScaledImage& image);
#define noexcept
Definition DistrhoDefines.h:72
Definition juce_Image.h:58
Definition juce_ScaledImage.h:45
Definition carla_juce.cpp:31
CGImageRef juce_createCoreGraphicsImage(const Image &, CGColorSpaceRef)
CGContextRef juce_getImageContext(const Image &)
int roundToInt(const FloatType value) noexcept
Definition juce_MathsFunctions.h:465
uch * p
Definition crypt.c:594
int r
Definition crypt.c:458
typedef int(UZ_EXP MsgFn)()
_WDL_CSTRING_PREFIX void INT_PTR count
Definition wdlcstring.h:263