mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 23:17:46 +01:00
add fill-area feature to poly-line
This commit is contained in:
parent
b6ccf0e223
commit
17b162c5da
3 changed files with 55 additions and 4 deletions
|
|
@ -28,15 +28,16 @@ namespace ArdourCanvas {
|
|||
|
||||
class LIBCANVAS_API PolyLine : public PolyItem
|
||||
{
|
||||
public:
|
||||
public:
|
||||
PolyLine (Canvas*);
|
||||
PolyLine (Item*);
|
||||
|
||||
void render (Rect const & area, Cairo::RefPtr<Cairo::Context>) const;
|
||||
|
||||
virtual void set_steps (Points const &, bool stepped);
|
||||
virtual void compute_bounding_box () const;
|
||||
|
||||
bool covers (Duple const &) 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
|
||||
|
|
@ -44,8 +45,11 @@ class LIBCANVAS_API PolyLine : public PolyItem
|
|||
*/
|
||||
void set_covers_threshold (double);
|
||||
|
||||
private:
|
||||
void set_fill_y1 (double);
|
||||
|
||||
private:
|
||||
double _threshold;
|
||||
double _y1;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue