20 typedef MathArray::size_type size_type;
22 typedef MathArray::const_iterator const_iterator;
27 void metrics(MathStyles st) const;
29 void draw(Painter & pain, int x, int y) const;
32 int xo() const { return xo_; }
34 int yo() const { return yo_; }
36 int pos2x(size_type pos) const;
38 size_type x2pos(int pos) const;
41 int ascent() const { return ascent_; }
43 int descent() const { return descent_; }
45 int height() const { return ascent_ + descent_; }
47 int width() const { return width_; }
49 MathStyles style() const { return style_; }
52 const_iterator begin() const { return data_.begin(); }
54 const_iterator end() const { return data_.end(); }
70 mutable MathStyles style_;
73 std::ostream & operator<<(std::ostream & os, MathXArray const & ar);