X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxrow.h;h=652366abcf4657dfda909758363ef971fb932f74;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=58329a13385e9359b50371e1ab36ca3252dbbda8;hpb=a2cd656e256fa50aec3f03851b63a4bc6cdd666d;p=lyx.git diff --git a/src/lyxrow.h b/src/lyxrow.h index 58329a1338..652366abcf 100644 --- a/src/lyxrow.h +++ b/src/lyxrow.h @@ -17,21 +17,28 @@ #include "support/types.h" -/// + +namespace lyx { + +/** + * An on-screen row of text. A paragraph is broken into a + * RowList for display. Each Row contains position pointers + * into the first and last character positions of that row. + */ class Row { public: /// Row(); /// - Row(lyx::pos_type pos); + Row(pos_type pos); /// - void pos(lyx::pos_type p); + void pos(pos_type p); /// - lyx::pos_type pos() const; + pos_type pos() const; /// - void endpos(lyx::pos_type p); + void endpos(pos_type p); /// - lyx::pos_type endpos() const; + pos_type endpos() const; /// int height() const { return ascent_ + descent_; } /// @@ -51,9 +58,9 @@ public: private: /// first pos covered by this row - lyx::pos_type pos_; + pos_type pos_; /// one behind last pos covered by this row - lyx::pos_type end_; + pos_type end_; /// int ascent_; /// @@ -77,4 +84,7 @@ public: }; + +} // namespace lyx + #endif