]> git.lyx.org Git - features.git/blobdiff - src/BufferView.h
three-stage drawing: add a nodraw stage
[features.git] / src / BufferView.h
index 92e898735065ac2f8146fbb7b14fd8a3f43fac80..83b4d39e3771aa0ab41142df4c7ca0f325182616 100644 (file)
@@ -283,6 +283,10 @@ public:
        /// update the internal \c ViewMetricsInfo.
        void updateMetrics();
 
+       // this is the "nodraw" drawing stage: only set the positions of the
+       // insets in metrics cache.
+       void updatePosCache();
+
        ///
        TextMetrics const & textMetrics(Text const * t) const;
        TextMetrics & textMetrics(Text const * t);
@@ -303,7 +307,6 @@ public:
        /// get the position and height of the cursor
        void cursorPosAndHeight(Point & p, int & h) const;
 
-
        ///
        void draw(frontend::Painter & pain);