]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.h
src/support/unlink.C: Fix an #include error
[lyx.git] / src / TextMetrics.h
index 4af380ebe524df3509a4e10d9cf73bad56fc4675..77fc11a4b76a2946469e09daa72f6e5163876edf 100644 (file)
@@ -97,6 +97,13 @@ public:
        /// of this column.
        pos_type getColumnNearX(pit_type pit, Row const & row, int & x,
                bool & boundary) const;
+
+       /// returns pos in given par at given x coord.
+       pos_type x2pos(pit_type pit, int row, int x) const;
+       
+       // FIXME: is there a need for this?
+       //int pos2x(pit_type pit, pos_type pos) const;
+
 private:
 
        /// The BufferView owner.