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"
26 Row(lyx::pos_type pos);
28 void pos(lyx::pos_type p);
30 lyx::pos_type pos() const;
32 void endpos(lyx::pos_type p);
34 lyx::pos_type endpos() const;
36 int height() const { return ascent_ + descent_; }
46 void descent(int b) { descent_ = b; }
48 int descent() const { return descent_; }
49 /// current debugging only
50 void dump(const char * = "") const;
53 /// first pos covered by this row
55 /// one behind last pos covered by this row
69 /// width of a separator (i.e. space)
71 /// width of hfills in the body
73 /// width of hfills in the label
75 /// the x position of the row