- /// is the cursor currently visible in the view
- bool cursorInView(Point const & p, int h) const;
- /// get the position and height of the cursor
- void cursorPosAndHeight(Point & p, int & h) const;
-
-
+ /// is the caret currently visible in the view
+ bool caretInView() const;
+ /// get the position and height of the caret
+ void caretPosAndDim(Point & p, Dimension & dim) const;
+ /// compute the shape of the caret
+ void buildCaretGeometry(bool complet);
+ /// the shape of the caret
+ frontend::CaretGeometry const & caretGeometry() const;
+
+ /// Returns true when metrics have been computed at least once
+ bool ready() const { return width_ > 0 && height_ > 0; }
+ /// Returns true when the BufferView is not ready for drawing
+ bool busy() const;