6 * This file is part of LyX, the document processor.
7 * Licence details can be found in the file COPYING.
11 * Full author contact details are available in file CREDITS.
22 /// Simple wrapper around three ints
26 Dimension() : w(0), a(0), d(0) {}
28 Dimension(int ww, int aa, int dd) : w(ww), a(aa), d(dd) {}
31 void operator+=(Dimension const & dim);
33 void clear() { w = a = d = 0; }
34 /// set to empty box suitble for given font
35 void clear(LyXFont const & font);
37 int height() const { return a + d; }
39 int ascent() const { return a; }
41 int descent() const { return d; }
43 int width() const { return w; }
54 std::ostream & operator<<(std::ostream & os, Dimension const & dim);