void add(T const * thing, int x, int y)
{
data_[thing] = Point(x, y);
void add(T const * thing, int x, int y)
{
data_[thing] = Point(x, y);
};
/**
* A global cache that allows us to come from a paragraph in a document
* to a position point on the screen.
* All points cached in this cache are only valid between subsequent
};
/**
* A global cache that allows us to come from a paragraph in a document
* to a position point on the screen.
* All points cached in this cache are only valid between subsequent
- * updated. (x,y) == (0,0) is the upper left screen corner, x increases
+ * updates. (x,y) == (0,0) is the upper left screen corner, x increases
- * The cache is built in BufferView::Pimpl::metrics which is called
- * from BufferView::Pimpl::update. The individual points are added
+ * The cache is built in BufferView::updateMetrics which is called
+ * from BufferView::update. The individual points are added
/// A map from a LyXText to the map of paragraphs to screen points
typedef std::map<LyXText const *, InnerParPosCache> ParPosCache;
/// A map from a CursorSlice to screen points
typedef std::map<LyXText const *, InnerParPosCache> SliceCache;
/// A map from MathArray to position on the screen
/// A map from a LyXText to the map of paragraphs to screen points
typedef std::map<LyXText const *, InnerParPosCache> ParPosCache;
/// A map from a CursorSlice to screen points
typedef std::map<LyXText const *, InnerParPosCache> SliceCache;
/// A map from MathArray to position on the screen
CoordCacheBase<MathArray> const & getArrays() const { return arrays_; }
/// A map from insets to positions on the screen
CoordCacheBase<MathArray> const & getArrays() const { return arrays_; }
/// A map from insets to positions on the screen
CoordCacheBase<InsetBase> const & getInsets() const { return insets_; }
/// A map from (LyXText, paragraph) pair to screen positions
CoordCacheBase<InsetBase> const & getInsets() const { return insets_; }
/// A map from (LyXText, paragraph) pair to screen positions