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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user