]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrow.h
Alfredo's second patch
[lyx.git] / src / lyxrow.h
index cbb72cec7cba4170977a119cdd6e64a7c45855c2..7a81db1b2f6ce2c5aa0a190ab757b9c662f05a20 100644 (file)
@@ -61,6 +61,10 @@ public:
        unsigned int baseline() const;
        /// return true if this row is the start of a paragraph
        bool isParStart() const;
+       /// return the cached y position
+       unsigned int y() const;
+       /// cache the y position
+       void y(unsigned int newy);
 private:
        ///
        ParagraphList::iterator pit_;
@@ -73,6 +77,8 @@ private:
        unsigned short height_;
        ///
        unsigned int width_;
+       /// cached y position
+       unsigned int y_;
        /// ascent from baseline including prelude space
        unsigned short ascent_of_text_;
        /// the top of the real text in the row