X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fcanvas%2Fpoly_line.h;h=04b05f5df1f33b2b7fede5a787e2bb29bf5874db;hb=2a5921ecf159d49597264a9328dc899bba55e57e;hp=72c20e06748ff8cb0235bc24e6791c0d50edd23f;hpb=b880a381523b2cfdb7ebd17c27fff1adf90fa028;p=ardour.git diff --git a/libs/canvas/canvas/poly_line.h b/libs/canvas/canvas/poly_line.h index 72c20e0674..04b05f5df1 100644 --- a/libs/canvas/canvas/poly_line.h +++ b/libs/canvas/canvas/poly_line.h @@ -28,12 +28,24 @@ namespace ArdourCanvas { 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; }; }