X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fcanvas%2Farrow.h;h=45c6eb110e30e3a42c4d67f8ffc052f3284f170d;hb=585fa45b628b0b3e6ef2c29c1a2610859e74d942;hp=beaed84c27e48e4d9fde6493ee861087646cc2e3;hpb=59631acc5f41153a294c97ab820a4b41a886e24c;p=ardour.git diff --git a/libs/canvas/canvas/arrow.h b/libs/canvas/canvas/arrow.h index beaed84c27..45c6eb110e 100644 --- a/libs/canvas/canvas/arrow.h +++ b/libs/canvas/canvas/arrow.h @@ -26,11 +26,11 @@ #define __CANVAS_ARROW_H__ #include "canvas/visibility.h" - -#include "canvas/group.h" +#include "canvas/container.h" namespace ArdourCanvas { +class Canvas; class Line; class Polygon; @@ -45,10 +45,11 @@ class Polygon; * to draw lines at any angle. */ -class LIBCANVAS_API Arrow : public Group +class LIBCANVAS_API Arrow : public Container { public: - Arrow (Group *); + Arrow (Canvas*); + Arrow (Item*); void set_show_head (int, bool); void set_head_outward (int, bool); @@ -68,11 +69,11 @@ public: private: void setup_polygon (int); + void setup (); /** Representation of a single arrow head */ struct Head { Polygon* polygon; ///< the polygon which represents its shape - bool show; ///< true if this head should be visible bool outward; ///< true if this head points out from the line Distance height; ///< the height of the head Distance width; ///< the maximum width of the head