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), 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), 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
63 void Row::width(unsigned int w)
69 unsigned int Row::width() const
75 void Row::ascent_of_text(unsigned int a)
81 unsigned int Row::ascent_of_text() const
83 return ascent_of_text_;
87 void Row::top_of_text(unsigned int top)
93 unsigned int Row::top_of_text() const
99 void Row::baseline(unsigned int b)
105 unsigned int Row::baseline() const
123 float Row::fill_separator() const
125 return fill_separator_;
129 void Row::fill_separator(float f)
135 float Row::fill_hfill() const
141 void Row::fill_hfill(float f)
147 float Row::fill_label_hfill() const
149 return fill_label_hfill_;
153 void Row::fill_label_hfill(float f)
155 fill_label_hfill_ = f;
159 bool Row::isParStart() const
165 void Row::dump(const char * s) const
167 lyxerr << s << " pos: " << pos_ << " width: " << width_
168 << " height: " << height_
169 << " ascent_of_text: " << ascent_of_text_
170 << " top_of_text: " << top_of_text_
171 << " y_offset: " << y_offset_ << std::endl;