]> git.lyx.org Git - features.git/blobdiff - src/cursor.h
hide cursor and selection anchor behind accessor function
[features.git] / src / cursor.h
index 4eae0a69d093881caec7fe1d9eb1271aad954e88..1ee90351cc27cc2011e40af5ece62a8b879b8c38 100644 (file)
@@ -45,6 +45,11 @@ public:
        void pop(int depth);
        /// pop one level off the cursor
        void pop();
+       /// access to cursor 'tip'
+       CursorSlice & top() { return data_.back(); }
+       /// access to cursor 'tip'
+       CursorSlice const & top() const { return data_.back(); }
+
        /// set the cell the cursor is in
        void cell(int);
        /// return the cell this cursor is in