int ascent() const { return dim_.asc; }
///
int descent() const { return dim_.des; }
+
///
- int totalAscent() const { return ascent() + top_padding; }
+ Dimension const & contents_dim() const { return contents_dim_; }
///
- int totalDescent() const { return dim_.des + bottom_padding; }
+ Dimension & contents_dim() { return contents_dim_; }
/// The offset of the left-most cursor position on the row
int left_x() const;
int left_margin;
/// the right margin of the row
int right_margin;
- /// possible padding above the row
- int top_padding;
- /// possible padding below the row
- int bottom_padding;
///
mutable pos_type sel_beg;
///
bool flushed_;
/// Row dimension.
Dimension dim_;
+ /// Row contents dimension. Does not contain the space above/below row.
+ Dimension contents_dim_;
/// true when this row lives in a right-to-left paragraph
bool rtl_;
/// true when a changebar should be drawn in the margin