add GetSize also to wxGDIImage since wxBitmap under some ports derives from wxGDIImage and not from wxBitmapBase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -113,6 +113,12 @@ public:
|
||||
int GetHeight() const { return IsNull() ? 0 : GetGDIImageData()->m_height; }
|
||||
int GetDepth() const { return IsNull() ? 0 : GetGDIImageData()->m_depth; }
|
||||
|
||||
wxSize GetSize() const
|
||||
{
|
||||
return IsNull() ? wxSize(0,0) :
|
||||
wxSize(GetGDIImageData()->m_width, GetGDIImageData()->m_height);
|
||||
}
|
||||
|
||||
void SetWidth(int w) { AllocExclusive(); GetGDIImageData()->m_width = w; }
|
||||
void SetHeight(int h) { AllocExclusive(); GetGDIImageData()->m_height = h; }
|
||||
void SetDepth(int d) { AllocExclusive(); GetGDIImageData()->m_depth = d; }
|
||||
|
Reference in New Issue
Block a user