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.
25 /// Simple wrapper around three ints
29 Dimension() : w(0), a(0), d(0) {}
31 Dimension(int ww, int aa, int dd) : w(ww), a(aa), d(dd) {}
34 void operator+=(Dimension const & dim);
36 void clear() { w = a = d = 0; }
37 /// set to empty box suitble for given font
38 void clear(LyXFont const & font);
40 int height() const { return a + d; }
42 int ascent() const { return a; }
44 int descent() const { return d; }
46 int width() const { return w; }
57 std::ostream & operator<<(std::ostream & os, Dimension const & dim);