]> 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 8256a8d9c5c1749bbee6da77793fbc91e7b09a81..3194216d8bff06b1b69cd7b04db12272d79d6b28 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GLTK_IMAGE_H_
 #define MSP_GLTK_IMAGE_H_
 
@@ -26,11 +19,17 @@ private:
 public:
        Image(const GL::Texture2D * = 0);
 
+       virtual const char *get_class() const { return "image"; }
+
+private:
+       virtual void autosize_special(const Part &, Geometry &) const;
+
+public:
        void set_image(const GL::Texture2D *);
        void set_keep_aspect(bool);
+
 private:
-       virtual const char *get_class() const { return "image"; }
-       virtual void render_special(const Part &) const;
+       virtual void rebuild_special(const Part &);
 };
 
 } // namespace GLtk