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::pos(pos_type p)
47 pos_type Row::pos() const
53 void Row::end(pos_type p)
59 pos_type Row::end() const
77 void Row::width(unsigned int w)
83 unsigned int Row::width() const
89 void Row::ascent_of_text(unsigned int a)
95 unsigned int Row::ascent_of_text() const
97 return ascent_of_text_;
101 void Row::top_of_text(unsigned int top)
107 unsigned int Row::top_of_text() const
113 void Row::baseline(unsigned int b)
119 unsigned int Row::baseline() const
137 float Row::fill_separator() const
139 return fill_separator_;
143 void Row::fill_separator(float f)
149 float Row::fill_hfill() const
155 void Row::fill_hfill(float f)
161 float Row::fill_label_hfill() const
163 return fill_label_hfill_;
167 void Row::fill_label_hfill(float f)
169 fill_label_hfill_ = f;
173 bool Row::isParStart() const
179 void Row::dump(const char * s) const
181 lyxerr << s << " pos: " << pos_ << " width: " << width_
182 << " height: " << height_
183 << " fill: " << fill_
184 << " ascent_of_text: " << ascent_of_text_
185 << " top_of_text: " << top_of_text_
186 << " y: " << y_ << std::endl;