#include <stdint.h>
#include <boost/optional.hpp>
+#include <cairomm/refptr.h>
+
+namespace Cairo {
+ struct Context;
+}
+
namespace ArdourCanvas
{
typedef uint32_t Color;
extern Coord const COORD_MAX;
-extern Coord const CAIRO_MAX;
struct Duple
{
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;
}