X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.h;h=78825c39852b5fb7eeda060d306649fb70f86aa3;hb=2f271f61bcd514da3ab5b44d2b7bf61e12ac0c44;hp=d42759d842eec5d3fe45071aa406611eedf1419d;hpb=a4d5b784300ee6121e173b36f91707924e045c82;p=lyx.git diff --git a/src/TextMetrics.h b/src/TextMetrics.h index d42759d842..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: @@ -238,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;