*/
class Image: public Widget
{
+public:
+ class Loader: public Msp::DataFile::DerivedObjectLoader<Image, Widget::Loader>
+ {
+ public:
+ Loader(Image &);
+ };
+
private:
const GL::Texture2D *image;
+ std::string icon_name;
bool keep_aspect;
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_icon(const std::string &);
void set_keep_aspect(bool);
private:
- virtual void render_special(const Part &) const;
+ void update_icon();
+ virtual void rebuild_special(const Part &);
+ virtual void on_style_change();
+ virtual void on_reparent();
};
} // namespace GLtk