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.
22 #include "math_sqrtinset.h"
23 #include "symbol_def.h"
26 /** The general n-th root inset.
27 \author Alejandro Aguilar Sierra
30 class MathRootInset : public MathSqrtInset {
34 MathRootInset(short st = LM_ST_TEXT);
38 MathedInset * Clone();
40 void draw(Painter &, int x, int baseline);
42 void Write(std::ostream &, bool fragile);
46 bool Inside(int, int);
48 void SetFocus(int, int);
50 void setData(MathedArray const &);
52 void GetXY(int & x, int & y) const;
54 MathedArray & GetData();
56 bool setArgumentIdx(int i);
58 int getArgumentIdx() const;
60 int getMaxArgumentIdx() const;
67 MathParInset * uroot_;
76 int MathRootInset::getArgumentIdx() const
83 int MathRootInset::getMaxArgumentIdx() const