4 * Purpose: Declaration of the root object
5 * Author: Alejandro Aguilar Sierra <asierra@servidor.unam.mx>
6 * Created: January 1999
7 * Description: Root math object
9 * Copyright: 1999 Alejandro Aguilar Sierra
11 * You are free to use and modify this code under the terms of
12 * the GNU General Public Licence version 2 or later.
18 #include "math_nestinset.h"
19 #include "symbol_def.h"
25 /** The general n-th root inset.
26 \author Alejandro Aguilar Sierra
29 class MathRootInset : public MathNestInset {
34 MathInset * clone() const;
36 void draw(Painter &, int x, int y) const;
38 void write(std::ostream &, bool fragile) const;
40 void writeNormal(std::ostream &) const;
42 void metrics(MathStyles st) const;
44 bool idxUp(int & idx, int & pos) const;
46 bool idxDown(int & idx, int & pos) const;