]> git.lyx.org Git - lyx.git/blobdiff - src/coordcache.h
changelogs
[lyx.git] / src / coordcache.h
index 639563036db078a6b1fe53d264886927e28a371c..adabc671bf50fa1a678017f8384965123b3a4d9d 100644 (file)
@@ -9,12 +9,17 @@
 
 #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 {
        Point()
                : x_(0), y_(0)
-       {}      
+       {}
 
        Point(int x, int y) : x_(x), y_(y)
        {
@@ -22,7 +27,7 @@ struct Point {
                BOOST_ASSERT(x <  4000);
                BOOST_ASSERT(y > -3000);
                BOOST_ASSERT(y <  4000);
-       }       
+       }
 
        int x_, y_;
 };
@@ -65,9 +70,9 @@ public:
 
 //     T * find(int x, int y) const
 //     {
-//             T * 
+//             T *
 //             cache_type iter
-//     } 
+//     }
 
 private:
        friend class CoordCache;