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_sqrtinset.h"
19 #include "symbol_def.h"
25 /** The general n-th root inset.
26 \author Alejandro Aguilar Sierra
29 class MathRootInset : public MathSqrtInset {
33 MathRootInset(short st = LM_ST_TEXT);
35 MathedInset * Clone();
37 void draw(Painter &, int x, int baseline);
39 void Write(std::ostream &, bool fragile);
43 bool Inside(int, int);
45 void SetFocus(int, int);
47 void setData(MathedArray const &);
49 void GetXY(int & x, int & y) const;
51 MathedArray & GetData();
53 MathedArray const & GetData() const;
55 bool setArgumentIdx(int i);
57 int getArgumentIdx() const;
59 int getMaxArgumentIdx() const;
75 int MathRootInset::getArgumentIdx() const
82 int MathRootInset::getMaxArgumentIdx() const