Add wxBitmapBundle::FromImpl() and GetImpl()

For now they're only used internally but at least the latter will be
made public later.
This commit is contained in:
Vadim Zeitlin
2021-10-05 16:01:34 +01:00
parent 043461077e
commit ba6c691c22
2 changed files with 12 additions and 0 deletions

View File

@@ -63,6 +63,8 @@ public:
// form name_2x or name@2x (and also using other factors) will be used.
static wxBitmapBundle FromResources(const wxString& name);
// Create from existing implementation
static wxBitmapBundle FromImpl(wxBitmapBundleImpl* impl);
// Check if bitmap bundle is non-empty.
bool IsOk() const { return m_impl; }
@@ -77,6 +79,9 @@ public:
// If size == wxDefaultSize, GetDefaultSize() is used for it instead.
wxBitmap GetBitmap(const wxSize size) const;
// Access implementation
wxBitmapBundleImpl* GetImpl() const { return m_impl.get(); }
private:
typedef wxObjectDataPtr<wxBitmapBundleImpl> wxBitmapBundleImplPtr;