Rename wxBitmap::GetImage() to OSXGetImage()
Make it more clear that this function is specific to Mac ports.
This commit is contained in:
@@ -205,16 +205,16 @@ public:
|
||||
CGImageRef CreateCGImage() const ;
|
||||
|
||||
// returns nil for invalid bitmap
|
||||
WXImage GetImage() const;
|
||||
WXImage OSXGetImage() const;
|
||||
#if wxOSX_USE_COCOA
|
||||
// returns an autoreleased version of the image
|
||||
WX_NSImage GetNSImage() const
|
||||
{ return GetImage(); }
|
||||
{ return OSXGetImage(); }
|
||||
#endif
|
||||
#if wxOSX_USE_IPHONE
|
||||
// returns an autoreleased version of the image
|
||||
WX_UIImage GetUIImage() const
|
||||
{ return GetImage(); }
|
||||
{ return OSXGetImage(); }
|
||||
#endif
|
||||
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
|
@@ -782,7 +782,7 @@ wxBitmapRefData::~wxBitmapRefData()
|
||||
|
||||
bool wxBitmap::CopyFromIcon(const wxIcon& icon)
|
||||
{
|
||||
return Create( icon.GetImage() );
|
||||
return Create( icon.OSXGetImage() );
|
||||
}
|
||||
|
||||
wxBitmap::wxBitmap(const char bits[], int the_width, int the_height, int no_bits)
|
||||
@@ -949,7 +949,7 @@ bool wxBitmap::Create(CGContextRef bitmapcontext)
|
||||
return GetBitmapData()->IsOk() ;
|
||||
}
|
||||
|
||||
WXImage wxBitmap::GetImage() const
|
||||
WXImage wxBitmap::OSXGetImage() const
|
||||
{
|
||||
return IsOk() ? GetBitmapData()->GetImage() : NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user