2001-02-26 12:53:35 +00:00
|
|
|
// -*- C++ -*-
|
2001-02-13 13:28:32 +00:00
|
|
|
#ifndef MATH_SQRTINSET_H
|
|
|
|
#define MATH_SQRTINSET_H
|
|
|
|
|
|
|
|
#include "math_parinset.h"
|
|
|
|
|
2001-02-26 12:53:35 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-02-16 09:25:43 +00:00
|
|
|
/** The square root inset.
|
|
|
|
\author Alejandro Aguilar Siearra
|
|
|
|
*/
|
|
|
|
class MathSqrtInset : public MathParInset {
|
2001-02-13 13:28:32 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
MathSqrtInset(short st = LM_ST_TEXT);
|
|
|
|
///
|
|
|
|
MathedInset * Clone();
|
|
|
|
///
|
|
|
|
void draw(Painter &, int x, int baseline);
|
|
|
|
///
|
|
|
|
void Write(std::ostream &, bool fragile);
|
|
|
|
///
|
2001-04-25 15:43:57 +00:00
|
|
|
void WriteNormal(std::ostream &);
|
|
|
|
///
|
2001-02-13 13:28:32 +00:00
|
|
|
void Metrics();
|
|
|
|
///
|
|
|
|
bool Inside(int, int);
|
|
|
|
private:
|
|
|
|
///
|
2001-02-16 09:25:43 +00:00
|
|
|
int hmax_;
|
|
|
|
///
|
|
|
|
int wbody_;
|
2001-02-13 13:28:32 +00:00
|
|
|
};
|
|
|
|
#endif
|