X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.h;h=78825c39852b5fb7eeda060d306649fb70f86aa3;hb=2f271f61bcd514da3ab5b44d2b7bf61e12ac0c44;hp=bb9d7bd6c122ccc207390695e4f68bd01a3a3a83;hpb=1cca0a86bdd43b08af7cb02db78e2621abe9465d;p=lyx.git diff --git a/src/TextMetrics.h b/src/TextMetrics.h index bb9d7bd6c1..78825c3985 100644 --- a/src/TextMetrics.h +++ b/src/TextMetrics.h @@ -160,8 +160,7 @@ private: /// draw selection for a single row void drawRowSelection(PainterInfo & pi, int x, Row const & row, - DocIterator const & beg, DocIterator const & end, - bool drawOnBegMargin, bool drawOnEndMargin) const; + Cursor const & cur, pit_type const pit) const; // Temporary public: public: @@ -211,10 +210,6 @@ public: int cursorY(CursorSlice const & cursor, bool boundary) const; - /// - void cursorPrevious(Cursor & cur); - /// - void cursorNext(Cursor & cur); /// bool cursorHome(Cursor & cur); /// @@ -242,6 +237,10 @@ public: int leftMargin(int max_width, pit_type pit, pos_type pos) const; int leftMargin(int max_width, pit_type pit) const; + /// calculates the position of a completion popup + void completionPosAndDim(Cursor const & cur, int & x, int & y, + Dimension & dim) const; + private: friend class BufferView;