Add wxBitmapBundle::GetBitmapFor() helper
This can be used to get the bitmap of the size appropriate for the DPI scaling used for the given window.
This commit is contained in:
@@ -109,6 +109,11 @@ public:
|
||||
// If size == wxDefaultSize, GetDefaultSize() is used for it instead.
|
||||
wxBitmap GetBitmap(const wxSize& size) const;
|
||||
|
||||
// Helper combining GetBitmap() and GetPreferredSizeFor(): returns the
|
||||
// bitmap of the size appropriate for the current DPI scaling of the given
|
||||
// window.
|
||||
wxBitmap GetBitmapFor(const wxWindow* window) const;
|
||||
|
||||
// Access implementation
|
||||
wxBitmapBundleImpl* GetImpl() const { return m_impl.get(); }
|
||||
|
||||
|
Reference in New Issue
Block a user