]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/image.h
Make autosize_special const and add a const autosize overload
[libs/gltk.git] / source / image.h
index 5f6b935d20422050df32664b5c00e71984361e61..3194216d8bff06b1b69cd7b04db12272d79d6b28 100644 (file)
@@ -21,13 +21,15 @@ public:
 
        virtual const char *get_class() const { return "image"; }
 
-       virtual void autosize();
+private:
+       virtual void autosize_special(const Part &, Geometry &) const;
 
+public:
        void set_image(const GL::Texture2D *);
        void set_keep_aspect(bool);
 
 private:
-       virtual void render_special(const Part &) const;
+       virtual void rebuild_special(const Part &);
 };
 
 } // namespace GLtk