X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fcanvas%2Fpoly_line.h;h=fce013dfd6e11b032fd71203d138fe63d30597d2;hb=22b07e0233a29d9633ffa825a79503befaf2e16e;hp=830e76bae2cd0b649835fc8bbb2ef4e3a122dd3f;hpb=fe6c5612a2c46d6dbad32517d487b120bb8b65c4;p=ardour.git diff --git a/libs/canvas/canvas/poly_line.h b/libs/canvas/canvas/poly_line.h index 830e76bae2..fce013dfd6 100644 --- a/libs/canvas/canvas/poly_line.h +++ b/libs/canvas/canvas/poly_line.h @@ -20,21 +20,34 @@ #ifndef __CANVAS_POLY_LINE_H__ #define __CANVAS_POLY_LINE_H__ +#include "canvas/visibility.h" #include "canvas/poly_item.h" #include "canvas/outline.h" namespace ArdourCanvas { -class PolyLine : public PolyItem +class LIBCANVAS_API PolyLine : public PolyItem { -public: - PolyLine (Group *); + public: + PolyLine (Canvas*); + PolyLine (Item*); void render (Rect const & area, Cairo::RefPtr) const; + virtual void set_steps (Points const &, bool stepped); + bool covers (Duple const &) const; + /** + * Set the distance at which a point will be considered to be covered + * by the line. For the definition of "distance" see + * utils.cc:distance_to_segment_squared() + */ + void set_covers_threshold (double); + + private: + double _threshold; }; - + } #endif