2 #ifndef MATH_DECORATIONINSET_H
3 #define MATH_DECORATIONINSET_H
5 #include "math_nestinset.h"
12 /** Decorations and accents over (below) a math object
13 * \author Alejandro Aguilar Sierra
15 * Full author contact details are available in file CREDITS
20 class MathDecorationInset : public MathNestInset {
23 explicit MathDecorationInset(latexkeys const * key);
25 MathInset * clone() const;
27 void draw(MathPainterInfo &, int x, int y) const;
29 void write(WriteStream & os) const;
31 void metrics(MathMetricsInfo & mi) const;
33 void normalize(NormalStream & os) const;
35 void infoize(std::ostream & os) const;
37 bool isScriptable() const;
44 /// is it a wide decoration?
48 latexkeys const * key_;
49 /// height cache of deco
51 /// vertical offset cache of deco
53 /// width for non-wide deco