X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b5c2d5262df98e197736d81d8a9fe54d1932ab0..0b632977d75f403b7bc043d48a1c15e7394c546c:/include/wx/os2/gdiimage.h diff --git a/include/wx/os2/gdiimage.h b/include/wx/os2/gdiimage.h index 8b5625abdf..7d96b89e9f 100644 --- a/include/wx/os2/gdiimage.h +++ b/include/wx/os2/gdiimage.h @@ -191,6 +191,12 @@ public: int GetHeight() const { return IsNull() ? 0 : GetGDIImageData()->m_nHeight; } int GetDepth() const { return IsNull() ? 0 : GetGDIImageData()->m_nDepth; } + wxSize GetSize() const + { + return IsNull() ? wxSize(0,0) : + wxSize(GetGDIImageData()->m_nWidth, GetGDIImageData()->m_nHeight); + } + void SetWidth(int nW) { EnsureHasData(); GetGDIImageData()->m_nWidth = nW; } void SetHeight(int nH) { EnsureHasData(); GetGDIImageData()->m_nHeight = nH; } void SetDepth(int nD) { EnsureHasData(); GetGDIImageData()->m_nDepth = nD; }