X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferView.h;h=1b76da27117c593e4fdad9bc029f5465883005d4;hb=33f9cfb7961501b38c573eede468b011687f46de;hp=22f0d927650cc5f1599c1fc82857bb416600c911;hpb=65c88f0a0a3d74dcc0a0009bb60ee6e74eeedccc;p=lyx.git diff --git a/src/BufferView.h b/src/BufferView.h index 22f0d92765..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; } @@ -46,7 +47,6 @@ class MathData; class MathRow; class ParagraphMetrics; class Point; -class TexRow; class Text; class TextMetrics; @@ -312,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);