1 #ifndef MSP_GLTK_IMAGE_H_
2 #define MSP_GLTK_IMAGE_H_
4 #include <msp/gl/texture2d.h>
11 A widget for displaying images.
13 class Image: public Widget
16 const GL::Texture2D *image;
20 Image(const GL::Texture2D * = 0);
22 virtual const char *get_class() const { return "image"; }
25 virtual void autosize_special(const Part &, Geometry &);
28 void set_image(const GL::Texture2D *);
29 void set_keep_aspect(bool);
32 virtual void rebuild_special(const Part &);