Add wxBitmapBundle::FromSVGFile() helper

This is just a trivial wrapper for wxBitmapBundle::FromSVG(), but it can
still be convenient to have.
This commit is contained in:
Vadim Zeitlin 2021-11-28 22:16:55 +01:00
parent 5efcaf4e59
commit 8adfaa37f7
10 changed files with 74 additions and 4 deletions

View file

@ -82,6 +82,9 @@ public:
// This overload currently makes a copy of the data.
static wxBitmapBundle FromSVG(const char* data, const wxSize& sizeDef);
// Load SVG image from the given file (must be a local file, not an URL).
static wxBitmapBundle FromSVGFile(const wxString& path, const wxSize& sizeDef);
#endif // wxHAS_SVG
// Create from the resources: all existing versions of the bitmap of the