using std::min;
Row::Row()
- : pos_(0), fill_(0), height_(0), width_(0), y_(0),
+ : pos_(0), end_(0), fill_(0), height_(0), width_(0), y_(0),
ascent_of_text_(0), baseline_(0)
{}
-Row::Row(pos_type po)
- : pos_(po), fill_(0), height_(0), width_(0), y_(0),
+Row::Row(pos_type pos)
+ : pos_(pos), end_(0), fill_(0), height_(0), width_(0), y_(0),
ascent_of_text_(0), baseline_(0)
{}
}
+void Row::end(pos_type p)
+{
+ end_ = p;
+}
+
+
+pos_type Row::end() const
+{
+ return end_;
+}
+
+
void Row::fill(int f)
{
fill_ = f;
<< " fill: " << fill_
<< " ascent_of_text: " << ascent_of_text_
<< " top_of_text: " << top_of_text_
- << " y: " << y_ << "\n";
+ << " y: " << y_ << std::endl;
}