11 Dimension() : w(0), a(0), d(0) {}
13 Dimension(int ww, int aa, int dd) : w(ww), a(aa), d(dd) {}
16 void operator+=(Dimension const & dim);
18 void clear() { w = a = d = 0; }
19 /// set to empty box suitble for given font
20 void clear(LyXFont const & font);
22 int height() const { return a + d; }
24 int ascent() const { return a; }
26 int descent() const { return d; }
28 int width() const { return w; }
39 std::ostream & operator<<(std::ostream & os, Dimension const & dim);