]> git.lyx.org Git - lyx.git/blobdiff - src/coordcache.h
fix reading the author field.
[lyx.git] / src / coordcache.h
index ac89bd251e7bd8d06f1df2924653dd8750394be9..82081cd3136851e047969af525cb014b4bc7686b 100644 (file)
@@ -9,6 +9,11 @@
 
 #include <map>
 
+
+// All positions cached in this cache are only valid between subsequent
+// updated. (x,y) == (0,0) is the upper left screen corner, x increases
+// to the right, y increases downwords.
+
 void lyxbreaker(void const * data, const char * hint, int size);
 
 struct Point {
@@ -63,6 +68,12 @@ public:
                return data_.find(thing) != data_.end();
        }
 
+//     T * find(int x, int y) const
+//     {
+//             T * 
+//             cache_type iter
+//     } 
+
 private:
        friend class CoordCache;
 
@@ -74,7 +85,8 @@ private:
                }
        }
 
-       std::map<T const *, Point> data_;
+       typedef std::map<T const *, Point> cache_type;
+       cache_type data_;
 };