]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.h
src/support/unlink.C: Fix an #include error
[lyx.git] / src / TextMetrics.h
index 1978cc5a27e01589a64eda444014351abc88be4a..77fc11a4b76a2946469e09daa72f6e5163876edf 100644 (file)
@@ -87,18 +87,25 @@ private:
        /// sets row.width to the minimum space a row needs on the screen in pixel
        void setRowWidth(int right_margin, pit_type const pit, Row & row) const;
 
-// Temporary public:
-public:
        /// Calculate and set the height of the row
        void setHeightOfRow(pit_type, Row & row);
 
-private:
+// Temporary public:
+public:
        /// returns the column near the specified x-coordinate of the row.
        /// x is an absolute screen coord, it is set to the real beginning
        /// 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.
        BufferView * bv_;