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 ;
|
CGImageRef CreateCGImage() const ;
|
||||||
|
|
||||||
// returns nil for invalid bitmap
|
// returns nil for invalid bitmap
|
||||||
WXImage GetImage() const;
|
WXImage OSXGetImage() const;
|
||||||
#if wxOSX_USE_COCOA
|
#if wxOSX_USE_COCOA
|
||||||
// returns an autoreleased version of the image
|
// returns an autoreleased version of the image
|
||||||
WX_NSImage GetNSImage() const
|
WX_NSImage GetNSImage() const
|
||||||
{ return GetImage(); }
|
{ return OSXGetImage(); }
|
||||||
#endif
|
#endif
|
||||||
#if wxOSX_USE_IPHONE
|
#if wxOSX_USE_IPHONE
|
||||||
// returns an autoreleased version of the image
|
// returns an autoreleased version of the image
|
||||||
WX_UIImage GetUIImage() const
|
WX_UIImage GetUIImage() const
|
||||||
{ return GetImage(); }
|
{ return OSXGetImage(); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_3_0
|
#if WXWIN_COMPATIBILITY_3_0
|
||||||
|
@@ -782,7 +782,7 @@ wxBitmapRefData::~wxBitmapRefData()
|
|||||||
|
|
||||||
bool wxBitmap::CopyFromIcon(const wxIcon& icon)
|
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)
|
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() ;
|
return GetBitmapData()->IsOk() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
WXImage wxBitmap::GetImage() const
|
WXImage wxBitmap::OSXGetImage() const
|
||||||
{
|
{
|
||||||
return IsOk() ? GetBitmapData()->GetImage() : NULL;
|
return IsOk() ? GetBitmapData()->GetImage() : NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user