#include "wx/gdicmn.h" // wxBITMAP_TYPE_INVALID
#include "wx/list.h"
-class WXDLLEXPORT wxGDIImageRefData;
-class WXDLLEXPORT wxGDIImageHandler;
-class WXDLLEXPORT wxGDIImage;
+class WXDLLIMPEXP_FWD_CORE wxGDIImageRefData;
+class WXDLLIMPEXP_FWD_CORE wxGDIImageHandler;
+class WXDLLIMPEXP_FWD_CORE wxGDIImage;
WX_DECLARE_EXPORTED_LIST(wxGDIImageHandler, wxGDIImageHandlerList);
}
// accessors
- bool IsOk() const
+ virtual bool IsOk() const
{
if (m_hHandle == 0)
return false;
WXHCURSOR m_hCursor;
};
- UINT m_uId;
+ unsigned int m_uId;
};
// ----------------------------------------------------------------------------
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; }
}
void SetSize(const wxSize& rSize) { SetSize(rSize.x, rSize.y); }
- UINT GetId(void) const
+ unsigned int GetId(void) const
{
wxGDIImageRefData* pData;
else
return pData->m_uId;
} // end of WxWinGdi_CGDIImage::GetId
- void SetId(UINT uId)
+ void SetId(unsigned int uId)
{
wxGDIImageRefData* pData;
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;
};