4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
15 #include "dimension.h"
23 virtual ~RenderBase() {}
25 virtual RenderBase * clone() const = 0;
27 /// compute the size of the object returned in dim
28 virtual void metrics(MetricsInfo & mi, Dimension & dim) const = 0;
29 /// draw inset and update (xo, yo)-cache
30 virtual void draw(PainterInfo & pi, int x, int y) const = 0;
34 RenderBase(RenderBase const &) {}
35 void operator=(RenderBase const &) {}
38 mutable Dimension dim_;
41 #endif // NOT RENDER_BASE_H