if CANVAS_DEBUG is defined, then the env variable CANVAS_HARLEQUIN_DEBUGGING will...
[ardour.git] / libs / canvas / canvas / rectangle.h
index ff2ff994b7917bc943b96cad73578c192de18446..2983d33ed2b6ec122804a1d630ac3f4c7aa7384d 100644 (file)
 namespace ArdourCanvas
 {
 
-class LIBCANVAS_API Rectangle : virtual public Item, public Outline, public Fill
+class LIBCANVAS_API Rectangle : public Item
 {
 public:
-       Rectangle (Group *);
-       Rectangle (Group *, Rect const &);
+       Rectangle (Canvas*);
+       Rectangle (Canvas*, Rect const &);
+       Rectangle (Item*);
+       Rectangle (Item*, Rect const &);
        
        void render (Rect const &, Cairo::RefPtr<Cairo::Context>) const;
        void compute_bounding_box () const;
@@ -72,7 +74,12 @@ public:
        };
 
        void set_outline_what (What);
-       void set_outline_what (int);
+       void set_outline_all () {
+               set_outline_what (ArdourCanvas::Rectangle::What (ArdourCanvas::Rectangle::TOP|
+                                                                ArdourCanvas::Rectangle::LEFT|
+                                                                ArdourCanvas::Rectangle::RIGHT|
+                                                                ArdourCanvas::Rectangle::BOTTOM));
+       }
 
 private:
        /** Our rectangle; note that x0 may not always be less than x1