Adding SVG support for icons with automatic cache handling
See issue #3547 and #4803
This commit is contained in:
@@ -32,13 +32,13 @@ class RTScalable
|
||||
|
||||
protected:
|
||||
static void setDPInScale (const double newDPI, const int newScale);
|
||||
static double getDPI (); // The returned value is tweaked DPI to adapt to main the font size. Maybe not an ideal solution.
|
||||
static int getScale ();
|
||||
static void resizeImage(Cairo::RefPtr<Cairo::ImageSurface> &surf, double factor);
|
||||
static Cairo::RefPtr<Cairo::ImageSurface> loadImage(const Glib::ustring &fname, double dpi);
|
||||
Gtk::TextDirection getDirection();
|
||||
|
||||
|
||||
public:
|
||||
static void init(Gtk::Window *window);
|
||||
|
||||
static double getDPI ();
|
||||
static double getTweakedDPI (); // The returned value is tweaked DPI to adapt to main the font size. Maybe not an ideal solution.
|
||||
static int getScale ();
|
||||
};
|
||||
|
Reference in New Issue
Block a user