Cinder  0.9.1
Classes | Namespaces | Typedefs | Functions
CinderCocoa.h File Reference
#include "cinder/Cinder.h"
#include "cinder/Surface.h"
#include "cinder/Shape2d.h"
#include "cinder/Color.h"
#include "cinder/Buffer.h"
#include "cinder/ImageIo.h"
#include <CoreGraphics/CGGeometry.h>

Classes

class  cinder::cocoa::SafeNsString
 
class  cinder::cocoa::SafeNsData
 
class  cinder::cocoa::SafeNsAutoreleasePool
 
class  cinder::cocoa::ImageSourceCgImage
 
class  cinder::cocoa::ImageTargetCgImage
 

Namespaces

 cinder
 
 cinder::cocoa
 

Typedefs

typedef struct CGContext * CGContextRef
 
typedef struct CGColor * CGColorRef
 
typedef struct CGImage * CGImageRef
 
typedef const struct CGPath * CGPathRef
 
typedef const struct __CFURL * CFURLRef
 
typedef const struct __CFAttributedString * CFAttributedStringRef
 
typedef const struct __CFData * CFDataRef
 
typedef struct __CVBuffer * CVBufferRef
 
typedef CVBufferRef CVImageBufferRef
 
typedef CVImageBufferRef CVPixelBufferRef
 
typedef struct __CFData * CFMutableDataRef
 
typedef std::shared_ptr< struct __CFString > cinder::cocoa::SafeCfString
 
typedef std::shared_ptr< class ImageSourceCgImage > cinder::cocoa::ImageSourceCgImageRef
 
typedef std::shared_ptr< class ImageTargetCgImage > cinder::cocoa::ImageTargetCgImageRef
 

Functions

void cinder::cocoa::safeCfRelease (const CFTypeRef cfRef)
 
void cinder::cocoa::safeCocoaRelease (void *nsObject)
 
CGContextRef cinder::cocoa::createCgBitmapContext (const Surface8u &surface)
 
CGContextRef cinder::cocoa::getWindowContext ()
 
std::string cinder::cocoa::convertCfString (CFStringRef str)
 
CFStringRef cinder::cocoa::createCfString (const std::string &str)
 
SafeCfString cinder::cocoa::createSafeCfString (const std::string &str)
 
std::string cinder::cocoa::convertNsString (NSString *str)
 
CFURLRef cinder::cocoa::createCfUrl (const cinder::Url &url)
 
CFAttributedStringRef cinder::cocoa::createCfAttributedString (const std::string &str, const cinder::Font &font, const ColorA &color)
 
CFAttributedStringRef cinder::cocoa::createCfAttributedString (const std::string &str, const cinder::Font &font, const ColorA &color, bool ligate)
 
CGColorRef cinder::cocoa::createCgColor (const Color &color)
 
CGColorRef cinder::cocoa::createCgColor (const ColorA &color)
 
CGRect cinder::cocoa::createCgRect (const Area &area)
 
Area cinder::cocoa::CgRectToArea (const CGRect &rect)
 
CGSize cinder::cocoa::createCgSize (const ivec2 &s)
 
CGSize cinder::cocoa::createCgSize (const vec2 &s)
 
void cinder::cocoa::convertCgPath (CGPathRef cgPath, Shape2d *resultShape, bool flipVertical=true)
 
CFDataRef cinder::cocoa::createCfDataRef (const cinder::Buffer &buffer)
 
ImageSourceCgImageRef cinder::cocoa::createImageSource (::CGImageRef imageRef, ImageSource::Options=ImageSource::Options())
 
::CGImageRef cinder::cocoa::createCgImage (ImageSourceRef imageSource, ImageTarget::Options=ImageTarget::Options())
 
Surface8uRef cinder::cocoa::convertCVPixelBufferToSurface (CVPixelBufferRef pixelBufferRef)
 

Typedef Documentation

typedef struct CGContext* CGContextRef
typedef struct CGColor* CGColorRef
typedef struct CGImage* CGImageRef
typedef const struct CGPath* CGPathRef
typedef const struct __CFURL* CFURLRef
typedef const struct __CFAttributedString* CFAttributedStringRef
typedef const struct __CFData* CFDataRef
typedef struct __CVBuffer* CVBufferRef
typedef struct __CFData* CFMutableDataRef