Add common implementations of wxStaticBitmap icon methods
Instead of defining them, slightly differently, in all the non-MSW ports, define them once in wxStaticBitmapBase. No real changes, this is just a simplification.
This commit is contained in:
@@ -48,19 +48,6 @@ public:
|
||||
|
||||
wxBitmap GetBitmap() const { return m_messageBitmap; }
|
||||
|
||||
// for compatibility with wxMSW
|
||||
wxIcon GetIcon() const
|
||||
{
|
||||
// don't use wxDynamicCast, icons and bitmaps are really the same thing
|
||||
return *(const wxIcon*)&m_messageBitmap;
|
||||
}
|
||||
|
||||
// for compatibility with wxMSW
|
||||
void SetIcon(const wxIcon& icon)
|
||||
{
|
||||
SetBitmap( icon );
|
||||
}
|
||||
|
||||
// Implementation
|
||||
virtual void ChangeBackgroundColour();
|
||||
virtual void ChangeForegroundColour();
|
||||
|
||||
Reference in New Issue
Block a user