X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..28dd9a9d035b5435897d626d1b57b4308daa0371:/include/wx/os2/gdiimage.h diff --git a/include/wx/os2/gdiimage.h b/include/wx/os2/gdiimage.h index 7269022b2b..98422387cd 100644 --- a/include/wx/os2/gdiimage.h +++ b/include/wx/os2/gdiimage.h @@ -41,7 +41,7 @@ public: } // accessors - bool IsOk() const + virtual bool IsOk() const { if (m_hHandle == 0) return false; @@ -74,7 +74,7 @@ public: WXHCURSOR m_hCursor; }; - UINT m_uId; + unsigned int m_uId; }; // ---------------------------------------------------------------------------- @@ -187,9 +187,6 @@ public: pData->m_hHandle = hHandle; } - bool Ok() const { return IsOk(); } - bool IsOk() const { return GetHandle() != 0; } - int GetWidth() const { return IsNull() ? 0 : GetGDIImageData()->m_nWidth; } int GetHeight() const { return IsNull() ? 0 : GetGDIImageData()->m_nHeight; } int GetDepth() const { return IsNull() ? 0 : GetGDIImageData()->m_nDepth; } @@ -207,7 +204,7 @@ public: } void SetSize(const wxSize& rSize) { SetSize(rSize.x, rSize.y); } - UINT GetId(void) const + unsigned int GetId(void) const { wxGDIImageRefData* pData; @@ -217,7 +214,7 @@ public: else return pData->m_uId; } // end of WxWinGdi_CGDIImage::GetId - void SetId(UINT uId) + void SetId(unsigned int uId) { wxGDIImageRefData* pData; @@ -232,6 +229,16 @@ public: protected: // create the data for the derived class here virtual wxGDIImageRefData* CreateData() const = 0; + virtual wxGDIRefData *CreateGDIRefData() const { return CreateData(); } + + // we can't [efficiently] clone objects of this class + virtual wxGDIRefData * + CloneGDIRefData(const wxGDIRefData *WXUNUSED(data)) const + { + wxFAIL_MSG( _T("must be implemented if used") ); + + return NULL; + } static wxGDIImageHandlerList ms_handlers; };