class wxMacArtProvider : public wxArtProvider
{
protected:
- virtual wxBitmap CreateBitmap(const wxArtID& id, const wxArtClient& client,
- const wxSize& size);
virtual wxIconBundle CreateIconBundle(const wxArtID& id,
const wxArtClient& client);
};
return wxMacArtProvider_CreateIconBundle(id);
}
-// ----------------------------------------------------------------------------
-// CreateBitmap
-// ----------------------------------------------------------------------------
-
-wxBitmap wxMacArtProvider::CreateBitmap(const wxArtID& id,
- const wxArtClient& client,
- const wxSize& reqSize)
-{
- wxIconBundle ic(CreateIconBundle(id, client));
- if (ic.IsOk())
- {
- wxIcon theIcon(ic.GetIcon(reqSize));
- return wxBitmap(theIcon);
- }
-
- return wxNullBitmap;
-}
-
// ----------------------------------------------------------------------------
// wxArtProvider::GetNativeSizeHint()