public:
RenderButton();
- RenderBase * clone() const;
+ std::auto_ptr<RenderBase> clone(InsetBase const *) const;
/// compute the size of the object returned in dim
virtual void metrics(MetricsInfo & mi, Dimension & dim) const;
///
void setBox(Box b) { button_box_ = b; }
+ /// equivalent to dynamic_cast
+ virtual RenderButton * asButton() { return this; }
+
private:
/// The stored data.
std::string text_;