]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/image.h
Avoid generating events during destruction of a widget
[libs/gltk.git] / source / image.h
index 5d113ccf33c83cd900d77f400bdfad38a000babb..afc4826e28c24f46e324ddcd30f994b1f10588d0 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of libmspgltk
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Copyright © 2010-2011  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -24,12 +24,16 @@ private:
        bool keep_aspect;
 
 public:
-       Image(const Resources &, const GL::Texture2D * = 0);
+       Image(const GL::Texture2D * = 0);
+
+       virtual const char *get_class() const { return "image"; }
+
+       virtual void autosize();
 
        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;
 };