]> git.lyx.org Git - lyx.git/blobdiff - src/metricsinfo.h
Implement os::current_root for native Win32 builds.
[lyx.git] / src / metricsinfo.h
index 2e401c3eb7c3cb172b9d2433249162c4110056f5..cd622ced2df9e86a4773b8b913424cf3e597f6fe 100644 (file)
@@ -13,6 +13,7 @@
 #define METRICSINFO_H
 
 #include "lyxfont.h"
+#include "support/types.h"
 
 #include <string>
 
@@ -88,10 +89,20 @@ struct PainterInfo {
        bool ltr_pos;
 };
 
-
 struct TextMetricsInfo {};
 
 
+struct ViewMetricsInfo
+{
+       ViewMetricsInfo(lyx::pit_type p1, lyx::pit_type p2,
+                       int y1, int y2) : p1(p1), p2(p2), y1(y1), y2(y2) {}
+       lyx::pit_type p1;
+       lyx::pit_type p2;
+       int y1;
+       int y2;
+};
+
+
 // Generic base for temporarily changing things.
 // The original state gets restored when the Changer is destructed.