have CGImage Support in all OSX builds

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-03-01 05:31:37 +00:00
parent 7890a36c9c
commit 30e77b5c9f
5 changed files with 78 additions and 68 deletions

View File

@@ -196,7 +196,7 @@ public:
// returns the 'native' implementation, a GWorldPtr for the content and one for the mask
WXHBITMAP GetHBITMAP( WXHBITMAP * mask = NULL ) const;
#if wxMAC_USE_CORE_GRAPHICS
#ifdef __WXMAC_OSX__
// returns a CGImageRef which must released after usage with CGImageRelease
WXCGIMAGEREF CGImageCreate() const ;
#endif

View File

@@ -637,10 +637,14 @@ private:
wxBrush m_brush ;
} ;
#endif // wxMAC_USE_CORE_GRAPHICS
#ifdef __WXMAC_OSX__
CGColorSpaceRef wxMacGetGenericRGBColorSpace(void) ;
void wxMacMemoryBufferReleaseProc(void *info, const void *data, size_t size) ;
#endif // wxMAC_USE_CORE_GRAPHICS
#endif
class WXDLLEXPORT wxBitmapRefData: public wxGDIRefData
{
@@ -678,7 +682,7 @@ public:
#endif // wxUSE_PALETTE
wxMask * m_bitmapMask; // Optional mask
#if wxMAC_USE_CORE_GRAPHICS
#ifdef __WXMAC_OSX__
CGImageRef CGImageCreate() const ;
#endif
@@ -710,7 +714,7 @@ private :
wxMemoryBuffer m_memBuf ;
int m_rawAccessCount ;
bool m_ok;
#if wxMAC_USE_CORE_GRAPHICS
#ifdef __WXMAC_OSX__
mutable CGImageRef m_cgImageRef ;
#endif
IconRef m_iconRef ;