X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fcanvas%2Fpoly_line.h;h=7c6894719cd91de6723a78b06e78b9d28758b850;hb=aacb2d7be7f9c34b39f1acf9a408e05addab409e;hp=16db9a69e2c2bcf299f49c9a323f20e3cd7879dc;hpb=e5e12acc5698090f2c0c614385e457cc0b46fbb0;p=ardour.git diff --git a/libs/canvas/canvas/poly_line.h b/libs/canvas/canvas/poly_line.h index 16db9a69e2..7c6894719c 100644 --- a/libs/canvas/canvas/poly_line.h +++ b/libs/canvas/canvas/poly_line.h @@ -28,13 +28,16 @@ namespace ArdourCanvas { class LIBCANVAS_API PolyLine : public PolyItem { - public: +public: PolyLine (Canvas*); PolyLine (Item*); - + void render (Rect const & area, Cairo::RefPtr) const; - - bool covers (Duple const &) const; + + virtual void set_steps (Points const &, bool stepped); + virtual void compute_bounding_box () const; + + 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 @@ -42,10 +45,13 @@ class LIBCANVAS_API PolyLine : public PolyItem */ void set_covers_threshold (double); - private: + void set_fill_y1 (double); + +private: double _threshold; + double _y1; }; - + } #endif