X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.h;h=1b76da27117c593e4fdad9bc029f5465883005d4;hb=33f9cfb7961501b38c573eede468b011687f46de;hp=74e29c6424681ff0048a9dc660bb8768acd0659f;hpb=fa6ac23e1c96d3dd39128b827b675738f668e3a4;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index 74e29c6424..1b76da2711 100644 --- a/src/BufferView.h +++ b/src/BufferView.h @@ -26,6 +26,7 @@ namespace lyx { namespace support { class FileName; } +namespace frontend { struct CaretGeometry; } namespace frontend { class Painter; } namespace frontend { class GuiBufferViewDelegate; } @@ -311,6 +312,10 @@ public: 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; /// void draw(frontend::Painter & pain, bool paint_caret);