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"
21 * An on-screen row of text. A paragraph is broken into a
22 * RowList for display. Each Row contains position pointers
23 * into the first and last character positions of that row.
30 Row(lyx::pos_type pos);
32 void pos(lyx::pos_type p);
34 lyx::pos_type pos() const;
36 void endpos(lyx::pos_type p);
38 lyx::pos_type endpos() const;
40 int height() const { return ascent_ + descent_; }
50 void descent(int b) { descent_ = b; }
52 int descent() const { return descent_; }
53 /// current debugging only
54 void dump(const char * = "") const;
57 /// first pos covered by this row
59 /// one behind last pos covered by this row
73 /// width of a separator (i.e. space)
75 /// width of hfills in the body
77 /// width of hfills in the label
79 /// the x position of the row