2001-08-03 17:56:11 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
#ifndef MATH_DIMINSET_H
|
|
|
|
#define MATH_DIMINSET_H
|
|
|
|
|
|
|
|
#include "math_inset.h"
|
|
|
|
|
2001-08-06 17:20:26 +00:00
|
|
|
/// things that need the dimension cache
|
|
|
|
|
2001-08-03 17:56:11 +00:00
|
|
|
class MathDimInset : public MathInset {
|
|
|
|
public:
|
|
|
|
MathDimInset();
|
|
|
|
///
|
|
|
|
int ascent() const;
|
|
|
|
///
|
|
|
|
int descent() const;
|
|
|
|
///
|
|
|
|
int width() const;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
///
|
2001-08-06 17:20:26 +00:00
|
|
|
mutable int width_;
|
2001-08-03 17:56:11 +00:00
|
|
|
///
|
2001-08-06 17:20:26 +00:00
|
|
|
mutable int ascent_;
|
2001-08-03 17:56:11 +00:00
|
|
|
///
|
2001-08-06 17:20:26 +00:00
|
|
|
mutable int descent_;
|
2001-08-03 17:56:11 +00:00
|
|
|
};
|
|
|
|
#endif
|