Enhancing RTSurface: 'surface' now private

This commit is contained in:
Hombre
2019-03-19 20:45:12 +01:00
parent 28b785682a
commit d059caa7de
4 changed files with 13 additions and 3 deletions

View File

@@ -26,12 +26,15 @@
*/
class RTSurface : public RTScalable
{
private:
static double dpiBack; // used to keep track of master dpi change
static int scaleBack; // used to keep track of master scale change
Cairo::RefPtr<Cairo::ImageSurface> surface;
void changeImage (Glib::ustring imageName);
public:
Cairo::RefPtr<Cairo::ImageSurface> surface;
RTSurface ();
RTSurface (const RTSurface& other);
@@ -42,6 +45,8 @@ public:
int getHeight() const;
bool hasSurface() const;
const Cairo::RefPtr<Cairo::ImageSurface>& get() const;
static void init();
static void updateImages ();
static void setDPInScale (const double newDPI, const int newScale);