X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FRow.h;h=13a11b4870e361365bf9a47ae7e049b23f2ed425;hb=d1858b89d0828c3fe8f4e898f609aaed93333d33;hp=a1e707e7449eaeabc9fe9d631459bc74c8638eec;hpb=e1c4cb7146e0dfd25bb705178618da251bdfde8c;p=lyx.git diff --git a/src/Row.h b/src/Row.h index a1e707e744..13a11b4870 100644 --- a/src/Row.h +++ b/src/Row.h @@ -29,6 +29,18 @@ namespace lyx { class DocIterator; class Inset; +/** + * FIXME: Change Row object to operate only on integers and not doubles. + * + * This use of double is only useful to distribute the extra + * horizontal space between separators in justified text. If we do + * integer arithmetic, then it is possible to have two groups of + * separators, with size s or s+1. Then strings can be drawn without + * cutting at separators in justfied text, as it is done in + * non-justified text. This will improve performance. + */ + + /** * An on-screen row of text. A paragraph is broken into a RowList for * display. Each Row contains a tokenized description of the contents @@ -153,7 +165,7 @@ public: Dimension & dimension() { return dim_; } /// int height() const { return dim_.height(); } - /// + /// The width of the row, including the left margin, but not the right one. int width() const { return dim_.wid; } /// int ascent() const { return dim_.asc; }