4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Matthias Ettrich
8 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS.
12 * Metrics for an on-screen text row.
18 #include "support/types.h"
20 #include "Dimension.h"
26 * An on-screen row of text. A paragraph is broken into a
27 * RowList for display. Each Row contains position pointers
28 * into the first and last character positions of that row.
41 void endpos(pos_type p);
43 pos_type endpos() const;
45 Dimension const & dimension() const { return dim_; }
47 int height() const { return dim_.height(); }
49 void width(int w) { dim_.wid = w; }
51 int width() const { return dim_.wid; }
53 void ascent(int a) { dim_.asc = a; }
55 int ascent() const { return dim_.asc; }
57 void descent(int d) { dim_.des = d; }
59 int descent() const { return dim_.des; }
60 /// current debugging only
61 void dump(const char * = "") const;
63 /// width of a separator (i.e. space)
65 /// width of hfills in the body
67 /// width of hfills in the label
69 /// the x position of the row
73 /// first pos covered by this row
75 /// one behind last pos covered by this row