3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
10 * \author Jürgen Vigna
12 * Full author contact details are available in file CREDITS.
14 * Metrics for an on-screen text row.
28 : pos_(0), end_(0), fill_(0), height_(0), width_(0), y_(0),
29 ascent_of_text_(0), baseline_(0),
30 x_(0), fill_separator_(0), fill_hfill_(0), fill_label_hfill_(0)
34 Row::Row(pos_type pos)
35 : pos_(pos), end_(0), fill_(0), height_(0), width_(0), y_(0),
36 ascent_of_text_(0), baseline_(0),
37 x_(0), fill_separator_(0), fill_hfill_(0), fill_label_hfill_(0)
41 void Row::y(unsigned int newy)
47 unsigned int Row::y() const
53 unsigned short Row::height() const
59 void Row::pos(pos_type p)
65 pos_type Row::pos() const
71 void Row::end(pos_type p)
77 pos_type Row::end() const
95 void Row::height(unsigned short h)
101 void Row::width(unsigned int w)
107 unsigned int Row::width() const
113 void Row::ascent_of_text(unsigned short a)
119 unsigned short Row::ascent_of_text() const
121 return ascent_of_text_;
125 void Row::top_of_text(unsigned int top)
131 unsigned int Row::top_of_text() const
137 void Row::baseline(unsigned int b)
143 unsigned int Row::baseline() const
161 float Row::fill_separator() const
163 return fill_separator_;
167 void Row::fill_separator(float f)
173 float Row::fill_hfill() const
179 void Row::fill_hfill(float f)
185 float Row::fill_label_hfill() const
187 return fill_label_hfill_;
191 void Row::fill_label_hfill(float f)
193 fill_label_hfill_ = f;
197 bool Row::isParStart() const
203 void Row::dump(const char * s) const
205 lyxerr << s << " pos: " << pos_ << " width: " << width_
206 << " height: " << height_
207 << " fill: " << fill_
208 << " ascent_of_text: " << ascent_of_text_
209 << " top_of_text: " << top_of_text_
210 << " y: " << y_ << std::endl;