Adding SVG support for icons with automatic cache handling

See issue #3547 and #4803
This commit is contained in:
Hombre
2018-12-13 00:04:30 +01:00
parent 7ab3893b2b
commit 81407cd663
20 changed files with 196 additions and 289 deletions

View File

@@ -28,6 +28,7 @@ class RTSurface : public RTScalable
{
static double dpiBack; // used to keep track of master dpi change
static int scaleBack; // used to keep track of master scale change
void changeImage (Glib::ustring imageName);
public:
Cairo::RefPtr<Cairo::ImageSurface> surface;
@@ -37,7 +38,6 @@ public:
RTSurface (Glib::ustring fileName, Glib::ustring rtlFileName = Glib::ustring());
void setImage (Glib::ustring fileName, Glib::ustring rtlFileName = Glib::ustring());
void changeImage (Glib::ustring imageName);
int getWidth() const;
int getHeight() const;
bool hasSurface() const;