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.
26 : pos_(0), end_(0), fill_(0), height_(0), width_(0), y_offset_(0),
27 ascent_of_text_(0), baseline_(0),
28 x_(0), fill_separator_(0), fill_hfill_(0), fill_label_hfill_(0)
32 Row::Row(pos_type pos)
33 : pos_(pos), end_(0), fill_(0), height_(0), width_(0), y_offset_(0),
34 ascent_of_text_(0), baseline_(0),
35 x_(0), fill_separator_(0), fill_hfill_(0), fill_label_hfill_(0)
39 void Row::pos(pos_type p)
45 pos_type Row::pos() const
51 void Row::endpos(pos_type p)
57 pos_type Row::endpos() const
75 void Row::width(unsigned int w)
81 unsigned int Row::width() const
87 void Row::ascent_of_text(unsigned int a)
93 unsigned int Row::ascent_of_text() const
95 return ascent_of_text_;
99 void Row::top_of_text(unsigned int top)
105 unsigned int Row::top_of_text() const
111 void Row::baseline(unsigned int b)
117 unsigned int Row::baseline() const
135 float Row::fill_separator() const
137 return fill_separator_;
141 void Row::fill_separator(float f)
147 float Row::fill_hfill() const
153 void Row::fill_hfill(float f)
159 float Row::fill_label_hfill() const
161 return fill_label_hfill_;
165 void Row::fill_label_hfill(float f)
167 fill_label_hfill_ = f;
171 bool Row::isParStart() const
177 void Row::dump(const char * s) const
179 lyxerr << s << " pos: " << pos_ << " width: " << width_
180 << " height: " << height_
181 << " fill: " << fill_
182 << " ascent_of_text: " << ascent_of_text_
183 << " top_of_text: " << top_of_text_
184 << " y_offset: " << y_offset_ << std::endl;