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;
17 std::string icon_name;
21 Image(const GL::Texture2D * = 0);
23 virtual const char *get_class() const { return "image"; }
26 virtual void autosize_special(const Part &, Geometry &) const;
29 void set_image(const GL::Texture2D *);
30 void set_icon(const std::string &);
31 void set_keep_aspect(bool);
35 virtual void rebuild_special(const Part &);
36 virtual void on_style_change();
37 virtual void on_reparent();