class RenderGraphic : public RenderBase
{
public:
- RenderGraphic(Inset const *);
+ explicit RenderGraphic(Inset const *);
RenderGraphic(RenderGraphic const &, Inset const *);
RenderBase * clone(Inset const *) const;
/// compute the size of the object returned in dim
- bool metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const;
/// draw inset
void draw(PainterInfo & pi, int x, int y) const;
/// Refresh the info about which file to display and how to display it.
void update(graphics::Params const & params);
+ /// Reloads the image if necessary
+ void reload() const;
/// equivalent to dynamic_cast
virtual RenderGraphic * asGraphic() { return this; }
/// Not implemented.
RenderGraphic & operator=(RenderGraphic const &);
+ /// Reference to owner
+ Inset const * inset_;
+
/// The stored data.
graphics::Loader loader_;
graphics::Params params_;