change event propagation to be based on parent/child lineage, not z-axis stacking...
[ardour.git] / libs / canvas / canvas / polygon.h
index addfe481004d2062949b1639da8e3449661714db..48eb494ae8583f908101a0fcfaa9d64cadaf0400 100644 (file)
@@ -30,8 +30,18 @@ class Polygon : public PolyItem, public Fill
 {
 public:
        Polygon (Group *);
+        virtual ~Polygon();
 
        void render (Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
+       void compute_bounding_box () const;
+        bool covers (Duple const &) const;
+
+  protected:
+    mutable float* multiple;
+    mutable float* constant;
+    mutable Points::size_type cached_size;
+    
+    void cache_shape_computation () const;
 };
        
 }