]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphMetrics.h
Amend 207eaeee9071cb
[lyx.git] / src / ParagraphMetrics.h
index 0d186f158bc217917d0d563d47a7592871892061..805d056541cb6e8ceb0a8168f05a2a782ecadc0f 100644 (file)
@@ -69,9 +69,13 @@ public:
        ///
        bool hfillExpansion(Row const & row, pos_type pos) const;
 
-       ///
+       /// The vertical position of the baseline of the first line of the paragraph
        int position() const { return position_; }
        void setPosition(int position);
+       /// The vertical position of the top of the paragraph
+       int top() const { return position_ - dim_.ascent(); }
+       /// The vertical position of the bottom of the paragraph
+       int bottom() const { return position_ + dim_.descent(); }
        ///
        int id() const { return id_; }