3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS
10 * Metrics for an on-screen text row.
16 #include "paragraph.h"
18 #include "lyxlayout.h"
27 : pos_(0), fill_(0), height_(0), width_(0), y_(0),
28 ascent_of_text_(0), baseline_(0)
32 Row::Row(ParagraphList::iterator pit, pos_type po)
33 : pit_(pit), pos_(po), fill_(0), height_(0), width_(0), y_(0),
34 ascent_of_text_(0), baseline_(0)
38 void Row::y(unsigned int newy)
44 unsigned int Row::y() const
50 ParagraphList::iterator Row::par()
56 ParagraphList::iterator Row::par() const
62 unsigned short Row::height() const
68 void Row::par(ParagraphList::iterator pit)
74 void Row::pos(pos_type p)
80 pos_type Row::pos() const
98 void Row::height(unsigned short h)
104 void Row::width(unsigned int w)
110 unsigned int Row::width() const
116 void Row::ascent_of_text(unsigned short a)
122 unsigned short Row::ascent_of_text() const
124 return ascent_of_text_;
128 void Row::top_of_text(unsigned int top)
134 unsigned int Row::top_of_text() const
140 void Row::baseline(unsigned int b)
146 unsigned int Row::baseline() const
152 bool Row::isParStart() const
158 void Row::dump(const char * s) const
160 lyxerr << s << " pos: " << pos_ << " width: " << width_
161 << " height: " << height_
162 << " fill: " << fill_
163 << " ascent_of_text: " << ascent_of_text_
164 << " top_of_text: " << top_of_text_
165 << " y: " << y_ << "\n";