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:
|
2002-03-12 16:39:27 +00:00
|
|
|
/// not sure whether the initialization is really necessary
|
|
|
|
MathDimInset() : width_(0), ascent_(0), descent_(0) {}
|
|
|
|
/// read ascent value (should be inline according to gprof)
|
|
|
|
int ascent() const { return ascent_; }
|
|
|
|
/// read descent
|
|
|
|
int descent() const { return descent_; }
|
|
|
|
/// read width
|
|
|
|
int width() const { return width_; }
|
2001-08-03 17:56:11 +00:00
|
|
|
|
|
|
|
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
|