fix up size and drawing of measure lines, even when vertically scrolled
[ardour.git] / libs / canvas / canvas / types.h
index 37c0c213ea3b48669dc85e20872057e69908a901..33bb92ca58e77eb43ccb907b71da957ad3afd4fd 100644 (file)
 #include <stdint.h>
 #include <boost/optional.hpp>
 
+#include <cairomm/refptr.h>
+
+namespace Cairo {
+       struct Context;
+}
+
 namespace ArdourCanvas
 {
 
@@ -33,7 +39,6 @@ typedef double Distance;
 typedef uint32_t Color;
 
 extern Coord const COORD_MAX;
-extern Coord const CAIRO_MAX;
 
 struct Duple
 {
@@ -89,6 +94,9 @@ struct Rect
        bool contains (Duple) const;
        Rect fix () const;
 
+        Rect convert_to_device (Cairo::RefPtr<Cairo::Context>) const;
+        Rect convert_to_user (Cairo::RefPtr<Cairo::Context>) const;
+
        Distance width () const {
                return x1 - x0;
        }