};
private:
- const GL::Texture2D *image;
+ const GL::Texture2D *image = nullptr;
std::string icon_name;
- bool keep_aspect;
+ bool keep_aspect = true;
public:
- Image(const GL::Texture2D * = 0);
+ Image(const GL::Texture2D * = nullptr);
- virtual const char *get_class() const { return "image"; }
+ const char *get_class() const override { return "image"; }
private:
- virtual void autosize_special(const Part &, Geometry &) const;
+ void autosize_special(const Part &, Geometry &) const override;
public:
void set_image(const GL::Texture2D *);
private:
void update_icon();
- virtual void rebuild_special(const Part &);
- virtual void on_style_change();
- virtual void on_reparent();
+ void rebuild_special(const Part &) override;
+ void on_style_change() override;
+ void on_reparent() override;
};
} // namespace GLtk