9 #include "math_metricsinfo.h"
21 typedef MathArray::size_type size_type;
23 typedef MathArray::const_iterator const_iterator;
28 void metrics(MathMetricsInfo const & st) const;
30 void draw(Painter & pain, int x, int y) const;
33 int xo() const { return xo_; }
35 int yo() const { return yo_; }
37 int pos2x(size_type pos) const;
39 size_type x2pos(int pos) const;
42 int ascent() const { return ascent_; }
44 int descent() const { return descent_; }
46 int height() const { return ascent_ + descent_; }
48 int width() const { return width_; }
51 const_iterator begin() const { return data_.begin(); }
53 const_iterator end() const { return data_.end(); }
69 mutable MathMetricsInfo size_;
72 std::ostream & operator<<(std::ostream & os, MathXArray const & ar);